Wednesday, February 20, 2008

Exex-timout Command

Here's another useful one I like. When I'm connected to my switch or router while practicing a lab, sometimes when I turn my attention to a certain topic for quite a while and my telnet connection remain inactive for over 5 minutes, it will suddenly disconnect. To prevent that from happening:

Router(config)#line vty 0 4 - sets time limit on vty session 0 to 4
Router(config-line)#exec-timeout 0 0 --
0 minutes and 0 sec, telnet never logs off
Router(config-line)#

No comments: