Cisco Terminal Server Configuration Example

Thanks for the fast reply, it’s just a home LAB environment so not too afraid =) Reload in 10 is a great idea - it’s a shame the rollback feature on cisco doesn’t work the same way that junipers implementation does

hi rene
I am using cisco asa 5505 i want to access cisco asa 5505 from terminal server cisco 2511 in asa i could not find any line con or line vty command what i have configure in cisco asa to access from 2511 like other routers and switches i could not find any thingt on internet i need your help please post me config for asa

Hello Rudhra,

By default, an ASA uses the exact same console settings as routers or switches. I also use a 2511 and I use the exact same setting for my routers/switches and ASAs.

Did someone mess up the console settings of your ASA?

Rene

Hi,
That very well explained, but I just have one question. This brief representation below is to give you an idea on I’m about to explain.
R1->R2->X1, X2, X3
We have one terminal server, Which R1 represent, set up in my workplace and I would like to use one octal cable to plug in another router, R2, which will have couple of switches(X1,X2,X3) connected to it for my CCNP switch practice. The issue I have is when I’m consoled into one of the switches and want to move to another switch, I usually type CTR+SHIFT+6 and then X, but this command send me back to the R1 instead of R2 And if I clear the line and try to console back to R2, it automatically send me to the switch I was consoled into last, it skip R2. To be able to console to R2 and get to a different switch, I’ll have to reboot it every time. I just want to know if there a more efficient way to move around the switches or connect to them simultaneously.

Hi Thierno,

I think this should work:

CTRL-SHIFT-6

Let go, then do:

CTRL-SHIFT-6-X

Let me know if it works :slight_smile:

Rene

Hello,
I’m trying to configure a terminal server ISR4221, but I can’t find any information about the port mapping and the telnet port for this device. Any ideas? Thanks

Hello Conrad

In order to use the ISR4221 as a terminal server, you will require the use of an Asynchronous Terminal Server Interface Module that will provide you with multiple serial ports to connect to your devices. You can find out more info about those here:


Once installed, you can simply use the show line command to check the TTY line summary information. This will show you information about the mapping between the serial interfaces, and the line numbers. An example of this can be found at this Cisco documentation:

Something tells me though that I may not be adequately answering your question, so if this is the case, please clarify and we can respond more appropriately.

I hope this has been helpful!

Laz

Hi Laz,

thanks for the quick reply. Yes the ISR came installed with the Asynch modules, the problem I’m having is "I dont know which ports to allocate in the following command:
ip host SwitchA #?#? 1.1.1.1
I saw an example where the port mapping was in the range of 200x, but where is this information? Why does it start in the 2000s?

Thanks!

Hello Conrad

This is an excellent question, and it has given the opportunity for further research. It seems that Cisco has predefined various ports for use with TTY lines. Specifically, for Async ports, you use the absolute numbers of the Async ports (1 to 16 for example) and prepend 20 at the beginning. In the book CCIE Practical Studies Volume 1, page 55, it states:

Lines 1 through 16 are TTY lines. you use these lines for the reverse Telnet sessions. To configure a reverse Telnet session, simply add a 20 in front of the absolute line number. The syntax is in one of the following two forms. From the console mode, it is

telnet ip_address 20xx

where xx is the absolute line number (in this case 1 to 16)… The next way to configure reverse Telnet is entered from configuation mode, in the form of an IP host table. From the configuration mode, use

ip host hostname 20xx ip_address.

The IP address used should be the one on a loopback interface. This way you can use a reverse Telnet session while other physical interfaces are down.

I have also found that Cisco has defined ports 20xx for use as TTY rotary lines. Rotary lines seems to refer to the async type connections.

Finally, I have also found that there are various port ranges that are used for different Telnet access scenarios. In the High-Speed Cisco networks book by John Vacca, on page 511 it shows the following table:
image
Here you can see that the 2001 to 2999 range is used for AUX and Terminal TTY ports.

So ultimately, I believe it is just a matter of convention. Use 20XX and place the absolute number of the async connection where the XX is and there you go.

I hope this has been helpful!

Laz

1 Like

Thanks for the great response!

this is my confioguration 2511 as rj

User Access Verification

Username:
Username: admin
Password:

access>
access>en
Password:
access#sh run
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname access
!
aaa new-model
enable password admin
!
username admin privilege 15 password 0 admin
ip subnet-zero
ip host r1 2001 10.10.10.10
ip host r2 2002 10.10.10.10
ip host r3 2003 10.10.10.10
ip host s1 2004 10.10.10.10
ip host s2 2005 10.10.10.10
ip host s3 2006 10.10.10.10
ip host asa1 2007 10.10.10.10
ip host srx 2008 10.10.10.10
ip host s4 2009 10.10.10.10
ip host s5 2010 10.10.10.10
ip host asa2 2011 10.10.10.10
ip host r4 2012 10.10.10.10
clock timezone in 5 30
!
!
!
interface Loopback0
 ip address 10.10.10.10 255.255.255.255
 no ip directed-broadcast
!
interface Ethernet0
 ip address 192.168.0.100 255.255.255.0
 no ip directed-broadcast
!
interface Serial0
 no ip address
 no ip directed-broadcast
 no ip mroute-cache
 shutdown
 no fair-queue
!
ip classless
!
!
line con 0

i am unable to telnet to devices
i am using rj45 roll back back to back

Hello Rudhra

It is not possible to connect from one device to another direction from one console port to another. Two options you can use is to connect from the AUX port to the console port or from one AUX port to another. You can find out information on how to configure this at the following two links:

The best way however to do this is to use a proper terminal server that will give you the option of connecting to multiple devices via the console.

I hope this has been helpful!

Laz

Hello,

Today in my work I see customer login into terminal server with this command.

ssh -l username:19 10.1.1.20
ssh -l username:20 10.1.1.20

What is does the colon:numeric means in this command?

Hello Mohamad

Taking a look at this Cisco command line reference, the command is the following:

ssh -l userid : vrfname number ip-address

where:

  • the “:” used signifies the fact that a port number and IP address will follow the user ID
  • vrfname - this is used to denote the VRF used. In your case there is no VRF mentioned, so the default VRF is used.
  • number - this is the terminal or auxiliary line number
  • ip-address - this is the IP address of the terminal server.

The reference also states the following:

The userid argument and : number ip-address delimiter and arguments must be used if you are configuring reverse SSH by including port information in the userid field (a method that is easier than the longer method of listing each terminal or auxiliary line on a separate command configuration line). The vrfname allows SSH to establish sessions with hosts whose addresses are in a VRF instance.

I hope this has been helpful!

Laz

Hello Lagapides,

Thanks for answering. In my case, since my customer is actually ssh’ing into a terminal router, then it’s most probably be this command.

ssh -l userid :rotary number ip-address

1 Like