自行恢复:
1. 连接好console线;
2. 重新拔插电源,按住mode键插电源,直至1x口LED灯亮两秒以上方可松开mode键,flash初始化过程中断,系统进入“switch:”提示符状态;
3. 依次执行命令flash_init(回车);load_helper(回车);dir flash:(回车);rename flash:config.text flash:config.old (将startup-config文件改名) (回车);boot (继续引导);
4. 继续启动后系统提示是否进行初始化,选择no;
5. 启动完成后,输入enable进入特权模式(此处无密码),依次执行如下命令:rename flash:config.old flash:config.text (恢复startup-config文件);copy flash:config.text system:running-config (恢复running-config文件);enable secret xxxxxx (重新设置密码);
6. 输入copy running-config startup-config后,重启交换机检查密码恢复是否生效。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rps-Cheers | If it solves your problem, please mark as answer. Thanks !