To set the interval that the EXEC command interpreter waits until user input is detected, use the exec-timeout command in line configuration mode. To remove the timeout definition, use the no form of this command.
exec-timeout minutes [seconds]
no exec-timeout
Syntax Description
minutes
Integer that specifies the number of minutes. The default is 10 minutes.
seconds
(Optional) Additional time intervals in seconds.
Defaults
10 minutes
exec-timeout minutes [seconds]
no exec-timeout
Syntax Description
minutes
Integer that specifies the number of minutes. The default is 10 minutes.
seconds
(Optional) Additional time intervals in seconds.
Defaults
10 minutes
To specify no timeout, enter the exec-timeout 0 0 command.
Examples
The following example sets a time interval of 2 minutes, 30 seconds:
Router(config)# line console
Router(config-line)# exec-timeout 2 30
The following example sets a time interval of 10 seconds:
Router(config)# line console
Router(config-line)# exec-timeout 0 10
exec-timeout 表示超時也不退出某個端口!
在line模式下exec-timeout 0 0可以讓你的telnet不超時
Examples
The following example sets a time interval of 2 minutes, 30 seconds:
Router(config)# line console
Router(config-line)# exec-timeout 2 30
The following example sets a time interval of 10 seconds:
Router(config)# line console
Router(config-line)# exec-timeout 0 10
exec-timeout 表示超時也不退出某個端口!
在line模式下exec-timeout 0 0可以讓你的telnet不超時
文章標籤
全站熱搜
