Simple question - How to set EXEC timeout?
workfrom925
Member Posts: 196
in CCNA & CCENT
If I want the router to close the connection after 5 minutes of inactivity, how to set it up? What's IOS' default timeout value? Thanks.
Comments
-
RemcoST Member Posts: 6 ■□□□□□□□□□The default value I am insure of. However to adjust the setting you go into the configuration for your console, vty or aux line and use the following command:
exec-timeout minutes seconds
So if you would like to adjust this to 5 minutes on your console line:
Router(Config)# line con0
Router(config-line)# exec-timeout 5 0 -
joneno Member Posts: 257 ■■■■□□□□□□
-
Ltat42a Member Posts: 587 ■■■□□□□□□□You can also use context help -
Router(config-line)#exe?
exec-timeout
Router(config-line)#exec-timeout ?
<0-35791> Timeout in minutes
Router(config-line)#exec-timeout 0 ?
<0-2147483> Timeout in seconds
<cr>
Router(config-line)#exec-timeout 0 0 ?
<cr>
Router(config-line)#exec-timeout 0 0
Router(config-line)#
hth -
Ivanjam Member Posts: 978 ■■■■□□□□□□Fall 2014: Start MA in Mathematics [X]
Fall 2016: Start PhD in Mathematics [X] -
workfrom925 Member Posts: 196If I'm setting up a new router, I should be careful not to enter "exec-timeout 0 1". That means I only have one second connection to the router through the console port. And telnetting into the router might not be available yet. Am I correct?
-
Ltat42a Member Posts: 587 ■■■□□□□□□□It depends on what line you set the timeout "0 1" to. You can set the exec-timeout on the console port and the vty lines. If you set that on the console port, timeout will occur in 1 second. It does not affect the timeout when you telnet into the router.