Cisco Catalyst 29xx 3xxx Switch 重設密碼的方法
Recovering from a Lost or Forgotten Password Follow the steps in this procedure if you have forgotten or lost the switch password.Step 1 http://www.cisco.com/en/US/i/templates/blank.gifConnect a terminal or PC with terminal emulation software to the console port. For more information, refer to the switch installation guide.
http://www.cisco.com/en/US/i/templates/note.gif
Note http://www.cisco.com/en/US/i/templates/blank.gifYou can configure your switch for Telnet by following the procedure in the "Accessing the CLI" section.
Step 2 http://www.cisco.com/en/US/i/templates/blank.gifSet the line speed on the emulation software to 9600 baud.
Step 3 http://www.cisco.com/en/US/i/templates/blank.gifUnplug the switch power cord.
Step 4 http://www.cisco.com/en/US/i/templates/blank.gifPress the Mode button, and at the same time, reconnect the power cord to the switch.
You can release the Mode button a second or two after the LED above port 1X goes off. Several lines of information about the software appear, as do instructions:
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
Step 5 http://www.cisco.com/en/US/i/templates/blank.gifInitialize the Flash file system:
switch: flash_init
Step 6 http://www.cisco.com/en/US/i/templates/blank.gifIf you had set the console port speed to anything other than 9600, it has been reset to that particular speed. Change the emulation software line speed to match that of the switch console port.
Step 7 http://www.cisco.com/en/US/i/templates/blank.gifLoad any helper files:
switch: load_helper
Step 8 http://www.cisco.com/en/US/i/templates/blank.gifDisplay the contents of Flash memory:
switch: dir flash:
The switch file system is displayed:
Directory of flash:
2-rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
4drwx 3776 Mar 01 1993 01:23:24html
66-rwx 130 Jan 01 1970 00:01:19env_vars
68-rwx 1296 Mar 01 1993 06:55:51config.text
1728000 bytes total (456704 bytes free)
Step 9 http://www.cisco.com/en/US/i/templates/blank.gifRename the configuration file to config.text.old.
This file contains the password definition.
switch: rename flash:config.text flash:config.text.old
Step 10 http://www.cisco.com/en/US/i/templates/blank.gifBoot the system:
switch: boot
You are prompted to start the setup program. Enter N at the prompt:
Continue with the configuration dialog? : N
Step 11 http://www.cisco.com/en/US/i/templates/blank.gifAt the switch prompt, change to privileged EXEC mode:
switch> enable
Step 12 http://www.cisco.com/en/US/i/templates/blank.gifRename the configuration file to its original name:
switch# rename flash:config.text.old flash:config.text
Step 13 http://www.cisco.com/en/US/i/templates/blank.gifCopy the configuration file into memory:
switch# copy flash:config.text system:running-config Source filename ? Destination filename ?
Press Return in response to the confirmation prompts.
The configuration file is now reloaded, and you can use these normal commands to change the password.
Step 14 http://www.cisco.com/en/US/i/templates/blank.gifEnter global configuration mode:
switch# config terminal
Step 15 http://www.cisco.com/en/US/i/templates/blank.gifChange the password:
switch(config)# enable secret <password>
or
switch(config)# enable password <password>
Step 16 http://www.cisco.com/en/US/i/templates/blank.gifReturn to privileged EXEC mode:
switch(config)# exit switch#
Step 17 http://www.cisco.com/en/US/i/templates/blank.gifWrite the running configuration to the startup configuration file:
switch# copy running-config startup-config
The new password is now included in the startup configuration.
Reference: http://www.cisco.com/en/US/docs/ ... trbl.html#wp1028958
頁:
[1]