某年某月某日因为某个原因,忘记了cisco catalyst的2950交换机的加密使能密码,经上网搜索及亲自实验,解决方法如下:
   1.按下MODE键(长按)后给2950加电,然后点击虚拟终端的确定按钮。
   2.进入switch模式,switch:,输入flash_init命令
   3.重命名flash:config.text文件
     rename flash:config.text flash:config.old
   4.进行查看 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)
    5.重启交换机 switch:boot
    6.当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了)
Would you like to enter the initial configuration dialog? [yes/no]:no
    7.从用户模式登录特权模式,无需密码。
Switch>en
Switch#
    8.恢复刚才重命令的配置文件名.
Switch#rename flash:config.old flash:config.text
Destination filename [config.text]?直接回车
    9.修改使用密码,然后保存配置。
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#enable secret cisco
Switch#write
   10.重启交换机,密码已被改成cisco.
Switch#reload
Proceed with reload? [confirm]