配置进入特权模式密码
把特权密码配置为gd0668seo命令如下:
Router>enable
Router#configureterminal
Enterconfiguration commands, one per line.End with CNTL/Z.
Router(config)#enablepassword gd0668seo
Router(config)#exit
截图如下
测试密码,退出特权模式再重新进(输入的密码是不显示的)截图如下:
配置成功!
配置管理台登录密码
把管理台登录密码配置为gd0668seo命令如下:
Router>enable
Password:
Router#configureterminal
Enterconfiguration commands, one per line.End with CNTL/Z.
Router(config)#lineconsole 0
Router(config-line)#passwordgd0668seo
Router(config-line)#login
Router(config-line)#exit
Router(config)#
截图如下:
测试密码,退出管理台再重新进(输入的密码是不显示的)截图如下:
配置成功!
配置远程管理
只有配置了VTY线路的密码后,才能利用telnet命令远程登录路由器的,下面假设要配置VTY 0—4条线路的密码为gd0668seo,则配置命令如下:
Router>enable
Password:
Router#configureterminal
Enterconfiguration commands, one per line.End with CNTL/Z.
Router(config)#linevty 0 4
Router(config-line)#passwordgd0668seo
Router(config-line)#login
Router(config-line)#exit
Router(config)#
Router#
截图如下:
用户远程计算机测试登录路由器(由于笔者用的是模拟软件,就直接用telnet命令好了)!命令如下:
PC>telnet192.168.1.1
Trying192.168.1.1 ...Open
UserAccess Verification
Password:
Router>enable
Password:
Router#showrunning-config
截图如下:
登录成功了,并查看了正在运行的配置!