cisco 2900xl, 3500xl, 2950, 3550密码恢复

Cisco 2950交换机密码恢复


1) 按下MODE键后给2950加电。

2) 在出现的菜单中选择第一项

system software:


     flash_init

     load_helper

     boot


switch:flash_init

switch:load_helper

        switch:dir flash:           可以看到flash中有config.text文件

3) 重命名flash:config.text文件。

switch: ren flash:config.text flash:config.old




4) 重启交换机

switch: boot

5) 当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了)

Would you like to enter the initial configuration dialog? [yes/no]:no

6) 从用户模式登录特权模式,无需密码。

Switch>en

Switch#

7) 恢复刚才重命令的配置文件名.

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

Destination filename [config.text]?直接回车

8) 用老的配置文件替换当前的配置文件。

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

Destination filename [running-config]?直接回车

% Login disabled on line 1, until 'password' is set

% Login disabled on line 2, until 'password' is set

% Login disabled on line 3, until 'password' is set

% Login disabled on line 4, until 'password' is set

% Login disabled on line 5, until 'password' is set

% Login disabled on line 6, until 'password' is set

% Login disabled on line 7, until 'password' is set

% Login disabled on line 8, until 'password' is set

% Login disabled on line 9, until 'password' is set

% Login disabled on line 10, until 'password' is set

% Login disabled on line 11, until 'password' is set

% Login disabled on line 12, until 'password' is set

% Login disabled on line 13, until 'password' is set

% Login disabled on line 14, until 'password' is set

% Login disabled on line 15, until 'password' is set

% Login disabled on line 16, until 'password' is set

1531 bytes copied in 2.364 secs (765 bytes/sec)

9) 修改使用密码。

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#no en secret

Switch(config)#en secret cisco

Switch(config)#

10)               重启交换机,密码已被改成cisco.

Switch#reload

Proceed with reload? [confirm]


你可能感兴趣的:(Flash,System,配置文件,software,initial)