Simple question - How to set EXEC timeout?

workfrom925workfrom925 Member Posts: 196
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

  • RemcoSTRemcoST 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
  • jonenojoneno Member Posts: 257 ■■■■□□□□□□
  • Ltat42aLtat42a 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
  • IvanjamIvanjam Member Posts: 978 ■■■■□□□□□□
    Ltat42a wrote: »
    Router(config-line)#exe?...
    Good one icon_thumright.gif
    Fall 2014: Start MA in Mathematics [X]
    Fall 2016: Start PhD in Mathematics [X]
  • workfrom925workfrom925 Member Posts: 196
    If 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?
  • Ltat42aLtat42a 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.
  • Mrock4Mrock4 Banned Posts: 2,359 ■■■■■■■■□□
    The default exec-timeout value is 10 minutes
Sign In or Register to comment.