Chapter 4. Gaining Access to the Routers and Switches

This chapter describes how to access a router through the following methods:

  • Through a direct console connection
  • Over the LAN via Telnet
  • Through a terminal server

In this chapter, you learn how to access a router and switch through a direct console connection, over the LAN via Telnet, and finally through a terminal server. To begin, this chapter reviews how to access a router or switch through a direct console connection. Next, you will configure the terminal server router for Telnet access. Then you will access the terminal server over the LAN via Telnet using a terminal application program running on your PC. Finally, you will configure the 2511 router as the lab terminal server for reverse Telnet to access the lab routers.

Routers and switches can be accessed and configured through various means. To initially configure a Cisco device, you will need to connect directly through the console port. The console port exists on both routers and switches and is available to configure and monitor the device.

Direct Access to Routers and Switches Through a Console Port

Most Cisco devices use a rollover cable connected to the console port on the router or switch. For exceptions, consult the product documentation to verify whether you should use a straight-through or rollover cable. The cable is then connected to an RJ-45–to–DB-9 or RJ-45–to–DB-25 terminal adapter that is attached to a serial communications port (COM1, COM2, or other COM port) on the PC. Figure 4-1 shows how this is done.

04fig01.gif

Figure 4-1 Connecting a Device with a Console Cable

When the physical connection is in place, configure the terminal application program on the PC with the following COM settings:

  • 9600 bps
  • 8 data bits
  • No parity
  • 1 stop bit
  • No flow control

In the lab, you will be using the terminal application program HyperTerminal to connect to the terminal server's console port. Any terminal application could be used based on your personal preference. If another terminal application is used, consult the product documentation for configuration and setup procedures.

Let's demonstrate how this is done.

Accessing the Lab Terminal Server Through the Console Port

The physical cabling between your PC and the router acting as the terminal server has been configured as shown in Figure 4-1. With the physical cabling in place, start the program HyperTerminal on the PC. To do so, click Start, Programs, Accessories, Communications, HyperTerminal. Then double-click the HyperTerminal executable (hypertrm.exe) from within Windows, as shown in Figure 4-2.

04fig02.gif

Figure 4-2 Starting the HyperTerminal Application

Give the new connection a name of LAB, and then click OK, as shown in Figure 4-3.

04fig03.gif

Figure 4-3 Giving the Connection a Name

In the Connect Using field, select Direct to Com1 from the drop-down menu, as shown in Figure 4-4.

04fig04.gif

Figure 4-4 Selecting the COM Port on PC

Now configure the port settings as follows and as shown in Figure 4-5. When finished, click OK:

04fig05.gif

Figure 4-5 Configuring HyperTerminal Port Settings

  • Bits per second: 9600
  • Data bits: 8
  • Parity: none
  • Stop bits: 1
  • Flow control: none

You are initially placed in user EXEC mode of the terminal server. If you do not see a prompt, hit the Enter key a few times, and then type enable and hit Enter. You are put into privileged EXEC mode without being prompted for a password because an enable password has not yet been set, as shown in Figure 4-6.

04fig06.gif

Figure 4-6 Successful Establishment of EXEC Session Through a Direct Console Connection

If you still do not get a console prompt, verify that it shows Connected in the bottom-left corner of the HyperTerminal application, as shown in Figure 4-6. If not, check the physical cabling as well as the port settings, and verify that the router has been powered on.

Now that you have successfully connected to the console port of the terminal server, you will configure the terminal server for Telnet access.

+ Share This