思科C3750密码丢失重置恢复方法

c3750密码恢复步骤

1、用SecureCRT 或Xshell登陆交换机:9600-8-n-1 

2、按住交换机前面板的“mode”按钮,然后给设备供电,当灯不闪后后,松掉“mode”按钮

4、显示:

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:

* 1 52 WS-C3750G-48TS 12.2(35)SE2 C3750-ADVIPSERVICESK

Failed to generate persistent self-signed certificate.

Secure server will use

Base ethernet MAC Address: 00:1e:49:90:79:00

Xmodem file system is available.

The password-recovery mechanism is enabled.

The system has been interrupted prior to initializing the

flash filesystem. The following commands will initialize

the flash filesystem, and finish loading the operating

system software:

flash_init

load_helper

boot

switch: flash_init

Initializing Flash...

flashfs[0]: 6 files, 3 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 32514048

flashfs[0]: Bytes used: 9021952

flashfs[0]: Bytes available: 23492096

flashfs[0]: flashfs fsck took 8 seconds.

...done Initializing Flash.

Boot Sector Filesystem (bs) installed, fsid: 3

Setting console baud rate to 9600...

5、输入以下命令可以查看帮助

switch: load_helper

switch: help

6、输入dir flash获得flash内的文件信息:

switch: dir flash

Directory of flash:

2 -rwx 8756889 <date> c3750-advipservicesk9-mz.122-35.SE2.bin

3 -rwx 1036 <date> vlan.dat

4 -rwx 2999 <date> private-config.text

6 drwx 64 <date> crashinfo_ext

8 drwx 64 <date> crashinfo

10 -rwx 12314 <date> config.text

23492096 bytes available (9021952 bytes used)

7、输入rename flash:config.text flash:config.old 重命名原来的配置文件

8、敲入boot,重启动交换机

9、交换机启动完后显示:Continue with the configuration dialog? [yes ] :  输入N

10、Switch>en

Switch#

11、进入enable模式后,输入rename flash:config.old flash:config.text 恢复原来的配置文件

12、接着按以下步骤操作:将配置文件复制到当前运行的配置文件中

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

Source filename [config.text]? (回车)

Destination filename [running-config]? (回车)

13 、接着按以下步骤操作:

switch#configure t

switch(config)#no ena secret (去掉超级管理密码)

switch(config)#ena secret XXX (重设置密码为XXX)

switch(config)#ena password  XXX

switch(config)#wr 保存

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值