1. 啟用超級終端並出現連接界面
2. 拔掉交換機的電源
3. 按下交換機上的 Mode按鈕, 與此同時重新插上交換機的電源線
4. 當交換機左邊的sys 燈會慢慢的閃動, ( 細心的話會發現部分燈紅色的閃過,按住mode按鈕直到&sys 燈不閃動( 常亮狀態). 否則提前松開的按鈕的話會直接進入正常的啟動,必須跳回步驟2 重來
5. 可以松開Mode按鈕之后系統將顯示一些指示信息
The system has been interrupted prior to initializing the flash
initialize the flash file system, and finish loading software:
-- 初始化flash 文件系統load_helper
--- 加載幫助文件
--- 啟動設備進入正常的模式
步驟
Switch: flash_init
Switch: dir flash:
--- 查看 Flash 的文件名字可以用來確認文件名為config.text
---Switch: rename flash:config.text flash:oldconfig.text
--- 把配置文件重命名當然你可以不改為oldconfig.text , 只要文件名和原來的不相同就可以
Switch: boot
--- 手動啟動交換機
由於配置文件改過了,所以交換機找不到默認的config.text 而出現配置的對話向導,選擇n 然后回車然后我們就會繞過原來的 password 而進入到
switch# en
-- 可以進入特權模式
Switch# rename flash:oldconfig.text flash:config.text
/--- 恢復交換機配置文件
Switch# copy flash:config.text system:running-config
--- 保存配置到DRAM里-
Switch# config t;這時就可以設置新的password 為 cisco
Switch(config)#enable password cisco
Switch(config)#enable secret CISCO
Switch(config)# line con 0
Switch(config)# password ciscoSwitch# copy run start
--------------------------------------或用下面方法暫時清空密碼
待以后再做設置Switch(config)# no enable password
--- 干掉特權模式
Switch(config)# exit
Switch# copy run start-config
http://blog.51cto.com/zhuqianwei/1545273