Friday, June 20, 2014

Configuring My Cisco 2511 Terminal Server

After updating the IOS for my 2511 terminal server on my previous post, it's time to configure and hook it up to my C2960 and C2940 switches.


2511-TS(config)#menu ?
  WORD  Name of this menu

2511-TS(config)#menu TS ?
  clear-screen  Use termcap database to clear screen
  command       Set menu command
  default       Item number to use for RETURN
  line-mode     require <enter> after typing selection
  options       Set per-item options
  prompt        Set prompt string
  single-space  single-space menu entries on display
  status-line   Display user status at top of screen
  text          Set text of menu line
  title         Set menu title

2511-TS(config)#menu TS title ?
  LINE  delimited text of title

2511-TS(config)#menu TS title #
menu TS title ^C     // "#" DOESN'T WORK, USE ^
+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+
^C
2511-TS(config)#menu TS prompt ?
  LINE  delimited text of title

2511-TS(config)#menu TS prompt ^ Make a selection: ^    // "#" DOESN'T WORK, USE "^"
2511-TS(config)#menu TS text 1 Connect to Rack1 SW3 - 2960
2511-TS(config)#menu TS text 2 Connect to Rack1 SW2 - 2940
2511-TS(config)#menu TS text s Show all established sessions
2511-TS(config)#menu TS text e Exit Menu
2511-TS(config)#menu TS text c# Clear the session by number, example: c1
2511-TS(config)#menu TS text q Quit TS session

2511-TS(config)#menu TS command ?
  WORD  Menu item number or character

2511-TS(config)#menu TS command 1 resume ?
LINE    <cr>

2511-TS(config)#menu TS command 1 resume SW3 /connect Telnet SW3
2511-TS(config)#menu TS command 2 resume SW2 /connect Telnet SW2

2511-TS(config)#menu TS command s ?
  LINE  Command for this menu item

2511-TS(config)#menu TS command s show session
2511-TS(config)#menu TS options ?
  WORD  Menu item number or character

2511-TS(config)#menu TS options s ?
  login  Login required before command
  pause  pause after command, before redrawing menu
  <cr>

2511-TS(config)#menu TS options s pause
2511-TS(config)#menu TS command e menu-exit
2511-TS(config)#menu TS command q quit
2511-TS(config)#menu TS clear-screen
2511-TS(config)#menu TS line-mode
2511-TS(config)#menu TS command c1 c1
2511-TS(config)#menu TS command c2 c2

2511-TS(config)#alias ?
  aaa-user                 AAA user definition
  accept-dialin            VPDN group accept dialin configuration mode
  accept-dialout           VPDN group accept dialout configuration mode
  address-family           Address Family configuration mode
  alps-ascu                ALPS ASCU configuration mode
  alps-circuit             ALPS circuit configuration mode
  bba-group                BBA Group configuration mode
  boomerang                Boomerang configuration mode
  clid-group               CLID group configuration mode
  cns-connect-intf-config  CNS Connect Intf Info Mode
  config-rtr-http-rr       RTR HTTP raw request Configuration
  config-x25-huntgroup     X.25 hunt group configuration mode
  configure                Global configuration mode
  congestion               Frame Relay congestion configuration mode
  dhcp                     DHCP pool configuration mode
  dnis-group               DNIS group configuration mode
  exec                     Exec mode
  filterserver             AAA filter server definitions
  flow-cache               Flow aggregation cache config mode
  fr-fr                    FR/FR connection configuration mode
  fr-vcb-bmode             FR VC Bundle mode
  fr-vcb-mmode             FR VC Bundle Member mode
  funi-vc-config           FUNI virtual circuit configuration mode
  interface                Interface configuration mode
  interface                Interface range configuration mode
  interface-dlci           Frame Relay dlci configuration mode
  ip-vrf                   Configure IP VRF parameters
  ipenacl                  IP named extended access-list configuration mode
  ipnat-pool               IP NAT pool configuration mode
  ipnat-snat               IP SNAT configuration mode
  ipnat-snat-backup        IP SNAT Backup configuration mode
  ipnat-snat-primary       IP SNAT Primary configuration mode
  ipnat-snat-redundancy    IP SNAT Redundancy configuration mode
  ipsnacl                  IP named simple access-list configuration mode
  ipv6-router              IPv6 router configuration mode
  ipv6acl                  IPv6 access-list configuration mode
  key-chain                Key-chain configuration mode
  key-chain-key            Key-chain key configuration mode
  line                     Line configuration mode
  map-class                Map class configuration mode
  map-list                 Map list configuration mode
  mobile-networks          Mobile Networks mode
  mobile-router            Mobile Router mode
  mrm-manager              IP Multicast Routing Monitor config mode
  null-interface           Null interface configuration mode
  policy-list              IP Policy List configuration mode
  preauth                  AAA Preauth definitions
  qosclassmap              QoS Class Map configuration mode
  qosclasspolice           QoS Class Police configuration mode
  qospolicymap             QoS Policy Map configuration mode
  qospolicymapclass        QoS Policy Map class configuration mode
  radius-attrl             Radius Attribute-List Definition
  request-dialin           VPDN group request dialin configuration mode
  request-dialout          VPDN group request dialout configuration mode
  route-map                Route map config mode
  router                   Router configuration mode
  rsvp-local-policy        RSVP local policy configuration mode
  rtr                      SAA entry configuration
  saa-dhcp                 SAA dhcp configuration
  saa-dlsw                 SAA dlsw configuration
  saa-dns                  SAA dns configuration
  saa-echo                 SAA echo configuration
  saa-frameRelay           SAA FrameRelay configuration
  saa-ftp                  SAA ftp configuration
  saa-http                 SAA http configuration
  saa-jitter               SAA jitter configuration
  saa-pathEcho             SAA pathEcho configuration
  saa-pathJitter           SAA pathJitter configuration
  saa-tcpConnect           SAA tcpConnect configuration
  saa-udpEcho              SAA udpEcho configuration
  sg-radius                Radius Server-group Definition
  sg-tacacs+               Tacacs+ Server-group Definition
  sss-subscriber           SSS subscriber configuration mode
  subinterface             Subinterface configuration mode
  template                 Template configuration mode
  tracking-config          Tracking configuration mode
  trange                   time-range configuration mode
  vc-class                 VC class configuration mode
  vpdn-group               VPDN group configuration mode
  vpdn-template            VPDN template configuration mode
  x25-profile              X.25 profile configuration mode

2511-TS(config)#alias exec ?
  WORD  Alias name

2511-TS(config)#alias exec c1 ?
  LINE  New alias

2511-TS(config)#alias exec c1 disconnect SW3
2511-TS(config)#alias exec c2 disconnect SW2


2511-TS(config)#int loopback0
*Mar  1 00:03:42.503: %LINK-3-UPDOWN: Interface Loopback0, changed state to up
*Mar  1 00:03:43.503: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
2511-TS(config-if)#ip address 1.1.1.1 255.255.255.255    // IP FOR REVERSE TELNET
2511-TS(config-if)#exit
2511-TS(config)#ip host ?
  WORD  Name of host

2511-TS(config)#ip host SW3 ?
  <0-65535>   Default telnet port number
  A.B.C.D     Host IP address
  additional  Append addresses

2511-TS(config)#ip host SW3 2001 ?
  A.B.C.D     Host IP address
  additional  Append addresses

2511-TS(config)#ip host SW3 2001 1.1.1.1     // PORT 2001 TO OCTAL CABLE 1
2511-TS(config)#ip host SW2 2002 1.1.1.1    // PORT 2001 TO OCTAL CABLE 2

2511-TS#show line
   Tty Typ     Tx/Rx    A Modem  Roty AccO AccI   Uses   Noise  Overruns   Int
*    0 CTY              -    -      -    -    -      0       0     0/0       -
     1 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     2 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     3 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     4 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     5 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     6 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     7 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     8 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
     9 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    10 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    11 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    12 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    13 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    14 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    15 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    16 TTY   9600/9600  -    -      -    -    -      0       0     0/0       -
    17 AUX   9600/9600  -    -      -    -    -      0       0     0/0       -
    18 VTY              -    -      -    -    -      0       0     0/0       -
    19 VTY              -    -      -    -    -      0       0     0/0       -
    20 VTY              -    -      -    -    -      0       0     0/0       -
    21 VTY              -    -      -    -    -      0       0     0/0       -
   Tty Typ     Tx/Rx    A Modem  Roty AccO AccI   Uses   Noise  Overruns   Int

2511-TS#configure terminal
2511-TS(config)#line con 0
2511-TS(config-line)#logging synchronous
2511-TS(config-line)#
Enter configuration commands, one per line.  End with CNTL/Z.
2511-TS(config)#line ?
  <0-22>   First Line number
  aux      Auxiliary line
  console  Primary terminal line
  tty      Terminal controller
  vty      Virtual terminal

2511-TS(config)#line 1 ?
  <2-22>  Last Line number
  <cr>

2511-TS(config)#line 1 16
2511-TS(config-line)#?
Line configuration commands:
  absolute-timeout            Set absolute timeout for line disconnection
  access-class                Filter connections based on an IP access list
  activation-character        Define the activation character
  autobaud                    Set line to normal autobaud
  autocommand                 Automatically execute an EXEC command
  autocommand-options         Autocommand options
  autohangup                  Automatically hangup when last connection closes
  autoselect                  Set line to autoselect
  buffer-length               Set DMA buffer length
  callback                    Callback settings
  data-character-bits         Size of characters being handled
  databits                    Set number of data bits per character
  default                     Set a command to its defaults
  disconnect-character        Define the disconnect character
  dispatch-character          Define the dispatch character
  dispatch-machine            Reference a TCP dispatch state machine
  dispatch-timeout            Set the dispatch timer
  domain-lookup               Enable domain lookups in show commands
  editing                     Enable command line editing
  escape-character            Change the current line's escape character
  exec                        Configure EXEC
  exec-banner                 Enable the display of the EXEC banner
  exec-character-bits         Size of characters to the command exec
  exec-timeout                Set the EXEC timeout
  exit                        Exit from line configuration mode
  flowcontrol                 Set the flow control
  flush-at-activation         Clear input stream at activation
  full-help                   Provide help to unprivileged user
  help                        Description of the interactive help system
  history                     Enable and control the command history function
  hold-character              Define the hold character
  insecure                    Mark line as 'insecure' for LAT
  international               Enable international 8-bit character support
  ip                          IP options
  ipv6                        IPv6 options
  length                      Set number of lines on a screen
  location                    Enter terminal location description
  lockable                    Allow users to lock a line
  logging                     Modify message logging facilities
  login                       Enable password checking
  logout-warning              Set Warning countdown for absolute timeout of
                              line
  modem                       Configure the Modem Control Lines
  monitor                     Copy debug output to the current terminal line
  motd-banner                 Enable the display of the MOTD banner
  no                          Negate a command or set its defaults
  notify                      Inform users of output from concurrent sessions
  ntp                         Configure NTP
  padding                     Set padding for a specified output character
  parity                      Set terminal parity
  password                    Set a password
  private                     Configuration options that user can set will
                              remain in effect between terminal sessions
  privilege                   Change privilege level for line
  refuse-message              Define a refuse banner
  rotary                      Add line to a rotary group
  rxspeed                     Set the receive speed
  script                      specify event related chat scripts to run on the
                              line
  session-disconnect-warning  Set warning countdown for session-timeout
  session-limit               Set maximum number of sessions
  session-timeout             Set interval for closing connection when there is
                              no input traffic
  special-character-bits      Size of the escape (and other special) characters
  speed                       Set the transmit and receive speeds
  start-character             Define the start character
  stop-character              Define the stop character
  stopbits                    Set async line stop bits
  telnet                      Telnet protocol-specific configuration
  terminal-type               Set the terminal type
  timeout                     Timeouts for the line
  transport                   Define transport protocols for line
  txspeed                     Set the transmit speeds
  vacant-message              Define a vacant banner
  width                       Set width of the display terminal
  x25                         X25 protocol-specific configuration

2511-TS(config-line)#transport ?
  input      Define which protocols to use when connecting to the terminal
             server
  output     Define which protocols to use for outgoing connections
  preferred  Specify the preferred protocol to use

2511-TS(config-line)#transport input ?
  all     All protocols
  none    No protocols
  pad     X.3 PAD
  rlogin  Unix rlogin protocol
  telnet  TCP/IP Telnet protocol
  udptn   UDPTN async via UDP protocol
  v120    Async over ISDN

2511-TS(config-line)#transport input telnet
2511-TS(config-line)#no exec ?
  prompt  EXEC prompt
  <cr>

2511-TS(config-line)#no exec
2511-TS(config-line)#exec-timeout ?
  <0-35791>  Timeout in minutes

2511-TS(config-line)#exec-timeout 0
2511-TS(config-line)#end
2511-TS#menu ?
  WORD  Name of menu to run

2511-TS#menu TS ?
  <cr>

2511-TS#menu TS     // LOAD TS MENU MANUALLY


+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW2 - 2940

    2          Connect to Rack1 SW3 - 2960

    s          Show all established sessions

    e          Exit Menu

    q          Quit TS session

    c#         Clear the session by number, example: c1

 Make a selection:


OR

2511-TS(config)#line vty 0 4
2511-TS(config-line)#?
Line configuration commands:
  absolute-timeout            Set absolute timeout for line disconnection
  access-class                Filter connections based on an IP access list
  activation-character        Define the activation character
  autobaud                    Set line to normal autobaud
  autocommand                 Automatically execute an EXEC command
  autocommand-options         Autocommand options
  autohangup                  Automatically hangup when last connection closes
  autoselect                  Set line to autoselect
  buffer-length               Set DMA buffer length
  data-character-bits         Size of characters being handled
  databits                    Set number of data bits per character
  default                     Set a command to its defaults
  disconnect-character        Define the disconnect character
  dispatch-character          Define the dispatch character
  dispatch-machine            Reference a TCP dispatch state machine
  dispatch-timeout            Set the dispatch timer
  domain-lookup               Enable domain lookups in show commands
  editing                     Enable command line editing
  escape-character            Change the current line's escape character
  exec                        Configure EXEC
  exec-banner                 Enable the display of the EXEC banner
  exec-character-bits         Size of characters to the command exec
  exec-timeout                Set the EXEC timeout
  exit                        Exit from line configuration mode
  flowcontrol                 Set the flow control
  flush-at-activation         Clear input stream at activation
  full-help                   Provide help to unprivileged user
  help                        Description of the interactive help system
  history                     Enable and control the command history function
  hold-character              Define the hold character
  insecure                    Mark line as 'insecure' for LAT
  international               Enable international 8-bit character support
  ip                          IP options
  ipv6                        IPv6 options
  length                      Set number of lines on a screen
  location                    Enter terminal location description
  lockable                    Allow users to lock a line
  logging                     Modify message logging facilities
  login                       Enable password checking
  logout-warning              Set Warning countdown for absolute timeout of
                              line
  modem                       Configure the Modem Control Lines
  monitor                     Copy debug output to the current terminal line
  motd-banner                 Enable the display of the MOTD banner
  no                          Negate a command or set its defaults
  notify                      Inform users of output from concurrent sessions
  ntp                         Configure NTP
  padding                     Set padding for a specified output character
  parity                      Set terminal parity
  password                    Set a password
  private                     Configuration options that user can set will
                              remain in effect between terminal sessions
  privilege                   Change privilege level for line
  refuse-message              Define a refuse banner
  rotary                      Add line to a rotary group
  rxspeed                     Set the receive speed
  script                      specify event related chat scripts to run on the
                              line
  session-disconnect-warning  Set warning countdown for session-timeout
  session-limit               Set maximum number of sessions
  session-timeout             Set interval for closing connection when there is
                              no input traffic
  special-character-bits      Size of the escape (and other special) characters
  speed                       Set the transmit and receive speeds
  start-character             Define the start character
  stop-character              Define the stop character
  stopbits                    Set async line stop bits
  telnet                      Telnet protocol-specific configuration
  terminal-type               Set the terminal type
  timeout                     Timeouts for the line
  transport                   Define transport protocols for line
  txspeed                     Set the transmit speeds
  vacant-message              Define a vacant banner
  width                       Set width of the display terminal
  x25                         X25 protocol-specific configuration

2511-TS(config-line)#autocommand ?
  LINE                    Appropriate EXEC command
  no-suppress-linenumber  Display service linenumber message

2511-TS(config-line)#autocommand menu ?
LINE    <cr>

2511-TS(config-line)#autocommand menu TS    // LOAD MENU WHEN USING TELNET


----


 Make a selection: 1
Trying SW3 (1.1.1.1, 2001)... Open     // AT THIS POINT, IT JUST REMAINED AS OPEN



+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW3 - 2960

    2          Connect to Rack1 SW2 - 2940

    s          Show all established sessions

    e          Exit Menu

    c#         Clear the session by number, example: c1

    q          Quit TS session

 Make a selection: s
% No connections open


--------

The TS connection to the swtich remained "open" so I checked the config and cable connection. Found out I was connected to Async 9-16. I got a console prompt after changing the octal cable connection to Async 1-8 and tightened the screws.


+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW3 - 2960

    2          Connect to Rack1 SW2 - 2940

    s          Show all established sessions

    e          Exit Menu

    c#         Clear the session by number, example: c1

    q          Quit TS session

 Make a selection: 1
Trying SW3 (1.1.1.1, 2001)... Open

SW3>
SW3>enable
Password:
SW3#who
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00

  Interface      User        Mode                     Idle     Peer Address

SW3#


+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW3 - 2960

    2          Connect to Rack1 SW2 - 2940

    s          Show all established sessions

    e          Exit Menu

    c#         Clear the session by number, example: c1

    q          Quit TS session

 Make a selection: 2
Trying SW2 (1.1.1.1, 2002)... Open

SW2>enable
Password:
SW2#who
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00

  Interface      User        Mode                     Idle     Peer Address


+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW3 - 2960

    2          Connect to Rack1 SW2 - 2940

    s          Show all established sessions

    e          Exit Menu

    c#         Clear the session by number, example: c1

    q          Quit TS session

 Make a selection: s
Conn Host                Address             Byte  Idle Conn Name
   1 SW3                 1.1.1.1                0     1 SW3
*  2 SW2                 1.1.1.1                0     0 SW2


+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW3 - 2960

    2          Connect to Rack1 SW2 - 2940

    s          Show all established sessions

    e          Exit Menu

    c#         Clear the session by number, example: c1

    q          Quit TS session

 Make a selection: c1
Closing connection to SW3 [confirm]


+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+


    1          Connect to Rack1 SW3 - 2960

    2          Connect to Rack1 SW2 - 2940

    s          Show all established sessions

    e          Exit Menu

    c#         Clear the session by number, example: c1

    q          Quit TS session

 Make a selection: s
Conn Host                Address             Byte  Idle Conn Name
*  2 SW2                 1.1.1.1                0     0 SW2


Here's the full running-config output:


2511-TS#show running-config
Building configuration...

Current configuration : 1772 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname 2511-TS
!
logging queue-limit 100
!
ip subnet-zero
ip host SW2 2002 1.1.1.1
ip host SW3 2001 1.1.1.1
!
!
!
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0
 no ip address
 no ip route-cache
 no ip mroute-cache
!
interface Serial0
 no ip address
 no ip route-cache
 no ip mroute-cache
 shutdown
 no fair-queue
!
interface Serial1
 no ip address
 no ip route-cache
 no ip mroute-cache
 shutdown
!
no ip http server
ip classless
!
!
!
!
menu TS title ^C
+---------------------------------------------------+
|  John Lagura's CCIE R&S Lab Terminal Server       |
|                                                   |
| To exit a device, use CTRL+SHIFT+6 then press x   |
+---------------------------------------------------+
^C
menu TS prompt ^C Make a selection: ^C
menu TS text 1 Connect to Rack1 SW3 - 2960
menu TS command 1 resume SW3 /connect Telnet SW3
menu TS text 2 Connect to Rack1 SW2 - 2940
menu TS command 2 resume SW2 /connect Telnet SW2
menu TS text s Show all established sessions
menu TS command s show session
menu TS options s pause
menu TS text e Exit Menu
menu TS command e menu-exit
menu TS text c# Clear the session by number, example: c1
menu TS text q Quit TS session
menu TS command q quit
menu TS command c1 c1
menu TS command c2 c2
menu TS clear-screen
menu TS line-mode
!
alias exec c1 disconnect SW3
alias exec c2 disconnect SW2
!
line con 0
 logging synchronous
line 1 16
 exec-timeout 0 0
 no flush-at-activation
 no exec
 transport input telnet
line aux 0
 transport input all
line vty 0 4
 login
 autocommand  menu TS
!
end