转:cisco 2950交换机密码恢复

cisco 2950交换机密码恢复
2011-03-01 13:55

  cisco 2950交换机密码恢复 收藏
1) 按下MODE键后给2950加电。
2) 在出现的菜单中选择第一项
system software:
 
    flash_init
    load_helper
    boot
 
switch:flash_init
3) 重命名flash:config.text文件。
switch: ren flash:config.text flash:config.old
switch: dir flash:
Directory of flash:/
 
2    -rwx 2664051   <date>               c2950-i6q4l2-mz.121-11.EA1.bin
3    -rwx 269       <date>               env_vars
4    -rwx 1531      <date>               config.old
6    -rwx 556       <date>               vlan.dat
7    drwx 704       <date>               html
19   -rwx 109       <date>               info
20   -rwx 109       <date>               info.ver
21   -rwx 5         <date>               private-config.text
 
3778560 bytes available (3962880 bytes used)
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)#en secret adm0509
Switch(config)#
10)              重启交换机,密码已被改成adm0509.
Switch#reload
Proceed with reload? [confirm]

posted @ 2011-03-25 23:21  babykick  阅读(442)  评论(0编辑  收藏  举报