cisco路由交换常用命令

登录超时设置

route#configure terminal
route(config)#line vty 0 4
route(config-line)#exec-timeout 10 0 #登录路由器以后,不做任何操作的情况下,10分0秒后与路由器断开连接(默认就是10分钟)

登录次数限制与超过次数锁定时间

route#configure terminal
route(config)#login block-for 1800 attempts 10 within 600 #600秒内,登录10次错误的情况下,锁定1800秒

任何用户错误10次,设备锁定30分钟,所有用户都不能登录

创建一个用户audit 级别为2 密码为password

route#configure terminal
route(config)#username audit privilege 2 secret password

将show logging命令级别调整为2

route#configure terminal
route(config)#privilege exec all level 2 show logging

原文地址:https://www.cnblogs.com/luniverseg/p/15545055.html