Cisco IOS Cookbook 中文精简版第三章用户访问和…

2008-02-23 04:55:08来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

Router1#send 66

注释 很好用的特性,比如当你重启的时候需要告诉别人,文本信息^Z结束

3.8. 修改可用VTY数目

提问 增加或者减少可登录用户的数目

回答

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#line vty 0 9

Router1(config-line)#exit

Router1(config)#end

Router1#

注释 缺省可登录vty数目为5,不能删除,对于增加的可以使用no line vty x 删除,不能不能删除单独的vty,是删除所有大于xvty

3.9. 修改VTY的超时时长

提问 修改超时避免用户登录超时被系统断开

回答

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#line vty 0 4

Router1(config-line)#exec-timeout 0 0 exec-timeout 240 0

Router1(config-line)#exit

Router1(config)#end

Router1#

注释 缺省用户10分钟空闲就会被踢掉系统,0 0可以用不超时,第一个0是分钟,第二个0是秒。同时为了防止有些用户掉死但是还占用vty端口的情况,建议使用下面命令来防止:

Router1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router1(config)#service tcp-keepalives-in

Router1(config)#end

Router1#

本新闻共3页,当前在第11 2 3

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Cisco IOS Cookbook 中文精简版第四章TACAS

下一篇:Cisco IOS Cookbook 中文精简版第二章路由器管理