Cisco3750交換機密碼重置的方法

轉載:https://blog.51cto.com/cwind/1313796

1.啓用超級終端並出現連接界面
2.拔掉交換機的電源.
3.按下交換機上的Mode按鈕,與此同時,重新插上交換機的電源線.
4.當交換機左邊的sys燈會慢慢的閃動,(細心的話會發現部分燈紅色的閃過),按住mode按鈕直到sys燈不閃動(常亮狀態).否則提前鬆開的按鈕的話會直接進入正常的啓動,必須跳回步驟2重新操作
5.可以鬆開Mode按鈕

之後系統將顯示一些指示信息:
The system has been interrupted prior to initializing the flash file system.The following
commands will initialize the flash file system, and finish loading theoperating system software:
flash_init /---初始化flash文件系統---/
load_helper /---加載幫助文件---/
boot /---啓動設備進入正常的模式---/

步驟:
switch:
Switch:flash_init
Switch:dir flash: /---查看Flash的文件名字可以用來確認文件名爲config.text---/
Switch:rename flash:config.text flash:config.text.old /---把配置文件重命名,當然你可以不改爲config.text.old,只要文件名和原來的不相同就可以---/
Switch:boot /---手動啓動交換機---/
由於配置文件改過了,所以交換機找不到默認的config.text而出現配置的對話嚮導,選擇n然後回車然後我們就會繞過原來的password而進入到:
Switch>
Switch>en /--可以進入特權模式--/
Switch#rename flash:config.text.old flash:config.text /---恢復交換機配置文件---/
Switch#copy flash:config.text system:running-config /---保存配置到DRAM裏---/
Switch#config t
Switch(config)#no enable password /---幹掉特權模式舊密碼---/
Switch(config)#no enable secret /---幹掉加祕密碼---/
Switch(config)#exit
Switch#copy run start /---把當前配置的文件寫回Flash---/

用這個方法修改密碼不會把原來的配置文件內容清掉。特別是一個現成的大型網絡裏已經在運行的交換機,這樣比較保險!

轉載:https://blog.51cto.com/cwind/1313796

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章