2900和3500系列交换机口令恢复!!!
说明
这个文档描述了Cisco Catalyst 2900系列和3500系列交换机的口令恢复过程。
步骤
连接一个终端或带终端仿真程序的PC到交换机的CON口。使用如下的终端设置:
9600 baud rate
No parity
8 data bits
No stop bit
拔掉电源线。
按住mode键直到重新接上交换机的电源。当1X口的指示灯不再闪烁之后一两秒就可以放开mode键。
会出现以下提示:
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
键入 flash_init
键入 load_helper
键入 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)
键入 rename flash:config.text flash:config.old 来修改配置文件的名字。
这个文件中含有口令的定义。
键入 boot 重新启动系统。
当提示开始设置程序时键入 N ,
Continue with the configuration dialog? [yes/no] : N
在交换机提示符下键入 en 来进入 enable 配置模式 。
键入 rename flash:config.old flash:config.text 来修改配置文件名为原来的名字。
拷贝配置文件到内存。
Switch# copy flash:config.text system:running-config
Source filename [config.text]? (按回车)
Destination filename [running-config]? (按回车)
The configuration file is now reloaded.
修改口令。
switch#config terminal
switch(config)#enable password Cisco
保存正运行的配置到配置文件
switch#write mem