配置备份要覆盖运行配置、启动配置和必要的附加文件(证书、密钥、license 不一定是配置)。备份应带设备名、时间、版本和校验值,存放在受限的版本库或加密存储中,并设置保留周期。只保存不演练等于没有备份;定期在实验设备上做恢复演练,验证恢复步骤、耗时和依赖。
恢复配置可能覆盖管理地址、AAA、ACL 和路由,导致设备失联;必须先确认 Console 或带外通道可用,并在实验设备验证。变更前做快照,远程操作可配合 reload in(Cisco)或 commit confirmed(Junos);回滚是加载上一个已验证版本并复核接口和业务。
Cisco IOS/IOS-XE
show running-config
copy running-config scp://<user>@192.0.2.50/configs/edge-20261201.cfg
archive
path flash:archive
maximum 10
time-period 1440
show archive
show archive config differences nvram:startup-config system:running-config
configure replace flash:archive/edge-1.cfg force
Huawei VRP
display current-configuration
save
tftp 192.0.2.50 put vrpcfg.zip edge-20261201.zip
display startup
Juniper Junos
# 操作模式:导出当前配置
show configuration | display set
# 配置模式:备份候选配置并对比历史
show | display set
save /var/tmp/edge-20261201.conf
show | compare rollback 1
rollback 1
commit
H3C Comware 用 display current-configuration、save force 和 TFTP/FTP 导出;锐捷 RGOS 用 show running-config 和 copy running-config startup-config。传输方式、归档命令和恢复流程以设备版本为准。
合上页面,先回答,再展开对照。
小程序版
微信扫码,随时查命令