使用CE交换机出现误删或配置错误,如何进行快速回退 |
您所在的位置:网站首页 › 高德地图怎么看行政区划分界线 › 使用CE交换机出现误删或配置错误,如何进行快速回退 |
在已经出现配置命令误删或者错误配置时,可以按以下的步骤进行配置的快速回滚: 1. 确认配置命令误删或者错误配置的提交节点的Commit ID: 执行命令:display configuration commit changes < ShenZhen-DC1-Core-CE12816>display configuration commit changes Building configuration Commit changes of commitId 1000000108 # + ospf 100 router-id 1.1.1.1 + area 0.0.0.0 + network 114.172.12.2 0.0.0.0 # Commit changes of commitId 1000000107 # + interface LoopBack0 + ip address 1.1.1.1 255.255.255.255 # Commit changes of commitId 1000000106 //假设从本次commit后的操作都是要恢复的 # - sysname HUAWEI # + sysname ShenZhen-DC1-Core-CE12816 # 2. 执行rollback configuration to commit-id XXX < ShenZhen-DC1-Core-CE12816>rollback configuration to commit-id 1000000106 Warning: This operation will revert configuration changes to the previous status . Continue? [Y/N]:y Loading rollback changes Committing Check rollback result Configuration rollback succeeded. Please use 'display configuration commit changes last 1' to view the changes. 3.使用display configuration commit changes last 1,检查是否回滚到操作前的配置状态: < ShenZhen-DC1-Core-CE12816>display configuration commit changes last 1 Building configuration # - interface LoopBack0 //“-”表示在本次恢复过程中删除的命令 - ip address 1.1.1.1 255.255.255.255 # - ospf 100 router-id 1.1.1.1 - area 0.0.0.0 - network 114.172.12.2 0.0.0.0 # 如果误操作是通过最近1次commit命令提交生效的,也可以通过以下命令进行快速回退,以节省时间: 1. 执行rollback configuration last 1: < ShenZhen-DC1-Core-CE12816>rollback configuration last 1 Warning: This operation will revert configuration changes to the previous status . Continue? [Y/N]:y Loading rollback changes Committing Check rollback result Configuration rollback succeeded. Please use 'display configuration commit changes last 1' to view the changes. 2.执行display configuration commit changes last 1检查恢复后的配置 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |