1
重啟路由器,當出現啟動過程時,不斷按下Ctrl+Break鍵來中斷路由器啟動,使路由器進入rommon模式。
System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE (fc1)
Copyright (c) 2005 by cisco Systems, Inc.
Initializing memory for ECC
c2821 processor with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
Readonly ROMMON initialized
rommon 1>
2
改變配置寄存器的值為 0x2142,這會使得路由器開機時不讀取 NVRAM 中的配置文件。
rommon 1>confreg 0x2142
3
輸入“i”,在rommon模式下重新啟動路由器。重啟后路由器空配置進入setup模式,用Ctrl+C或者回答“n”退出setup模式。
rommon 2 > i
4
將配置文件從NVRAMcopy至RAM中。
Router>enable
Router#copy startup-config running-config
5
修改running-config enable密碼,如果有其他登錄密碼一并可以修改。
R2#configure terminal
R2(config)#enable password cisco
6
將寄存器的值恢復至0x2102,設備啟動時加載NVRAM中的配置文件。
R2(config)#config-register 0x2102
7
將當前運行配置文件保存至NVRAM中
R2(config)#exit
R2#copy running-config startup-config
8
重新啟動設備,使用新密碼登錄設備
R2#reload
1
重啟路由器,當出現啟動過程時,不斷按下Ctrl+Break鍵來中斷路由器啟動,使路由器進入rommon模式。
System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE (fc1)
Copyright (c) 2005 by cisco Systems, Inc.
Initializing memory for ECC
c2821 processor with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
Readonly ROMMON initialized
rommon 1>
2
改變配置寄存器的值為 0x2142,這會使得路由器開機時不讀取 NVRAM 中的配置文件。
rommon 1>confreg 0x2142
3
輸入“i”,在rommon模式下重新啟動路由器。重啟后路由器空配置進入setup模式,用Ctrl+C或者回答“n”退出setup模式。
rommon 2 > i
4
將配置文件從NVRAMcopy至RAM中。
Router>enable
Router#copy startup-config running-config
5
修改running-config enable密碼,如果有其他登錄密碼一并可以修改。
R2#configure terminal
R2(config)#enable password cisco
6
將寄存器的值恢復至0x2102,設備啟動時加載NVRAM中的配置文件。
R2(config)#config-register 0x2102
7
將當前運行配置文件保存至NVRAM中
R2(config)#exit
R2#copy running-config startup-config
8
重新啟動設備,使用新密碼登錄設備
R2#reload