1.拔掉交換機(jī)的電源線
2.用超級(jí)終端和控制線連到交換機(jī),超級(jí)終端的設(shè)置是:
9600 baud rate No parity 8 data bits 1 stop bit No flow control |
3.按住交換機(jī)前面板的“mode”按鈕,插上電源線,當(dāng)端口1上面的燈不亮后,放松“mode”按鈕;
4.這時(shí)超級(jí)終端上應(yīng)該顯示:
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 |
5.輸入
flash_init |
6.輸入
load_helper |
7. 輸入
dir flash: |
這時(shí)顯示:
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) |
8.輸入
rename flash:config.text flash:config.old |
9.輸入boot,重新啟動(dòng)系統(tǒng)
10.系統(tǒng)啟動(dòng)完后顯示:
Continue with the configuration dialog? [yes/no] : 輸入N |
11.輸入
enable |
12.進(jìn)入enable模式后,輸入
rename flash:config.old flash:config.text |
13.接著按以下步驟操作:
Switch# copy flash:config.text system:running-config Source filename [config.text]? (press Return) Destination filename [running-config]? (press Return) |
14 .接著按以下步驟操作:
switch#configure terminal switch(config)#no enable secret switch(config)#no enable password switch(config)#exit switch#write memory |
這時(shí),系統(tǒng)就恢復(fù)沒(méi)有密碼的狀態(tài)了。