跳转至

Catalyst3560重置密码或清除配置

思科3560重置密码或者删除配置

思科3560重置密码或者删除配置

交换机Q上电前,

按住"mode"按钮,

直到sys灯变绿色且快速闪动,

或者出现The password-recovery mochanism is enabled。

提示信息后松开mode按钮,进入到交换机的底层模式switch:

 c++
switch:
switch:flash_init                 //初始化配置
switch: dir flash:                    //可以看到vlan.dat和config.text文件
Directory of flash:/

  2 -rwx     27     MarQ 1 1993 08:36:05 +08:00     private-config.text
  4 -rwX     6264     Mar 4 2022 19:30:55 +08:00    vlan.dat
  5 -mwX     5279     Mar 1 1993 08:36:05 +08:00    config.text
  6 drwx     192     Mar 1 1993 08:08:55 +08:00     c3560-ipbase-mz.122-25.SEE2

32514048 bytes total (24348160 bytes free)
switch: rename flash:config.text flash:config.old                    //如果需要恢复配置,重命名flash:config.text文件,如果不需要恢复配置,直接delete flash:config.text
switch: boot                    //重启交换机
重启之后,当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了)
Would you like to enter the initial configuration dialog? [yes/nol:no

Switch> enable     *从用户模式登陆特权模式,就无需密码了Switch#

Switch#ren flash:config.old flash:config.text                          *恢复刚才重命名的配置文件名
Destination filename [config.text]?                    直接回车
Switch#conft            *进入全局模式
Switch(config)#enable password CHANGE_ME_TO_A_UNIQUE_PASSWORD            *设置密码
switch#wr         *保存配置