实验5:使用寄存器的值2142恢复路由器Cisco 2811密码
在进入系统时按住Ctrl+C 或者Ctrl+break进入rommon monitor模式
monitor: command "boot" aborted due to user interrupt
rommon 1 > help
boot boot up an external process
confreg configuration register utility
dir list files in file system
help monitor builtin command help
reset system reset
set display the monitor variables
tftpdnld tftp image download
unset unset a monitor variable
0x表示16进制,修改系统启动时不加载startup-config: rommon 2 > confreg 0x2142
rommon 3 > reset
Continue with configuration dialog? [yes/no]: n
609 bytes copied in 0.416 secs (1463 bytes/sec)
r1#
%SYS-5-CONFIG_I: Configured from console by console
r1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#ena secret ccna
r1(config)#config-register 0x2102
r1(config)#end
r1#
%SYS-5-CONFIG_I: Configured from console by console
r1#wr
Building configuration...
[OK]
r1#show version
...
Configuration register is 0x2142 (will be 0x2102 at next reload)
r1#reload
Proceed with reload? [confirm]
Press RETURN to get started!
这时用新设置的特权密码就可以进入特权模式了