Cisco交换机口令的恢复(Catalyst 2900-XL and 3500-XL)<br>
<br>
Contents <br>
Description<br>
Step-by-Step Procedure<br>
Related Information <br>
<br>
Description<br>
This document describes the password recovery procedure for the Cisco Catalyst 2900-XL and the Cisco Catalyst 3500-XL.<br>
<br>
Step-by-Step Procedure<br>
Attach a terminal or PC with terminal emulation to the console port of the switch. Use the following terminal settings: <br>
9600 baud rate<br>
No parity<br>
8 data bits<br>
No stop bit<br>
<br>
Unplug the power cable. <br>
Hold down the mode button while reconnecting the power cord to the switch. You can release the mode button a second or two after the LED above port 1x is no longer illuminated. <br>
The following instructions appear:<br>
<br>
The system has been interrupted prior to initializing the flash file system. <br>
The following commands will initialize the flash file system, and finish loading <br>
the operating system software:<br><br>
flash_init<br>
load_helper<br>
boot<br>
<br>
Type flash_init. <br>
Type load_helper. <br>
Type dir flash:. <br>
The switch file system is displayed:<br>
<br>
Directory of flash: <br>2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA<br>4 drwx 3776 Mar 01 1993 01:23:24 html <br>
66 -rwx 130 Jan 01 1970 00:01:19 env_vars<br>
68 -rwx 1296 Mar 01 1993 06:55:51 config.text<br>
1728000 bytes total (456704 bytes free)<br>
<br>
Type rename flash:config.text flash:config.old to rename the configuration file. <br>
This file contains the password definition. <br>
<br>
Type boot to boot the system. <br>
Enter N at the prompt to start the Setup program, Continue with the configuration dialog? [yes/no] : N <br>
At the switch prompt type en to turn on enable mode. <br>
Type rename flash:config.old flash:config.text to rename the configuration file with its original name. <br>
Copy the configuration file into memory. <br>
Switch# copy flash:config.text system:running-config<br>
Source filename [config.text]? (press Return)<br>
Destination filename [running-config]? (press Return) <br>
<br>
The configuration file is now reloaded.<br>
<br>
Change the password. <br>
switch#config terminal<br>
switch(config)#enable password Cisco<br>
<br>
Write the running configuration to the configuration file.<br>
switch(config)#write mem<br>
<br>