Commit and Rollback Configuration on Huawei Routers

Here are the steps on committing/saving and rollback configuration on Huawei Routers

system-view
commit

or

system-view
commit label <String 1-256>

Example:
Change1: Change description on Ether-Trunk88
Change2: Enable ipv6

<Huawei>system-view
[~Huawei]interface Eth-Trunk88
[*Huawei-Eth-Trunk88]description Connection to Router1
[*Huawei-Eth-Trunk88]commit label Eth88Desc description Eth88IntDesc
Committing…..done.
[~Huawei-Eth-Trunk88]ipv6 enable
[~Huawei-Eth-Trunk88]commit label Eth88v6Enable

Verification:

display configuration commit list
display configuration commit list verbose

Example:

[~Huawei-Eth-Trunk88]display configuration commit list
——————————————————————————–
No. CommitId Label User TimeStamp
——————————————————————————–
1 1000000044 Eth88v6Enable admin 2023-07-06 22:34:42
2 1000000043 Eth88Desc admin 2023-07-06 22:34:26

Rollback:

rollback configuration last <commit ID>
rollback configuration to label <commit label>
rollback configuration to commit-id <commitID>
rollback configuration to file <filename>

where:
last Rollback to the configuration before the recent configuration commits
to Rollback to the configuration after the specified commit label

Example:
Rollback to the Change2 only (Enable IPv6)

<Huawei>rollback configuration to label Eth88v6Enable
Warning: This operation will revert configuration changes to the previous status. During the rollback configuration process, some configurations involving differences may be temporarily invalid. Continue? [Y/N]:y
Info: There is no configuration difference between the specified checkpoint and the recent checkpoint.
<Huawei>

Note: This will generate a message like this since there’s no configuration after the last commit

<Huawei>rollback configuration to label Eth88Desc
Warning: This operation will revert configuration changes to the previous status. During the rollback configuration process, some configurations involving differences may be temporarily invalid. 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.

Verification:

display configuration commit changes last <Commit ID>

<Huawei>display configuration commit changes last 1
Building configuration
#
interface Eth-Trunk88
– ipv6 enable
#

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *