语法:
1.从全局配置模式进入线路配置模式,进入控制台口线路:
NUAIKO(config)#line console {number}
2.启用光标跟随:
NUAIKO(config-line)#logging synchronous
3.设置当键盘多少时间内无动作,自动被路由器弹出到用户模式以外,即退出.如果设置为 0 分 0 秒代表永不
超时:
NUAIKO(config-line)#exec-timeout {minute} {second}
解释:
所谓光标跟随,是指当我们在输入命令的时候,不会被一些日志信息或 debug 命令产生的调试命令所冲断.
模式该特性是没有启用的.
配置实例一:
NUAIKO(config)#exit
NUAIKO#
 
*Mar 1 00:20:11.231: %SYS-5-CONFIG_I: Configured from console by consoleconfigure
terminal
Enter configuration commands, one per line.
NUAIKO(config)#line console 0
NUAIKO(config-line)#logging synchronous
NUAIKO(config-line)#end
NUAIKO#
*Mar
1 00:20:38.123: %SYS-5-CONFIG_I: Configured from console by console
NUAIKO#configure terminal
NUAIKO(config)#