使用 Cisco Packet Tracer 或實機演示恢復流程。
Router> enable
Router# configure terminal
Router(config)# hostname R-A
R-A(config)# enable password 123456789

rommon 1 > 提示符。


rommon 1 > confreg 0x2142
rommon 2 > reset
0x2142 告訴路由器啟動時忽略 NVRAM 中的啟動配置(即跳過密碼驗證),直接進入用戶模式。
Router> enable → Router#configure terminal → enable secret 新密碼0x2102:config-register 0x2102copy running-config startup-config 或 write memory

enable secret 採用 MD5 加密,比 enable password 明文更安全。