公司的cisco 2950交換機忘記密碼了,在網上找了幾個方法試了一下,以下的方法可行,是以記下來做參考。
1, 打開超級終端(預設設定) 如下圖,用反轉線接入到CONSOLE口,按Mode 鍵(長按)後給2950加電,
<a href="http://xuchengji.blog.51cto.com/attachment/201105/29/160472_13066440801rfe.jpg"></a>
2,進入switch模式,并輸入flash_init
3,把flash:config.text改名為flash:config.old,并用boot指令重新開機交換機
<a href="http://xuchengji.blog.51cto.com/attachment/201105/29/160472_1306644086ezTw.jpg"></a>
4,當問是否進行配置時,選NO,并進入特權模式,些時已不需密碼
<a href="http://xuchengji.blog.51cto.com/attachment/201105/29/160472_1306644090sdMd.jpg"></a>
5,恢複原來的配置檔案,并更改密碼或取消密碼
Switch# rename flash:config.old flash:confit.text
Switch#copy flash:config.text run
Switch13#show run 檢視配置
Switch13#config t
Switch13(config)#enable secret cisco 把secret的密碼設為cisco
或
Switch13(config)#no enable secret
Switch13(config)#no enable password
注意:secret 密碼優先于enable password密碼,前者設定後,後者不生效.
本文轉自xcjgutong 51CTO部落格,原文連結:http://blog.51cto.com/xuchengji/576919