赛迪网 > IT技术 网络管理 > 交换技术
  IT资讯搜索
 
IT产品搜索
[程序开发][网管世界][网络安全][数据库技术]
[操作系统][嘉宾聊天·在线访谈][活动集锦]
[精彩专题][Symantec专区][订阅IT技术周刊]
[开发论坛][网管论坛][安全论坛][数据库论坛]
[操作系统论坛][Sybase专区][IBM dW技术专区]
[病毒求助][病毒与漏洞播报][文档·源码下载]

应用:Cisco Catalyst交换机密码恢复方法

发布时间:2007.08.23 04:54     来源:赛迪网-技术社区    作者:beatule

1。拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到端口Port 1x的LED熄灭之后释放Mode按钮.

2。对于Catalyst 2940/2950L系列来说:

拔下交换机的电源线,然后按住交换机的Mode按钮,再重新插上交换机的电源线.直到STAT的LED熄灭之后释放Mode按钮.

3。对于Catalyst 2955系列来说:

Catalyst 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...

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 c3500xl−c3h2s−mz.120−5.WC7.bin

4 −rwx 1131 config.text

5 −rwx 109 info

6 −rwx 389 env_vars

7 drwx 640 html

18 −rwx 109 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#

    

4。对于Catalyst 3550/3750系列来说:

1.通过带有支持Xmodem协议的超级终端程序的PC连接到交换机的console口,把波特率设置为9600.

2.拔掉交换机的电源.

3.按下交换机上的Mode按钮,与此同时,重新插上交换机的电源线.当交换机端口1X上的LED熄灭后可以松开Mode按钮1到2秒.之后将显示一些指示信息:

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

switch#

4.初始化flash文件系统:

switch#flash_init

5.加载帮助文件:

switch#load_helper

6.显示闪存里的内容:

switch#dir flash:

7.重命名配置文件:

switch#rename flash:config.text flash:config.text.old

8.启动系统,并且如果提示进入setup模式,输入N:

switch#boot

Continue with the configuration dialog? [yes/no]: N

9.进入特权模式,把配置文件名恢复为原始文件名:

Switch#rename flash:config.text.old flash:config.text

10.把配置文件写进内存:

Switch#copy flash:config.text system:running-config

Source filename [config.text]?

Destination filename [running-config]?

11.进入全局配置模式更改密码:

Switch(config)#enable secret {password}

12.退出,并保存到startup-config文件里:

Switch(config)#copy running-config startup-config

(责任编辑:高爽)


[ 发表评论 ] 字体[  ] [ 打印 ] [ 进入博客 ] [ 进入论坛 ]  [ 推荐给朋友 ]
  相关文章
· 交换技术应用实例 交换机配置图文说明 (08-21) · 交换技术之边缘交换机智能与性能 (08-12)
· 软交换10大功能 (08-12) · 交换机交换技术3种方式 (08-12)
· 交换机技术 边缘交换机智能与性能兼顾 (08-12) · 交换技术基础 软交换十大功能介绍说明 (08-02)
· 交换技术基础知识 交换机交换的三种方式 (08-01) · 交换技术 从二层到七层交换技术的介绍 (07-31)
· 交换技术说明 交换机基本命令集合解释 (07-31) · 反向访问列表在交换技术中的应用方式 (07-27)
  客户需求反馈表
* 姓  名:
更多资料  了解方案  认识厂商
* 单位名称:
* 联系电话:
* 电子邮件:
  赛迪推荐  
  手机·资费 ·新品·导购·评测·手机资费·宽带
手机搜索  诺基亚 N73 MOTO Z6
  IT产品 ·笔记本·台式机·服务器·打印·投影
IT产品搜索 
  IT技术 ·开发·网管·安全·数据库·操作系统
  信息化 ·热点·专题·访谈·周刊·方案案例
[政务][电信][金融][农业][制造业][中小企业]
[CIO][ERP][协同][IT管理][中间件][电子商务]
[政策][地方][专家][评估][辞典][博客][社区]
· 专题:一路畅通构想曲——让出行不再遭遇堵车
· CIO工作亲历:企业ERP选型不能忽视"选人关"
· 综述:信息化建设给中国监狱带来的各种变化
· 金融业风险管理和法规遵从有五点需考虑的因素
· 保险业CIO关注:该如何建立统一高效的CRM体系
· 调查显示:多数CIO对IT规划仍存在困惑和误解
  博客·论坛 ·曾剑秋·项立刚·Java学习·网管