二、口令的恢复
当用户忘记或错误地修改了口令,需要进行恢复时,可以按照如下步骤操作:
1.进入rom中断状态
2.读出当前引导方式:
>e/s2000002
3.作如下改变,忽视nvram引导:
>o/r0x**4*
4.重启路由器: >i
5.进入steup模式,对所有问题回答no
6.进入超级用户:
router>enable
7.下载nvram:
router#config memory
8.恢复初始启动值,并激活所有端口:
"hostname"#config terminal
"hostname"(config)#config-register 0x"value"
"hostname"(#config)#interface xx
"hostname"(config-if)#no shutdown
9.查询口令:
"hostname"#show configuration(show
startup-config)
10.修改和存储口令:
"hostname"#config terminal
"hostname"(config-line)#lineconsole0
"hostname"(config-line)#login
"hostname"(config-line)#password
xxxxxxxx
"hostname"(config-line)#(cntl-z)
"hostname"#write memory(copy
running-config startup-config)

