如何恢复交换机配置 (交换机恢复出厂设置怎么重新配置)

在工作中,某些设备可能不承载以前的业务,也可能重新利用一些旧设备,这就需要恢复出厂默认设置,涉及的命令主要有两个:reset saved-configuration、reboot。

显示启动文件:当前的配置

<Core>display startup
MainBoard:
Configured startup system software:       NULL
Startup system software:                   NULL
Next startup system software:             NULL
Startup saved-configuration file:         flash:/vrpcfg.zip
Next startup saved-configuration file:     flash:/vrpcfg.zip
Startup paf file:                         NULL
Next startup paf file:                     NULL
Startup license file:                     NULL
Next startup license file:                 NULL
Startup patch package:                     NULL
Next startup patch package:               NULL

重置已保存的配置

<Core>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.

重新启动:第一个保存提示选择N,第二个继续选择Y

<Core>reboot
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the ne
xt startup:, Continue?[Y/N]:n
Info: If want to reboot with saving diagnostic information, input 'N' and then ex
ecute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y

重新启动后的结果:

<Huawei>dis startup
MainBoard:
Configured startup system software:       NULL
Startup system software:                   NULL
Next startup system software:             NULL
Startup saved-configuration file:         NULL
Next startup saved-configuration file:     NULL
Startup paf file:                         NULL
Next startup paf file:                     NULL
Startup license file:                     NULL
Next startup license file:                 NULL
Startup patch package:                     NULL
Next startup patch package:               NULL