恢复出厂设置需要删除当前交换机的配置文件
执行以下两步操作:
1、删除启动配置
switch# erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue?[confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
2、删除vlan信息
switch# delete flash:vlan.dat
Delete filename [vlan.dat]?
Delete flash:/vlan.dat? [confirm]
switch#reload //重启即可,重启之后恢复默认配置