1、
路由器的密码恢复(百步凌云)
进入路由随便设置一个较长的密码(密码不易记)
Router>enable 从用户模式进入特权模式
Router#configure terminal 从特权模式进入全局模式
Router(config)#hostname CCIE 设置路由器的名称
CCIE(config)#enable password djfsjlsjdfsjoeiri
2、 设置密码
CCIE(config)#end 从任何模式退回到特权模式
CCIE#copy running-config startup-config 将以上配置从当前配置运行文件
中保存到下次启动配置文件中
重启验证密码设置是否成功
CCIE#
CCIE#reload 重启
3、
CCIE>
CCIE>en
Password:
Password:
Password:
% Bad secrets
CCIE>
CCIE>
物理重启,按Ctrl+break键进入rommon 1 >模式通过修改路由器的寄存值跳过密码
Self decompressing the image :
################
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142
4、 设置路由器启动是跳过密码
rommon 2 > reset 重启
重设密码
Router>
Router>en (重复命令不在复述)
Router#conf terminal
Router(config)#
Router(config)#enable password cisco 重新设置一个易记的密码
Router(config)#end
Router#
Router#copy running-config startup-config
Router#
重启后讲路由器改回到的寄存值
Router#reload
rommon 2 > confreg 0x2102
rommon 3 > reset
Router>
Router>en
Password:
Router#