This section provides an example for multiple users to perform the same configuration for a service on one router in two-phase validation mode.
As shown inFigure 1, both user A and user B log in to the router. After user A configures a service on the router, user B performs the same configuration for the service on the router.
When the configuration committed by user B is the same as that committed by user A, the system notifies user B that the configuration conflicts with an existing configuration.
The configuration roadmap is as follows:
Simulate a situation in which user A and user B perform the same configuration for a service.
Simulate a situation in which user A commits the configuration.
Simulate a situation in which user B commits the configuration.
Simulate a situation in which user A sets the IP address of GigabitEthernet 0/1/4 to 10.1.1.1 on the router.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/4 [~HUAWEI-GigabitEthernet0/1/4] ip address 10.1.1.1 24
Simulate a situation in which user B sets the IP address of GigabitEthernet 0/1/4 to 10.1.1.1 on the router.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/4 [~HUAWEI-GigabitEthernet0/1/4] ip address 10.1.1.1 24
[*HUAWEI-GigabitEthernet0/1/4] commit
The system notifies user B that the configuration conflicts with an existing configuration.
[*HUAWEI-GigabitEthernet0/1/4] commit ip address 10.1.1.1 24 Error: The address already exists. Commit canceled, the configuration conflicted with other user, you can modify the configuration and commit again.