Cisco Catalyst 3560 Series交换机恢复出厂设置

Cisco Catalyst 3560 Series.webp

恢复出厂教程

使用终端软件进行连接

  1. 电脑COM口,通过console线连接到交换机console口,并打开超级终端调试窗口,我这里使用MobaXterm演示。

  2. 打开MobaXterm,点击Session。

  3. 选择Serial,再选择对应的COM口,波特率选择9600,点击ok。

  4. 刚进入是黑屏的,敲一下Enter键就会出来显示画面。

  5. 交换机接上电,上电过程中,按住交换机正面"MODE"按钮,直到syst灯快速闪烁。

    松开"MODE"按钮(也可以关注终端界面显示字符了就可以松开"mode"按钮),进入到交换机的底层模式switch:

重置为出厂默认设置,而 VLAN 信息除外。

  1. 进入特权模式

    enable

  2. 输入命令进行清除,按Enter键进行确认。

    write erase

  3. 输入重启命令,然后按Enter键/y确认加载。

    reload

  4. 交换机将自动重启,稍等片刻就会重新显示连接画面。

  5. Cisco官方教程(和实际的略有不同)

    重置交换机配置
    要将交换机重置为出厂默认设置,请发出e rase startup-config  或 write erase   命令。此命令不会清除引导变量,例如 config-register 和引导系统设置。
    
    可以使用 boot 命令修改引导系统参数。在运行Cisco IOS软件的Catalyst 4500/4000和6500/6000系列交换机中,您可以将 config-register   命令。
    
    本示例显示如何使用CLI将运行Cisco IOS软件的交换机重置为出厂默认设置 write erase 指令:
    
    Cat2950# write erase
    Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
    Erase of nvram: complete
    Cat2950#
    Cat2950# reload
    
    System configuration has been modified. Save? [yes/no]: n    
    
    !--- Do not save the configuration at this prompt. Otherwise, the switch !--- reloads with the current running configuration and does not reset to default. 
    
    Proceed with reload? [confirm]y                              
    
    2w0d: %SYS-5-RELOAD: Reload requested
    
    C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
    Compiled Mon 22-Jul-02 18:57 by antonino
    WS-C2950G-12-EI starting...
    
    
    !--- Output suppressed. 
    
    
    32K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address: 00:05:DC:C9:79:00
    Motherboard assembly number: 73-5781-08
    Motherboard serial number: FAB0515A069
    Model revision number: 02
    Model number: WS-C2950-24
    System serial number: FAB0517Q00B
    
    --- System Configuration Dialog ---
    
    Would you like to enter the initial configuration dialog? [yes/no]:n 
    00:00:16: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
    00:00:21: %SYS-5-RESTART: System restarted --
    Cisco Internetwork Operating System Software 
    Cisco IOS (tm) C2950 Software(C2950-I6Q4L2-M)Version 12.1(19)EA1, RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2003 by cisco Systems, Inc.
    Compiled Tue 09-Dec-03 00:12 by yenanh
    
    Press RETURN to get started!
    
    00:00:37: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
    00:00:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
    Switch>
    Switch>
    此时交换机配置已重置为出厂默认设置,而 VLAN 信息除外。

清除所有配置

  1. 同样和前面一样使用终端进行连接,并进去特权模式。

    enable

  2. 清除启动配置信息

    erase startup-config

    下面的提示按Enter键进行确认

  3. 删除vlan配置信息

    delete flash:vlan.dat

    下面的两个提示按Enter键进行确认

  4. 输入重启命令

    reload

    提示是否继续重新加载,按Enter键进行确认。

  5. 交换机将自动重启,并自动显示连接画面。

  6. 显示当前配置

    Switch#show running-config
    Building configuration...
    
    Current configuration : 1969 bytes
    !
    version 12.2
    service config
    no service pad
    service timestamps debug uptime
    service timestamps log uptime
    no service password-encryption
    !
    hostname Switch
    !
    !
    no aaa new-model
    system mtu routing 1500
    ip subnet-zero
    !
    !
    !
    !
    no file verify auto
    spanning-tree mode pvst
    spanning-tree extend system-id
    !
    vlan internal allocation policy ascending
    !
    interface FastEthernet0/1
    !
    interface FastEthernet0/2
    !
    interface FastEthernet0/3
    !
    interface FastEthernet0/4
    !
    interface FastEthernet0/5
    !
    interface FastEthernet0/6
    !
    interface FastEthernet0/7
    !
    interface FastEthernet0/8
    !
    interface FastEthernet0/9
    !
    interface FastEthernet0/10
    !
    interface FastEthernet0/11
    !
    interface FastEthernet0/12
    !
    interface FastEthernet0/13
    !
    interface FastEthernet0/14
    !
    interface FastEthernet0/15
    !
    interface FastEthernet0/16
    !
    interface FastEthernet0/17
    !
    interface FastEthernet0/18
    !
    interface FastEthernet0/19
    !
    interface FastEthernet0/20
    !
    interface FastEthernet0/21
    !
    interface FastEthernet0/22
    !
    interface FastEthernet0/23
    !
    interface FastEthernet0/24
    !
    interface FastEthernet0/25
    !
    interface FastEthernet0/26
    !
    interface FastEthernet0/27
    !
    interface FastEthernet0/28
    !
    interface FastEthernet0/29
    !
    interface FastEthernet0/30
    !
    interface FastEthernet0/31
    !
    interface FastEthernet0/32
    !
    interface FastEthernet0/33
    !
    interface FastEthernet0/34
    !
    interface FastEthernet0/35
    !
    interface FastEthernet0/36
    !
    interface FastEthernet0/37
    !
    interface FastEthernet0/38
    !
    interface FastEthernet0/39
    !
    interface FastEthernet0/40
    !
    interface FastEthernet0/41
    !
    interface FastEthernet0/42
    !
    interface FastEthernet0/43
    !
    interface FastEthernet0/44
    !
    interface FastEthernet0/45
    !
    interface FastEthernet0/46
    !
    interface FastEthernet0/47
    !
    interface FastEthernet0/48
    !
    interface GigabitEthernet0/1
    !
    interface GigabitEthernet0/2
    !
    interface GigabitEthernet0/3
    !
    interface GigabitEthernet0/4
    !
    interface Vlan1
     ip address dhcp
    !
    ip classless
    ip http server
    !
    !
    control-plane
    !
    !
    line con 0
    line vty 5 15
    !
    end
    
    Switch#
    

功德+1(狗子).gif

👇👇👇