Password Recovery for Catalyst Switches

通过终端或带有仿真终端程序(比如 Hyper Terminal)的 PC,连接到交换机的 console 口.

Password Recovery for Catalyst 2900/3500XL 拔下交换机的电源线,然后按住交换机的  Mode 按钮,再重新插上交换机的电源线.直到端口 Port 1x 的 LED 熄灭之后释放 Mode 按钮.

Password Recovery for Catalyst 2940/2950L 拔下交换机的电源线,然后按住交换机的  Mode  按钮,再重新插上交换机的电源线.直到 STAT 的 LED 熄灭之后释放 Mode 按钮.

Password Recovery for Catalyst 2955 对于 2955 交换机,它没有外部的 Mode 按钮,因此就不能使用之前的那种方法来进行密码恢 复.在交换机启动时,对于 Windows 系列的 PC,按下 Ctrl+Break 键;对于 UNIX 系列的工 作站,按下 Ctrl+C.如下:

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

/---接下来交换机会在 15 秒内自动启动,等出现该信息之后,按下 Ctrl+Break 键或 Ctrl+C

键----/

The system has been interrupted prior to initializing the flash file system to finish

loading the operating system software:

flash_init load_helper bootswitch:

接下来输入 flash_init 命令: switch: flash_init Initializing Flash...

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:


接着输入 load_helper 命令: switch: load_helper switch:


再输入 dir flash:命令显示交换机的文件系统:
switch: dir flash: Directory of flash:/
2 −rwx  1803357   <date> c3500xl−c3h2s−mz.120−5.WC7.bin
4 −rwx  1131   <date> config.text
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:


把配置文件重命名:
switch: rename flash:config.text flash:config.old switch:


输入 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...
(略)


不进入 setup 模式:

−−− 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


进入特权模式,恢复原始的配置文件:

Switch#rename flash:config.old flash:config.text
Destination filename [config.text] Switch#


把配置文件保存在内存里:

Switch#copy flash:config.text system:running−config
Destination filename [running−config]?

1131 bytes copied in 0.760 secs
Switch# 进入全局配置模式,取消密码设置: Switch(config)#no enable secret 保存配置:

Switch#write memory

Building configuration...
[OK] Switch#

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值