将pc和设备相连,打开tftp服务器软件。
导出配置文件
<Huawei>tftp 192.168.0.100 put vrpcfg.zip //将文件vrpcfg.zip导出到192.168.0.100主机
导入配置文件
<Huawei>tftp 192.168.0.100 get vrpcfg.zip //将192.168.0.100的vrpcfg.zip文件导入到交换机
导入文件时,如果设备中有同名文件,系统会提示请删除文件。
使用delete “文件名”先删除文件,再执行导入命令。
<Huawei>delete vrpcfg.zip
Delete flash:/vrpcfg.zip? (y/n)[n]:y
Info: Deleting file flash:/vrpcfg.zip...succeed.
<HUAWEI> startup saved-configuration vrpcfg.zip
<HUAWEI> display startup
MainBoard:
Configured startup system software: cfcard:/device_software.cc
Startup system software: cfcard:/device_software.cc
Next startup system software: cfcard:/device_software.cc
Startup saved-configuration file: cfcard:/vrpcfg.zip //设备当前的配置文件名。
Next startup saved-configuration file: cfcard:/vrpcfg.zip //下次启动的配置文件名。
Startup paf file: default
Next startup paf file: default
Startup license file: default
Next startup license file: default
Startup patch package: NULL
Next startup patch package: NULL
<HUAWEI> reboot //重启设备。
Info: The system is now comparing the configuration, please wait.
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file cfcard:/config.cfg. Continue? [Y/N]:N //输入N防止设备当前的配置保存到备份的配置文件中。
Now saving the current configuration to the slot 13.
Save the configuration successfully.
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:Y //输入Y重启设备。