Cisco 2621 路由器密碼恢復實驗

清空路由器所有配置,重啓
Router#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Router#reload
Proceed with reload? [confirm]


設置密碼,並保存配置
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable password 123
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#wr
Building configuration...
[OK]


密碼恢復
關閉路由器電源並重新開機,在路由器啓動時,按【Ctrl+Break】鍵中斷路由器的啓動過程,進入rommon 模式。
rommon 1 > confreg 0x2142
rommon 2 > boot
......
         --- System Configuration Dialog ---

Continue with configuration dialog? [yes/no]: no


此時已可以直接進入特權模式,將NVRAM中的配置複製到RAM中
Router>
Router>en
Router#copy startup-config running-config
Destination filename [running-config]? 

429 bytes copied in 0.416 secs (1031 bytes/sec)

%SYS-5-CONFIG_I: Configured from console by console


重新設置密碼,保存配置,重啓。
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable password 123456
Router(config)#conf
Router(config)#config-register 0x2102
Router(config)#exit

%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]

Router#reload
Proceed with reload? [confirm]

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章