cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

HWIC-16A Terminal Server Configuration (w/SSH)

3791
Views
0
Helpful
1
Comments

Issue

 Desire to create Terminal Server ("TS" in this document) out of 2811 Cisco Router with HWIC-16A card (with Octal cables)

 Desire to use SSH over Telnet

 

Prerequisites

 TS is ip'ed, SSH access configured (to the TS)

 Octal cables connected to HWIC and Cisco device console ports 0-7, 8-15

Useful Commands

 "Show Line" (Line #, where # is 0-15 is also useful)

 "Show Run | s Line"

 "Clear line #" (where # is 2-17, whichever line you wish to disconnect)

 "ssh -p #### XXX.XXX.XXX.XXX" (where #### is the port number/ line, and the IP is the TS IP)

  Ctrl^6, x (exits line when using TS SSH to SSH into tty lines, follow with "Disconnect" to remain disconnected)

 

Solution

!Create rotary's for each SSH port:

Configure Terminal
ip ssh port 4000 rotary 1
ip ssh port 4001 rotary 2
ip ssh port 4002 rotary 3
ip ssh port 4003 rotary 4
ip ssh port 4004 rotary 5
ip ssh port 4005 rotary 6
ip ssh port 4006 rotary 7
ip ssh port 4007 rotary 8
ip ssh port 4008 rotary 9
ip ssh port 4009 rotary 10
ip ssh port 4010 rotary 11
ip ssh port 4011 rotary 12
ip ssh port 4012 rotary 13
ip ssh port 4013 rotary 14
ip ssh port 4014 rotary 15
ip ssh port 4015 rotary 16
! The above is summarized as "ip ssh port 4000 rotary 1 16" but is left expanded for understanding

! The below is simplified, you can change settings as described if needed

line 0/0/0
session-timeout 5       ! Timeout in minutes
logging synchronous   ! Helps when logging
login local                   ! Uses TS login credentials, you CAN create unique passwords per line if needed
rotary 1                      ! Ties this line to rotary 1 (ssh to TS ip address on port 4000 in our example)
transport input ssh      ! Forces SSH
transport output ssh    ! Forces SSH

stopbits 1                    ! Lines default to 2 (cisco console is 1 stopbit)
!
line 0/0/1
session-timeout 5
logging synchronous
login local
rotary 2
transport input ssh

transport output ssh

stopbits 1

!
line 0/0/2
session-timeout 5
logging synchronous
login local
rotary 3
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/3
session-timeout 5
logging synchronous
login local
rotary 4
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/4
session-timeout 5
logging synchronous
login local
rotary 5
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/5
session-timeout 5
logging synchronous
login local
rotary 6
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/6
session-timeout 5
logging synchronous
login local
rotary 7
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/7
session-timeout 5
logging synchronous
login local
rotary 8
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/8
session-timeout 5
logging synchronous
login local
rotary 9
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/9
session-timeout 5
logging synchronous
login local
rotary 10
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/10
session-timeout 5
logging synchronous
login local
rotary 11
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/11
session-timeout 5
logging synchronous
login local
rotary 12
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/12
session-timeout 5
logging synchronous
login local
rotary 13
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/13
session-timeout 5
logging synchronous
login local
rotary 14
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/14
session-timeout 5
logging synchronous
login local
rotary 15
transport input ssh
transport output ssh

stopbits 1
!
line 0/0/15
session-timeout 5
logging synchronous
login local
rotary 16
transport input ssh
transport output ssh

stopbits 1

/////////

I hope you found this configuration example / guide useful!

 

 

Comments
Beginner
I would also use the ip alias command to allow SSH to an IP address, not IP address/port. I tend to back this off to a loopback to allow advertisement of a summary: interface loopback 1 description advertise or redist into IGP allows upto 64 lines ip address 10.22.22.64 255.255.255.192 ip alias 10.22.22.65 4000 ip alias 10.22.22.66 4001 ip alias 10.22.22.67 4002 etc
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards