Cisco交換機密碼恢復

一、按住交換機前面板左下方的MODE鍵,而後打開交換機電源。ide

 

二、進入BOOT模式,輸入「flash_init」,初始化FLASH信息:3d

switch:flash_initblog

 

[3]、輸入「load_helper」命令:內存

switch:load_helper路由

(部分型號交換機不需執行該命令。查看進入BOOT模式後,信息提示是否有「load_helper」。若有,需輸入。沒有不需輸入。)terminal

例:信息提示顯示爲get

       flash_initflash

       load_helperit

       bootclass

     須要輸入「load_helper」命令

如上圖顯示,就不須要輸入「load_helper」命令

 

 

四、執行「dir flash:」命令:

執行「dir flash:」命令後咱們應該能夠看到VLAN.DAT,IOS鏡像,以及config.text 文件。交換機密碼恢復的重點就是保存這個密碼的config.text文件。

switch:dir flash:

 

五、對保存密碼的config.text文件執行文件名替換:

switch:rename flash:/config.text flash:/config.old

 

六、離開BOOT模式,啓動交換設備:

switch:boot 

 

七、交換設備啓動後,進入交換機的特權模式,拷貝配置文件到內存中

switch# copy flash:config.old system:running-config

 

八、改變口令

switch#config terminal 

switch(config)#enable password [密碼]

 

九、保存配置:

switch#write mem

 

十、更改回/刪除配置文件[可省略,因交換機配置就是從config.old拷貝出]

switch# rename flash:/config.old flash:/config.text 

switch# delete flash:/config.old

 

PS: Cisco官方模擬器Packet Tracer(PT)目前暫時只能模擬路由器的密碼恢復,沒法模擬交換機的密碼恢復。

相關文章
相關標籤/搜索