恢复出厂设置

方式一

# 清空交换机配置
reset saved-configuration main
# 重启
reboot
<H3C>reset saved-configuration main    //清空交换机配置
The saved configuration file will be erased. Are you sure? [Y/N]:y    //配置将会被删除,是否继续
Configuration file in flash: is being cleared.  
Please wait ...
MainBoard:
Configuration file is cleared.    //配置已被清空
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:n    //重启后会丢失当前配置,是否保存当前配置
This command will reboot the device. Continue? [Y/N]:y    //设备将会重启,是否继续

恢复出厂设置

方式二

# 删除启动文件
delete startup.cfg
# 重启
reboot
<H3C>delete startup.cfg    //删除启动运行的配置文件
Delete flash:/startup.cfg? [Y/N]:y
Deleting file flash:/startup.cfg... Done.    //提示启动文件已删除
<H3C>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:n    //重启后会丢失当前配置,是否保存当前配置
This command will reboot the device. Continue? [Y/N]:y    //设备将会重启,是否继续

恢复出厂设置