華爲:
1、另存一份當前的配置文件,到flash的根目錄下,命名爲:vrpcfgbackup.zip :
<HUAWEI> copy flash:/vrpcfg.zip flash:/vrpcfgbackup.zip
2、配置設備下次啓動時加載的配置文件:
<HUAWEI> startup saved-configuration flash:/vrpcfgbackup.zip
3、重啓設備
<HUAWEI> reboot
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:n //重啓之前不要保存配置
4、查看當前設備下次啓動文件的配置情況:
<HUAWEI> display startup
5、查看flash下的已存在的文件:
<HUAWEI> dir
6、刪除文件:
<HUAWEI> delete flash:/vrpcfgbackup.zip
思科:
1、把當前運行的配置複製一份到flash下,命名爲:configbackup.text
switch# copy running-config flash:configbackup.text
2、複製configbackup.text文件到startup-config,設備下次啓動會讀取startup-config裏的配置:
switch# copy flash:configbackup.text startup-config
3、重啓
switch# reload
switch# more flash:configbackup.txt //查看文件內容