Configuring a Cisco Router as a Terminal Server

Posted September 29, 2004 by Headhunter in Cisco router

When you have a home lab, you want to have console connectivity to all your routers at the same time. By using a terminal server (2509-2512 router range), you can accomplish this.

To use a terminal server, you need a 2509/2510 8 lines or a 2511/2512 16 lines router. You also need one or two octal cables.

First, create a loopback interface that will be used for the reverse telnet sessions from the other devices.
Router(config)#interface loopback0
Router(config-if)#ip address

Now, add the devices that are connected to this router (octable cable to each console port).
Router(config)#ip host hostname 2001
Router(config)#ip host hostname2 2002

The previous commands let you use the hostname of the device to access it on its console port. The portnumber is made of the following 200x, where x is the nr on the octal cable going to that device. Depending on the type of router you use for the terminal server, you can have either 8 or 16 devices hanging on it.

Now that the router is configured, use the following commands to navigate:
– To access a device, use the following:
telnet 2001

– To switch between active sessions, use the following commands:
ctrl-shift-6-x will bring you back to terminal server.
show sessions will display the active sessions.
Entering a session’s number will let you access that session.

– To disconnect a session, use the disconnect command.

The Conversation

Follow the reactions below and share your own thoughts.