重設Router及Switch的密碼

0

Posted by ŚΪmÖn | Posted on 2010/04/08

Cisco Router 1700/2600/3600 系列

1.重新打開Router的電源,並按Crtl+Break,進入ROM monitor模式
2. 更改組態暫存器
   rommon 1 >  confreg 0x2142
3.重新開機
    rommon 2 > reset
4.進入對話模式後,請選no
    Would you like to enter the initial configuration dialog?[yes/no] no
5. 進入特權模式
   Router > enable  
   Router#
6.切換到配置模式
   Router# config t
7.修改密碼
   Router(config)# enable secret 密碼 (或是 enable password 密碼)
8.還原組態暫存器值
   Router(config) # config-register 0x2102
9.跳出配置模式  
   Router(config) # end
10.儲存參數
   Router # copy running-config startup-config
   (把RAM中的設定,儲存到NVRAM中)
11.重新啟動
   Router # reload


===========================================================
Cisco Switch 2900系列
1.重新啟動Switch的電源,並且長按mode button的鍵
2.switch : flash_init
3.在flash的目錄下顯示所有檔案
   switch : dir flash :
4.更改config.text的名稱
   switch : rename flash:config.text flash:config.old
5.重新啟動
   switch : boot
6.進入對話模式後,請選no
   Continue with configuration dialog?[yes/no] no
7.進到特權模式
   Switch > en
   Switch #
8.再把 config.old 的名時再改回來
   Switch # rename flash:config.old flash:config.text
9.切換到配置模式
   Switch # config t
   Switch(config) #
10.更改密碼
   Switch(config)# enable secret 密碼 (或是 enable password 密碼)  
11.回到特權模式
   Switch(config)# end (或是 crtl+z)
12.儲存參數
   Switch # write memory (或是 copy running-config startup-config)

Comments (0)

Post a comment