Cisco Terminal Server with Menu command _ Routing-Bits
Cisco Terminal Server with Menu command _ Routing-Bits
To configure your Terminal Server you can setup just reverse telnet sessions with the ‘host’ command,
but I prefer using the ‘Menu’ command, it looks a lot be er and is more convenient to use.
This current lab setup is according to Internetwork Expert R&S Lab Workbook V4, so the menu config
will be based on that. This is what is looks like:
Create a reverse telnet session to each router, using a loopback or any other active interface. Configure
your reverse telnet ports starting at port 2002. This because the first two are already used, ie the
console and aux ports. Then point 0/0 on your octal cable would use port 2002, 0/1 would use 2003,
0/2 would use 2004 etc.
interface Loopback0
ip address 172.21.1.1 255.255.255.255
!
ip host R1 2002 172.21.1.1
ip host R2 2003 172.21.1.1
ip host R3 2004 172.21.1.1
1 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
Then configure the Heading, Prompt and Text for the menu:
menu TS title ^
**********************************************************
CCIE Lab Terminal Server
To exit from a device, use CTRL+SHIFT+6 then press x
**********************************************************
^
menu TS prompt ^ Your selection : ^
!
menu TS text 1 Connect to Rack1R1 - 2801
menu TS text 2 Connect to Rack1R2 - 2811
menu TS text 3 Connect to Rack1R3 - 2811
menu TS text 4 Connect to Rack1R4 - 3640
menu TS text 5 Connect to Rack1R5 - 3640
menu TS text 6 Connect to Rack1R6 - 2621xm
menu TS text 7 Connect to Rack1SW1 - 3560
menu TS text 8 Connect to Rack1SW2 - 3560
menu TS text 9 Connect to Rack1SW3 - 3560
menu TS text 10 Connect to Rack1SW4 - 3560
menu TS text 11 Connect to Rack1BB1 - 2620
menu TS text 12 Connect to Rack1BB2 - 2620
menu TS text 13 Connect to Rack1BB3 - 2620
menu TS text 14 Connect to Rack1FRS - 3640
menu TS text s show all established sessions
menu TS text c<no> clear the session by number ie: c5
menu TS text e menu-exit
menu TS text q Quit terminal server session
The first part will open a connection or resume a existing connection based on the host configured
above. The last part will close a session based on the connections host name.
2 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
line vty 0 4
autocommand menu TS
3 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
menu TS
The other options I configured on the menu is ‘S’ to see the open sessions. (see 1st picture below)
I would recommend starting the sessions from top to bo om so that the session number ties up with
the router number etc. That way the clearing of session makes a lot more sense, as shown below:
Take note of the extra configuration required when using a Cisco 1841 with a HWIC-8A (8ports) or
28xx with a HWIC-16A, else your reverse telnet session will say “connection refused”. (This is not
required on a Cisco 2509 or 2511).
4 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
17 comments
Thanks for this post! It helped out a lot! Saved me a whole lot of time trying to figure it out without
any instructions.
line vty 0 4
login local
autocommand ????
Thanks in advance
HTH :)
Another issue:
5 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
When I switch from a router R1 with Ctrl+Shift+6 ++x to the access server (without logging
out from R1) and disconnect the session for R1 . If I open a new session to R1 it doesn’t ask
for username and password (even from another telnet to the AS)
Thanks for this quick reply. It’s working but after adding menu after autocommand
#username bob autocommand menu TS1
#username bruce autocommand menu TS2
How can I forbid to get access to the router R1 if its session is disconnected from the AS??
hth :)
6 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
This is fully applicable for IOS 15+ :-) The only thing that I noticed is that the hivens (-) have to be
replaced.
Make a selection: 1
Trying SW3 (1.1.1.1, 2001)… Open
I read in Cisco forum that got fixed with SecureCRT but I’m using TeraTerm. Any ideas?
supportforums.cisco.com/thread/2108242
Did anyone get to the bo om of the above problem? I’m using PuTTY and also ge ing the
problem where it gets stuck on “Open”
Luke
I’m hi ing exactly the same thing with PuTTY. Everything looks good, but can’t connect to any
console sessions. Just sits on:
Trying R2 (10.10.10.100, 2004)… Open
7 di 8 15/03/2017 23:23
Cisco Terminal Server with ‘Menu’ command | Routing-Bits https://routing-bits.com/2008/09/30/cisco-terminal-server-with-menu-...
8 di 8 15/03/2017 23:23