(1)拔下交換機的電源線。
(2)按下MODE鍵插上電源直到出現以下界面,鬆開MODE鍵
.....................
.....................
flash_init
load_helper
boot
switch:
(3)在switch後執行flash_init命令
switch:flash_init
(4)查看FLASH中的文件
switch:dir flash:
(5)把config.text文件更名爲config.old
switch:rename flash:config.text flash:config.old
(6)執行 boot 命令 啓動交換機
switch:boot
(7)進入特權模式查看flash裏的文件
switch#dir flash:
(8)把config.old改回config.text
switch#rename flash:config.old flash:config.text
(9)把config.text複製爲系統的running-config
switch#copy flash:config.text running-config
(10)進入配置模式從新設定密碼並存盤,密碼恢復完成。ide