Discovering computer networks: hands on in the Open Networking Lab
Discovering computer networks: hands on in the Open Networking Lab

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

Free course

Discovering computer networks: hands on in the Open Networking Lab

10.1 Connecting to a Cisco device

It is important to understand how to connect to a Cisco device, both in a real-world situation and within the simulation tools available in this course. In the real world, Cisco devices do not have web interfaces or easy configuration screens. The configuration changes are made via a command-line interface (CLI) that is accessed via a terminal emulation client. Watch the video below (which is about 4 minutes long) to see how to connect to Cisco devices using a console connection or remote access methods.

Connecting to a CLI

Download this video clip.Video player: 59_connecting_to_a_cli.mp4
Skip transcript


In this part we will look at how to access the Cisco command-line interface. In Session 1 we looked at connecting to a home gateway; this was done with a GUI interface via a web page. By default, a Cisco device will not have a web page for configuration. With Cisco commercial networking equipment, the configuration is done via a CLI instead. The majority of manufacturers use the same principles in their own CLIs with slight variations on commands.

This is what the Cisco CLI looks like. It is part of the Cisco Internetwork Operating System or IOS for short. To connect to a device through the CLI you will need to use one of the following methods depending on the current status of the device. During the initial configuration of a device, or if the device is not accessible over the network, you will need to use a console connection. Whilst connected to the device a remote connection method should be set up, more likely Telnet or SSH. The serial connection, therefore, will no longer be needed as the router will now be accessed via its IP address. A username and password, however, will be required to gain access to the configuration options. The configuration of these protocols is shown in Session 15.

To connect to a device via the console port – normally indicated on Cisco devices with a pale blue colour – you will need a console cable also known as a Cisco rollover cable. This is a special cable with a different pin-out to Ethernet cables. On most routers this will need a serial console connection to a PC. If your computer doesn’t have a serial connector, you will need a USB converter as well. In my setup shown in the diagram, I have a USB-to-serial converter – that’s the grey cable – this is then connected to a Cisco rollover cable, the pale blue cable. These cables connect the PC’s USB port to the console port of the Cisco router. On newer routers the console connection can be a direct USB connection as well; you can see this in the picture here.

In a commercial environment where you are using physical equipment, this is where you would use a terminal emulation program such as Tera Term, PuTTY or SecureCRT. This software is normally free, with the exception of SecureCRT – more on these later. But in Packet Tracer you can just click the device and select the CLI tab. This is the equivalent of using a console connection in the simulation program.

If the device has been configured previously and you have network connectivity to the device, you would be able to use a remote connection method such as Telnet or SSH. The router could be in another country but as long as you and the device have an internet connection you can make configuration changes still.

The same terminal emulation programs used for console connections can be used to connect to a device via Telnet or SSH. If you have a choice between these two protocols you should always use SSH, this is because it uses encryption. Telnet is considered insecure because the packets can be captured, and everything can be read, including passwords. This will be demonstrated in Session 15.

I will SSH to my router using PuTTYY. To do this I select SSH on the radio buttons and then type the IP address of the device. When I click Open, we will be prompted for a username and password.

With any Cisco device, once you have a session open – either by console, Telnet or SSH – you will be presented with a prompt similar to this one. You will see the hostname, in this case Jason_Router. This is normally an identifiable name for the device, followed by the mode indicator. More on these modes in the next part of Session 10.

End transcript
Interactive feature not available in single page view (see it in standard view).

Activity 1 Test yourself

5 minutes

1. How do you connect to the CLI in Packet Tracer?


(a) Double-click the device.


(b) Single-click the device.


(c) Right-click the device.


(d) Click the device and select the CLI tab.

The correct answer is d.

2. Select the correct answer statements from the following list. Which programs can be used to connect to the CLI of a Cisco router?


(a) PuTTY


(b) Google Chrome


(c) SecureCRT


(d) VLC Media Player


(e) Atom


(f) Remote Desktop


(g) Tera Term

The correct answers are a, c and g.

3. From the options below, select two protocols that enable a network device to be remotely accessed and managed.


(a) CRT


(b) PuTTY


(c) SSH


(d) Telnet

The correct answers are c and d.

You now know what the Cisco CLI looks like and have seen how to connect to it, either directly via a console cable or remotely using network protocols, particularly SSH.


Take your learning further

Making the decision to study can be a big step, which is why you'll want a trusted University. The Open University has 50 years’ experience delivering flexible learning and 170,000 students are studying with us right now. Take a look at all Open University courses.

If you are new to University-level study, we offer two introductory routes to our qualifications. You could either choose to start with an Access module, or a module which allows you to count your previous learning towards an Open University qualification. Read our guide on Where to take your learning next for more information.

Not ready for formal University study? Then browse over 1000 free courses on OpenLearn and sign up to our newsletter to hear about new free courses as they are released.

Every year, thousands of students decide to study with The Open University. With over 120 qualifications, we’ve got the right course for you.

Request an Open University prospectus371