Below is a guide that shows how to configure a Cisco router to act as a terminal server using an installed Async module. Thus allowing connections to multiple console ports from the router creating a remote out of band management device.
In this case, you can SSH into the router and it will present a menu to select a terminal connection. It should be noted, that you could also directly connect to the port via a telnet session to the associated terminal port.
Special attention should be made to the telnet port used within the ip host
statement. These ports are 2000+ the line number shown from show line
on the router.
vrf definition mgmtVrf
address-family ipv4
exit-address-family
aaa new-model
aaa authentication login default local
aaa authentication login NO-AUTH none
aaa authentication enable default enable
aaa authorization console
aaa authorization exec default local
ip host line1 2002 192.0.2.0
ip host line2 2003 192.0.2.0
ip host line3 2004 192.0.2.0
ip host line4 2005 192.0.2.0
ip host line5 2006 192.0.2.0
ip host line6 2007 192.0.2.0
ip host line7 2008 192.0.2.0
ip host line8 2009 192.0.2.0
ip host line9 2010 192.0.2.0
ip host line10 2011 192.0.2.0
ip host line11 2012 192.0.2.0
ip host line12 2013 192.0.2.0
ip host line13 2014 192.0.2.0
ip host line14 2015 192.0.2.0
ip host line15 2016 192.0.2.0
ip host line16 2017 192.0.2.0
interface Loopback192
ip address 192.0.2.0 255.255.255.255
interface GigabitEthernet0/0/0
vrf forwarding mgmtVrf
ip address ROUTED-IP
media-type rj45
negotiation auto
menu TS0 text 1 Connect to Port-1:1
menu TS0 command 1 resume line1 /connect telnet line1
menu TS0 text 2 Connect to Port-1:2
menu TS0 command 2 resume line2 /connect telnet line2
menu TS0 text 3 Connect to Port-1:3
menu TS0 command 3 resume line3 /connect telnet line3
menu TS0 text 4 Connect to Port-1:4
menu TS0 command 4 resume line4 /connect telnet line4
menu TS0 text 5 Connect to Port-1:5
menu TS0 command 5 resume line5 /connect telnet line5
menu TS0 text 6 Connect to Port-1:6
menu TS0 command 6 resume line6 /connect telnet line6
menu TS0 text 7 Connect to Port-1:7
menu TS0 command 7 resume line7 /connect telnet line7
menu TS0 text 8 Connect to Port-1:8
menu TS0 command 8 resume line8 /connect telnet line8
menu TS0 text 9 Connect to Port-2:1
menu TS0 command 9 resume line9 /connect telnet line9
menu TS0 text 10 Connect to Port-2:2
menu TS0 command 10 resume line10 /connect telnet line10
menu TS0 text 11 Connect to Port-2:3
menu TS0 command 11 resume line11 /connect telnet line11
menu TS0 text 12 Connect to Port-2:4
menu TS0 command 12 resume line12 /connect telnet line12
menu TS0 text 13 Connect to Port-2:5
menu TS0 command 13 resume line13 /connect telnet line13
menu TS0 text 14 Connect to Port-2:6
menu TS0 command 14 resume line14 /connect telnet line14
menu TS0 text 15 Connect to Port-2:7
menu TS0 command 15 resume line15 /connect telnet line15
menu TS0 text 16 Connect to Port-2:8
menu TS0 command 16 resume line16 /connect telnet line16
menu TS0 text s show all established sessions
menu TS0 command s show sessions
menu TS0 text c<no> clear the session by number ie: c5
menu TS0 text e menu-exit
menu TS0 command e menu-exit
menu TS0 text q Quit terminal server session
menu TS0 command q exit
menu TS0 command c1 c1
menu TS0 command c2 c2
menu TS0 command c3 c3
menu TS0 command c4 c4
menu TS0 command c5 c5
menu TS0 command c6 c6
menu TS0 command c7 c7
menu TS0 command c8 c8
menu TS0 command c9 c9
menu TS0 command c10 c10
menu TS0 command c11 c11
menu TS0 command c12 c12
menu TS0 command c13 c13
menu TS0 command c14 c14
menu TS0 command c15 c15
menu TS0 command c16 c16
alias exec c1 disconnect line1
alias exec c2 disconnect line2
alias exec c3 disconnect line3
alias exec c4 disconnect line4
alias exec c5 disconnect line5
alias exec c6 disconnect line6
alias exec c7 disconnect line7
alias exec c8 disconnect line8
alias exec c9 disconnect line9
alias exec c10 disconnect line10
alias exec c11 disconnect line11
alias exec c12 disconnect line12
alias exec c13 disconnect line13
alias exec c14 disconnect line14
alias exec c15 disconnect line15
alias exec c16 disconnect line16
line 0/1/0 0/1/31
exec-timeout 5 0
login authentication NO-AUTH
no exec
transport preferred telnet
transport input telnet
transport output none
stopbits 1
line con 0
autocommand menu TS0
line vty 0 4
autocommand menu TS0
transport input ssh
autocommand menu TS0