华为:
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 //查看文件内容