cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4777
Views
20
Helpful
6
Replies

Possible to increase inactivity Timeout on IOS?

Matthew Martin
Level 5
Level 5

Hello All,

Cisco IOS: Version 12.4(13r)T
Device: Cisco 2821

Is it possible to increase the "inactivity/idle" timeout on the router for when you are telnet'ed in? Right now, after about 10 minutes or so of inactivity you get automatically logged out. Is there a way to increase this timeout setting?

Any thoughts or suggestions would be much appreciated!

Thanks in Advance,
Matt

1 Accepted Solution

Accepted Solutions

mightyking
Level 6
Level 6
How to configure the inactive session timeout for the virtual terminal. Note that the timeout is in minutes.
switch# configure terminal
switch(config)# line vty
switch(config-line)# exec-timeout 30
 

This example shows how to revert to the default inactive session timeout for the virtual terminal:

switch# configure terminal
switch(config)# line vty
switch(config-line)# no exec-timeout
 

This example shows how to configure the inactive session timeout for the console port:

switch# configure terminal
switch(config)# line console
switch(config-console)# exec-timeout 30
 

This example shows how to revert to the default inactive session timeout for the console port:

switch# configure terminal
switch(config)# line console
switch(config-console)# no exec-timeout

View solution in original post

6 Replies 6

mightyking
Level 6
Level 6
How to configure the inactive session timeout for the virtual terminal. Note that the timeout is in minutes.
switch# configure terminal
switch(config)# line vty
switch(config-line)# exec-timeout 30
 

This example shows how to revert to the default inactive session timeout for the virtual terminal:

switch# configure terminal
switch(config)# line vty
switch(config-line)# no exec-timeout
 

This example shows how to configure the inactive session timeout for the console port:

switch# configure terminal
switch(config)# line console
switch(config-console)# exec-timeout 30
 

This example shows how to revert to the default inactive session timeout for the console port:

switch# configure terminal
switch(config)# line console
switch(config-console)# no exec-timeout

Hey, thanks for the reply.

But, I'm not seeing the same configuration commands that yours is showing...

I see:

Rtr-Gateway# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Rtr-Gateway(config)# line ?
  <0-529> First Line number
  aux Auxiliary line
  console Primary terminal line
  tty Terminal controller
  vty Virtual terminal
  x/y Slot/Port for Modems
  x/y/z Slot/Subslot/Port for Modems

Rtr-Gateway(config)# line vty ?
  <0-988> First Line number

Rtr-Gateway(config)#
Rtr-Gateway(config)# line ?
  <0-529> First Line number
  aux Auxiliary line
  console Primary terminal line
  tty Terminal controller
  vty Virtual terminal
  x/y Slot/Port for Modems
  x/y/z Slot/Subslot/Port for Modems

Rtr-Gateway(config)# line console ?
  <0-0> First Line number

Rtr-Gateway(config)# line console 0 ?
 

 


Is that for the same version that I'm running, which is Version 12.4(13r)T?

Thanks again for the reply, much appreciated!

Thanks,
Matt
 

 

You need to select the vty line then press enter. Once you`re in the "(config-line)#" mode enter the command "exec-timeout". In the following example I have selected the line vty 0 and the timeout is 30 minutes.

Switch(config)#line vty 0
Switch(config-line)#exec-timeout 30

 

MK

Ahh ha... Ok I see it now, sorry I missed that the first time around, thanks!

So when I telnet to the router I am using the virtual terminal, *i.e. "vty", is that right?
If so, is there a command that shows which vty I'm currently logged-into/using or which vty(s) are currently in use by any user?

I ask because if I run the following it shows vty 0 and vty 5:
    Rtr-Gateway# show run | inc vty
        line vty 0 4
        line vty 5 15


If you're familiar with Linux, I guess it would be like the "who" and "whoami" commands in Linux.

Thanks Again,
Matt

show users in globla mode will display which vty is being used

switch# show users

 Line       User       Host(s)              Idle       Location
*388 vty 0     patadmin   idle                 00:00:00 10.16.X.X

  Interface    User               Mode         Idle     Peer Address

 

 

MK

 .

Perfect! Thanks again...

 

Thanks,
Matt