关于交换机清空配置,闲来没事儿自己在总结一下。
Switch#erase startup-config
清除VLAN配置
Switch#delete vlan.dat
这是基本命令,下边是在交换机中显示的信息。
------------------------------------
SW-1#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
SW-1#
*Mar 1 01:34:46.041: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
SW-1#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
SW-1#
SW-1#
SW-1#
SW-1#sh vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/21
Fa0/23, Fa0/24, Fa0/25, Fa0/26
Fa0/27, Fa0/28, Fa0/29, Fa0/30
Fa0/31, Fa0/32, Fa0/33, Fa0/34
Fa0/35, Fa0/36, Fa0/37, Fa0/38
Fa0/39, Fa0/40, Fa0/41, Fa0/42
Fa0/43, Fa0/44, Fa0/45, Fa0/46
Fa0/47, Fa0/48, Gi0/1, Gi0/2
2 VLAN0002 active
3 VLAN0003 active
4 VLAN0004 active
5 VLAN0005 active
10 VLAN0010 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#reload
Proceed with reload? [confirm]
*Mar 1 01:35:20.174: %SYS-5-RELOAD: Reload requested by console. Reload reason: Reload command
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 00:22:0c:6a:fa:00
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 528 files, 19 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 25319424
flashfs[0]: Bytes available: 7194624
flashfs[0]: flashfs fsck took 23 seconds.
...done Initializing Flash.
done.
Loading "flash:/c2960-lanbasek9-mz.122-55.SE4.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@