成都欣依網絡科技有限公司
2021-12-02 17:40

交換機恢複出(chū)廠設置的(de)方法

分享到(dào):
        有時(shí)交換機要(yào / yāo)變更使用場景或重新配置,需要(yào / yāo)恢複出(chū)廠設置,當可以(yǐ)通過console登錄進入交換機後,可通過如下兩個(gè)辦法來(lái)恢複出(chū)廠設置。

        方法一(yī / yì /yí):

        1、使用reset save命令清空配置。

        2、重啓交換機。

        方法二:

        删掉交換機的(de)startup.cfg這(zhè)個(gè)文件。
        
        配置關鍵點

        方法一(yī / yì /yí):

        <H3C>reset saved-configuration   //清空交換機配置

        The saved configuration file will be erased. Are you sure? [Y/N]:y   //設備提示保存的(de)配置将會被删除,是(shì)否繼續。

        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   //設備提示會在(zài)重啓後丢失當前配置,是(shì)否保存當前配置,選擇n

        This command will reboot the device. Continue? [Y/N]:y   //設備提示設備将會重啓,是(shì)否繼續,選擇Y

        Now rebooting, please wait... 

        %Dec 14 20:48:39:352 2019 SW1 DEV/5/SYSTEM_REBOOT: System is rebooting now. 

 

        方法二:

        <H3C>dir  //通過dir命令查看交換機的(de)文件

        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

           9 -rw-        6118 Dec 14 2019 20:50:06   startup.cfg  //這(zhè)個(gè)是(shì)啓動的(de)交換機配置,我們要(yào / yāo)删除此文件

          10 -rw-      110464 Dec 14 2019 20:50:06   startup.mdb

 

        1046512 KB total (1046300 KB free)

 

 

        <H3C>delete startup.cfg   //使用删除命令删除startup.cfg這(zhè)個(gè)啓動運行的(de)配置文件

        Delete flash:/startup.cfg? [Y/N]:y   //設備提示是(shì)否要(yào / yāo)删除,選擇Y

        Deleting file flash:/startup.cfg... Done.   //設備提示startup.cfg這(zhè)個(gè)文件已删除完成

 

        <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   //設備提示會在(zài)重啓後丢失當前配置,是(shì)否保存當前配置,選擇n

        This command will reboot the device. Continue? [Y/N]:y   //設備提示設備将會重啓,是(shì)否繼續,選擇Y

        Now rebooting, please wait... 

上(shàng)一(yī / yì /yí)篇:交換機的(de)POE功能如何開啓?
下一(yī / yì /yí)篇:交換機開啓Combo光口或者電口方法