有時交換機要變更使用場景或重新配置,需要恢復出廠設定,當可以透過console登入進入交換機後,可透過如下兩個辦法來恢復出廠設定。
配置步驟:
方法一:
1、使用reset save命令清空配置。
2、重啟交換機。
方法二:
刪掉交換機的startup.cfg這個檔案。
配置關鍵點:
<H3C>reset saved-configuration //清空交換機配置
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 //裝置提示會在重啟後丟失當前配置,是否儲存當前配置,選擇n
This command will reboot the device. Continue? [Y/N]:y //裝置提示裝置將會重啟,是否繼續,選擇Y
Now rebooting, please wait...
%Dec 14 20:48:39:352 2019 SW1 DEV/5/SYSTEM_REBOOT: System is rebooting now.
<H3C>dir //透過dir命令檢視交換機的檔案
Directory of flash:
0 drw- - Dec 14 2019 20:37:24 diagfile
1 -rw- 1554 Dec 14 2019 20:50:06 ifindex.dat
2 -rw- 21632 Dec 14 2019 20:37:24 licbackup
3 drw- - Dec 14 2019 20:37:24 license
4 -rw- 21632 Dec 14 2019 20:37:24 licnormal
5 drw- - Dec 14 2019 20:48:38 logfile
6 -rw- 0 Dec 14 2019 20:37:24 s5820v2_5830v2-cmw710-boot-a7514.bin
7 -rw- 0 Dec 14 2019 20:37:24 s5820v2_5830v2-cmw710-system-a7514.bin
8 drw- - Dec 14 2019 20:37:24 seclog
10 -rw- 110464 Dec 14 2019 20:50:06 startup.mdb
1046512 KB total (1046300 KB free)
<H3C>eboot //重啟交換機
有時交換機要變更使用場景或重新配置,需要恢復出廠設定,當可以透過console登入進入交換機後,可透過如下兩個辦法來恢復出廠設定。
配置步驟:
方法一:
1、使用reset save命令清空配置。
2、重啟交換機。
方法二:
刪掉交換機的startup.cfg這個檔案。
配置關鍵點:
方法一:
<H3C>reset saved-configuration //清空交換機配置
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 //裝置提示會在重啟後丟失當前配置,是否儲存當前配置,選擇n
This command will reboot the device. Continue? [Y/N]:y //裝置提示裝置將會重啟,是否繼續,選擇Y
Now rebooting, please wait...
%Dec 14 20:48:39:352 2019 SW1 DEV/5/SYSTEM_REBOOT: System is rebooting now.
方法二:
<H3C>dir //透過dir命令檢視交換機的檔案
Directory of flash:
0 drw- - Dec 14 2019 20:37:24 diagfile
1 -rw- 1554 Dec 14 2019 20:50:06 ifindex.dat
2 -rw- 21632 Dec 14 2019 20:37:24 licbackup
3 drw- - Dec 14 2019 20:37:24 license
4 -rw- 21632 Dec 14 2019 20:37:24 licnormal
5 drw- - Dec 14 2019 20:48:38 logfile
6 -rw- 0 Dec 14 2019 20:37:24 s5820v2_5830v2-cmw710-boot-a7514.bin
7 -rw- 0 Dec 14 2019 20:37:24 s5820v2_5830v2-cmw710-system-a7514.bin
8 drw- - Dec 14 2019 20:37:24 seclog
10 -rw- 110464 Dec 14 2019 20:50:06 startup.mdb
1046512 KB total (1046300 KB free)
<H3C>eboot //重啟交換機
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 //裝置提示會在重啟後丟失當前配置,是否儲存當前配置,選擇n
This command will reboot the device. Continue? [Y/N]:y //裝置提示裝置將會重啟,是否繼續,選擇Y
Now rebooting, please wait...