一.      实验目的
恢复交换机的密码

二.      实验要求
重新设置交换机的ENABLE密码
不丢失交换机原有的配置

三.      实验步骤简述
1.      断电重启交换机后按住Mode,然后松开,出现提示符后输入
2.      Flash_init
3.      Dir flash:
4.      Rename
5.      Boot
6.      N(不进入SETUP配置模式)
7.      Rename
8.      Conf t
9.      Enable password
10.      保存

四.      具体命令
  copy running-config startup-config               保存交换机原有的配置
reload                             重启
重启时按交换机上的mode按扭
flash_init
dir flash:                             务必记得flash后有个冒号
rename flash:config.text flash:config.old           改名,若直接删除config.text会丢失原有的配置
boot                               重启
Continue with configuration dialog? [yes/no]:n         不进行初始配置
en
rename flash:config.old flash:config.text           再改回原来的名字
Destination filename [running-config]? running-config
conf t
enable password cisco                     重设密码
copy running-config startup-config               保存