1. 删除交换机配置



Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue?
[confirm]
[OK]
Erase of nvram: complete






2. 删除交换机的 VLAN 信息
通过show flash 命令可以看到vlan.dat文件,然后删除该文件,reload交换机


Switch#show flash:


Directory of flash:/
1  -rw-     4414921            c2960-lanbase-mz.122-25.FX.bin
2  -rw-         616            vlan.dat
64016384 bytes total (59600847 bytes free)


Switch#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm]


Switch#reload