本文档介绍了 Cisco Catalyst 第 2 层固定配置交换机 2900XL/3500XL、2940、2950/2955、2960 和 2970 系列以及 Cisco Catalyst 第 3 层固定配置交换机 3550、3560 和 3750 系列的口令恢复过程。
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
本文档没有任何特定的前提条件。
请执行以下口令恢复过程。
将终端或带终端仿真的 PC(例如超级终端)与交换机的控制台端口连接。
使用以下终端设置:
Bits per second (baud):9600
数据位:8
奇偶校验:无
停止位:1
流量控制:Xon/Xoff
注:有关布线和将终端连接到控制台端口的详细信息,请参阅将终端连接到Catalyst交换机的控制台端口。
拔下电源线。
接通交换机电源并将其启动到 switch:提示符:
对于 2900XL、3500XL、2940、2950、2960、2970、3550、3560 和 3750 系列交换机,执行以下操作:
将电源线重新连接到交换机时,请按住位于前面板左侧的模式按钮。
Catalyst 交换机系列 | LED 行为和模式按钮释放操作 |
---|---|
2900XL、3500XL 和 3550 | 当 Port1x 上方的 LED 熄灭时,释放模式按钮。 |
2940 、2950 | 在大约 5 秒之后当状态 (STAT) LED 熄灭时,释放模式按钮。释放模式按钮之后,SYST LED 闪烁琥珀色。 |
2960 、2970 | 当 SYST LED 先闪烁琥珀色然后转为稳定的绿色时,释放模式按钮。释放模式按钮之后,SYST LED 闪烁绿色。 |
3560 和 3750 | 在大约 15 秒之后当 SYST LED 转为稳定的绿色时,释放模式按钮。释放模式按钮之后,SYST LED 闪烁绿色。 |
注意:LED的位置可能因型号而略有不同。
Catalyst 3524XL
Catalyst 2950-24
只适用于 2955 系列交换机:
Catalyst 2955 系列交换机不使用外部模式按钮进行口令恢复。作为替代,交换机引导加载器使用中断键检测停止自动引导序列,以进行口令恢复。中断序列由使用的终端应用程序和操作系统决定。运行在 Windows 2000 上的 Hyperterm 使用 Ctrl + Break。在运行 UNIX 的工作站上,Ctrl-C 是break键。有关详细信息,请参阅口令恢复过程中的标准break key序列组合。
以下示例使用Hyperterm进入交换机: 模式。
C2955 Boot Loader (C2955-HBOOT-M) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST VERSION Compiled Fri 13-Dec-02 17:38 by madison WS-C2955T-12 starting... Base ethernet MAC Address: 00:0b:be:b6:ee:00 Xmodem file system is available. Initializing Flash... flashfs[0]: 19 files, 2 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 7741440 flashfs[0]: Bytes used: 4510720 flashfs[0]: Bytes available: 3230720 flashfs[0]: flashfs fsck took 7 seconds. ...done initializing flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4 *** The system will autoboot in 15 seconds *** Send break character to prevent autobooting. !--- Wait until you see this message before !--- you issue the break sequence. !--- Ctrl+Break is entered using Hyperterm. The system has been interrupted prior to initializing the flash file system to finish loading the operating system software: flash_init load_helper boot switch:
发出 flash_init 命令。
switch: flash_init Initializing Flash... flashfs[0]: 143 files, 4 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 3612672 flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fsck took 86 seconds ....done Initializing Flash. Boot Sector Filesystem (bs:) installed, fsid: 3 Parameter Block Filesystem (pb:) installed, fsid: 4 switch: !--- This output is from a 2900XL switch. Output from !--- other switches will vary slightly.
发出 load_helper 命令。
switch: load_helper switch:
发出 dir flash: 命令。
注意:确保在dir flash后键入冒号“:”。
此时将显示交换机文件系统:
switch: dir flash: Directory of flash:/ 2 -rwx 1803357 <date> c3500xl-c3h2s-mz.120-5.WC7.bin !--- This is the current version of software. 4 -rwx 1131 <date> config.text !--- This is the configuration file. 5 -rwx 109 <date> info 6 -rwx 389 <date> env_vars 7 drwx 640 <date> html 18 -rwx 109 <date> info.ver 403968 bytes available (3208704 bytes used) switch: !--- This output is from a 3500XL switch. Output from !--- other switches will vary slightly.
键入rename flash:config.text flash:config.old以重命名配置文件。
switch: rename flash:config.text flash:config.old switch: !--- The config.text file contains the password !--- definition.
发出 boot 命令引导系统。
switch: boot Loading "flash:c3500xl-c3h2s-mz.120-5.WC7.bin"...############################### ################################################################################ ###################################################################### File "flash:c3500xl-c3h2s-mz.120-5.WC7.bin" uncompressed and installed, entry po int: 0x3000 executing... !--- Output suppressed. !--- This output is from a 3500XL switch. Output from other switches !--- will vary slightly.
在提示符处输入“n”以中止初始配置对话。
--- System Configuration Dialog --- At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'. Continue with configuration dialog? [yes/no]: n !--- Type "n" for no. Press RETURN to get started. !--- Press Return or Enter. Switch> !--- The Switch> prompt is displayed.
在 switch 提示符处,键入 en 以进入启用模式。
Switch>en Switch#
键入rename flash:config.old flash:config.text以重命名配置文件的原始名称。
Switch#rename flash:config.old flash:config.text Destination filename [config.text] !--- Press Return or Enter. Switch#
将配置文件复制到内存中。
Switch#copy flash:config.text system:running-config Destination filename [running-config]? !--- Press Return or Enter. 1131 bytes copied in 0.760 secs Sw1#
此时会重新加载配置文件。
覆盖您不知道的当前口令。选择一个至少具有一个大写字母、一个数字和一个特殊字符的强口令。
注意:覆盖必要的密码。不需要覆盖所有提及的口令。
Sw1# conf t !--- To overwrite existing secret password Sw1(config)#enable secret!--- To overwrite existing enable password Sw1(config)#enable password !--- To overwrite existing vty password Sw1(config)#line vty 0 15 Sw1(config-line)#password Sw1(config-line)#login !--- To overwrite existing console password Sw1(config-line)#line con 0 Sw1(config-line)#password
使用 write memory 命令将运行配置写入配置文件。
Sw1#write memory Building configuration... [OK] Sw1#
版本 | 发布日期 | 备注 |
---|---|---|
1.0 |
04-May-2014 |
初始版本 |