Cisco 交换机3560密码破解和恢复出厂设置

交换机上电前,按住“mode”按钮,直到sys灯变绿色且快速闪动,或者出现The password-recovery  mochanism  is enabled。提示信息后松开mode按钮,进入到交换机的底层模式

switch:

在出现的菜单中选择第一项 出现三个选项
system software:
flash_init
load_helper
boot

switch:flash_init  //初始化
switch:load_helper  //帮助

switch: dir flash:     //可以看到vlan.dat和config.text文件

Directory of flash:/

    2  -rwx          27   Mar 1 1993 08:36:05 +08:00  private-config.text
    4  -rwx        6264   Mar 4 2022 19:30:55 +08:00  vlan.dat
    5  -rwx        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文件

switch: boot    //重启交换机

重启之后,当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了)
Would you like to enter the initial configuration dialog? [yes/no]:no

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

Switch#ren  flash:config.old  flash:config.text   *恢复刚才重命名的配置文件名
Destination filename [config.text]?  直接回车

Switch#copy flash:config.text  system:running-config   *用老的配置文件替换当前的配置文件
Destination filename [running-config]? 直接回车

Switch#conf t  *进入全局模式

switch(config)#enable password tact *设置密码
switch#wr  *保存配置

或用命令 copy running-config starting-config
OK到这里我们的密码就改好了

switch#reload

@####################################################################

实例:
         --- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: no
Switch>enable

Switch#ren flash:config.old  flash:config.text
% Ambiguous command:  "ren flash:config.old  flash:config.text"
Switch#ren flash:config.old  flash:config.text
% Ambiguous command:  "ren flash:config.old  flash:config.text"
Switch#ren
% Incomplete command.

Switch#ren?
rename  renew  

Switch#rename flash:config.old flash:config.text
Destination filename [config.text]? 
Switch#copy flash:config.text system:run?
system:running-config  

Switch#copy flash:config.text system:ru 
Switch#copy flash:config.text system:running-config
Destination filename [running-config]? 

5398 bytes copied in 0.453 secs (11916 bytes/sec)
wireless-3#
000004: *Mar  1 00:07:20: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:07:20 UTC Mon Mar 1 1993 to 08:07:20 BJ Mon Mar 1 1993, configured from console by console.
wireless-3#

  • 4
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值