Hi Natchaya,

Here is an example configuration that should help you out.

!
conf t
!
!
int e 0
 ip address 192.168.0.1 255.255.255.0
 no shut
 no keepalive
exit
!
!
menu console_menu title /


        ========================================================
             Welcome to the Foo Out Of Band Terminal Server
        ========================================================
        To disconnect a session, please press ,
        enter X and then enter "18" to disconnect.

        Type a number to select an option;
        Type 17 to exit the menu.
        ========================================================

        1.      Device A Console
        2.      Device B Console
        3.      Device C Console
        4.      Device D Console
        5.      Device E Console
        6.      Device F Console
        7.      Device G Console
        8.      Device H Console
        9.      Device I Console
        10.     Device J Console
        11.     Device K Console
        12.     Device L Console
        13.     Device M Console
        14.     Device N Console
        15.     Device O Console
        16.     Device P Console
        17.     Exit
        18.     Disconnect your present Serial connection

/
!
!
!
menu console_menu command 1 connect 192.168.0.1 2001
menu console_menu command 2 connect 192.168.0.1 2002
menu console_menu command 3 connect 192.168.0.1 2003
menu console_menu command 4 connect 192.168.0.1 2004
menu console_menu command 5 connect 192.168.0.1 2005
menu console_menu command 6 connect 192.168.0.1 2006
menu console_menu command 7 connect 192.168.0.1 2007
menu console_menu command 8 connect 192.168.0.1 2008
menu console_menu command 9 connect 192.168.0.1 2009
menu console_menu command 10 connect 192.168.0.1 2010
menu console_menu command 11 connect 192.168.0.1 2011
menu console_menu command 12 connect 192.168.0.1 2012
menu console_menu command 13 connect 192.168.0.1 2013
menu console_menu command 14 connect 192.168.0.1 2014
menu console_menu command 15 connect 192.168.0.1 2015
menu console_menu command 16 connect 192.168.0.1 2016
menu console_menu command 17 menu-exit
menu console_menu command 18 disconnect
menu console_menu clear-screen
menu console_menu status-line
menu console_menu line-mode
menu console_menu single-space
!
!
line 1 16
 session-timeout 120 
 no exec
 exec-timeout 120 0
 password cisco
 login    
 transport input all
 stopbits 1
exit
!
line con 0
 login
 password cisco
 autocommand menu console_menu 
exit
!
!



It has a bit more than you normally need, but it is also nice and friendly.
If I break the configuration down you will see that I have put the IP
Address 192.168.0.1 255.255.255.0 on Ethernet 0.
In addition I have put in the "no keepalive" command, which allows you to
reverse telnet to the device even though you do not have an actual LINK on
Ethernet 0.
If you do not use the "no keepalive" command then you actually have to have
a LINK on E0.

Then you will see that I have put in a MENU called "console_menu".

When you connect to the console of the Terminal Server, this menu appears
automatically due to the "autocommand menu console_menu" command.

Next you will notice all of the "menu console_menu command" commands towards
the end of the config, which will be executed when you type the
corresponding number when the menu has appeared.

That means that if you type a 3 when the menu appears then it will execute a
"connect 192.168.0.1 2003" which means that it does a reverse telnet to port
2003.

This connnects you to CONSOLE Port 3 on your Terminal Server.

If you have any problems with this configuration, give me a shout.

Have fun,

Brian.


Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=74009&t=73987
--------------------------------------------------
**Please support GroupStudy by purchasing from the GroupStudy Store:
http://shop.groupstudy.com
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html

Reply via email to