CISCO IOS常用配置命令
Router>enable
Router#configure terminal
Router(config)#enable secret xmws //设置enable的密码为xmws
Router(config)#enable password wisdom //设置enable的密码为wisdom,不能和enable secret 设置的密码相同,如果都设置,secret生效
Router(config)#no ip domain-lookup //关掉域名查找功能
Router(config)#service password-encryption //对明文口令进行加密,比如加密Console口、VTY或enable password设置的密码,这样密码不再显示为明文
Router(config)#line console 0 //进入Cconsole口
Router(config-line)#password xmws //设置Console口密码为xmws
Router(config-line)#login //启用密码
Router(config-line)#exec-timeout 0 0 //设置操作会话不超时
Router(config-line)#logging synchronous //配置光标跟随, 阻止控制台信息打断你当前的输入,从而使输入信息显得更为简单易读
Router(config)#line vty 0 4 //进入VTY
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#exec-timeout 0 0
Router(config-line)#logging synchronous
注:VTY (虚拟终端) 在网络操作系统(包括Cisco IOS)中是一个接受telent或ssh连接的逻辑端口。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。