[CISCO] How to reset 3750 password?

LAB 的一台 CISCO 3750 居然沒人知道密碼,要用的時候才發現有多困擾;
只好把他給強制洗腦囉....

1. 第一步當然是接上 Console 線啦,COM1 or COM2 看你自己的機器囉...
Terminal 設定如下:
9600 baud rate, No parity, 8 data bits, 1 stop bit, No flow control

2. 拔掉電源線,並長按 "mode" button, 然後開機.

3. Type flash_init

4. Type load_helper


5. Type dir flash:
!--- 要確定 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. Type rename flash:config.text flash:config.old 將原來的 configuration file改名,如果接下來要乾淨的重新設定這台 switch 的話,那就直接把檔案殺了就好。

7. Type boot to boot the system.

8. Enter N at the prompt to start the Setup program, Continue with the configuration dialog? [yes/no] : N

9. At the switch prompt type en to turn on enable mode.

10. Type rename flash:config.old flash:config.text 將 configuration file 改回原始檔名. (如果還需要保留舊的設定時才需這個動作)

11. Copy the configuration file into memory:
Switch# copy flash:config.text system:running-config
Source filename [config.text]? (press Return)
Destination filename [running-config]? (press Return)

The configuration file is now reloaded.

12. 接下來就是重頭戲了,改密碼:
switch#configure terminal
switch(config)#enable secret ooxx123 << 其中 ooxx123 就是密碼啦,改成你要的
!-- This step is necessary if the switch had an enable secret password

switch#(config)#^Z
!--Control/Z

13. Write the running configuration to the configuration file:
switch#write memory

好了,搞定收工...
0 Responses