今天下午剛好有一台Cisco 2960交換機出現故障,立即更換一台備用交換機上去,但備用交換機是從另一分支機構轉移回來,密碼已經忘了。正好用到恢複密碼的過程,也一并分享出來。
1、 設定WINDOWS超級終端,名稱自定義。建議用SecureCRT:
波特率(每秒位數):9600
資料位:8
奇偶校驗:無
停止位:1
資料流控制:硬體或無
2、連接配接交換機電源的同時按住交換機前面闆上的mode(模式)鍵,直到交換機上1X端口訓示燈不再亮(大約15~20秒)。将出現以下資訊:
The system has been interrupted prior to initializing the flash file system. The following commands will initialize the flash file system, and finish loading the operating system software:
flash_init
load_helper
boot
switch>
3、在switch>提示符下鍵入flash_init,進行初始化;
4、switch>load_helper
5、switch>dir flash:
顯示如下資訊:
Directory of flash:
2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
4 drwx 3776 Mar 01 1993 01:23:24 html
66 -rwx 130 Jan 01 1970 00:01:19 env_vars
68 -rwx 1296 Mar 01 1993 06:55:51 config.text
1728000 bytes total (456704 bytes free)
6、switch>rename flash:config.text flash:config.old
7、switch>boot
把配置檔案更名後,在switch>下鍵入boot引導裝置,在系統開始進行設定的時候,按N鍵,設定完成後,出現如下資訊:
Continue with the configuration dialog? [yes/no] :
鍵入n
8、出現switch>提示符後,鍵入en進入配置模式
9、重新命名配置檔案:
switch> rename flash:config.old flash:config.text
10、拷貝配置檔案到記憶體中
Switch# copy flash:config.text system:running-config
Destination filename [running-config]? (press Return)
按Enter鍵,将配置檔案重新裝入。
11、改變密碼
switch#config terminal
switch(config)#enable password Cisco
switch(config)#enable secret cisco123
12、将目前配置寫入配置檔案
switch(config)#copy run starup