FAQ-如何在命令行模式下恢复出厂默认配置

发布时间:  2015-02-12 浏览次数:  339 下载次数:  0
问题描述
如何在命令行模式下恢复出厂默认配置?
解决方案
如果需要恢复出厂配置,请按照下面命令行操作。

<Quidway> reset saved-configuration  //清除当前配置
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y
Warning: Now clearing the configuration in the device.
Info: Succeeded in clearing the configuration in the device.
<Quidway> reboot                    //重启设备
Info: The system is now comparing the configuration, please wait.
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file . Continue? [Y/N]:N     //选择N,不保存配置
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y            //提示是否重启,选择Y重启

整机重启后,配置就可以恢复到出厂默认配置了,可以按照新的业务配置设备。

说明:
       清空重启后,再配置交换机,或者新开局第一次配置交换机,在保存配置时,一定要根据回显提示,输入两次Y,才能保存成功。回显如下:
      <Quidway> save
      The current configuration will be written to the device.
      Are you sure to continue?[Y/N]y
      Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
      flash:/vrpcfg.zip exists, overwrite?[Y/N]:y 
      Now saving the current configuration to the slot 0.
      Save the configuration successfully.

END