Cisco‎ > ‎

Cisco Switch密碼恢復方法

Catalyst 3750系列

1.透過帶有支援 Xmodem 協議的超級終端程式(Putty)的 PC 連接到交換機的 console 口,
把”每秒傳輸位元”設定為 9600。

2.拔掉交換機的電源。

3.按下交換機上的 Mode 按鈕,與此同時,
重新插上交換機的電源線。當交換機連接埠 1X 上的 LED 熄滅後可以鬆開 Mode 按鈕 1 到 2 秒。之後將顯示一些指示資訊:
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#

4.初始化 flash 檔案系統:
switch# flash_init

5.載入說明檔案:
switch# load_helper

6.顯示 flash 裡的內容:
switch# dir flash:

7.重新命名配置檔案:
switch# rename flash:config.text flash:config.text.old

8.啟動系統,並且如果提示進入 setup 模式,輸入N:
switch# boot
Continue with the configuration dialog? [yes/no]: N

9.進入特權模式,把配置檔案名稱恢復為原始檔名:
Switch# rename flash:config.text.old  flash:config.text

10.把配置檔案寫進記憶體:

Switch# copy flash:config.text  system:running-config
Source filename [config.text]?
Destination filename [running-config]?

11.進入全局配置模式更改
密碼:
Switch(config)# enable secret {password}

12.或取銷密碼
Switch(config)# no enable secret

12.退出,並儲存到 startup-config 檔案裡:

Switch(config)#copy running-config startup-config
Comments