This section provides an example for multiple users to perform different configurations for a service on one router.
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 a different configuration for the service on the router. For example, user A and user B configure different IP addresses on the same interface.
The configuration committed by user B overwrites that committed by user A.
The configuration roadmap is as follows:
Simulate a situation in which user A and user B perform different configurations 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.2 on the router.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/4 [~HUAWEI-GigabitEthernet0/1/4] ip address 10.1.1.2 24
[*HUAWEI-GigabitEthernet0/1/4] commit
[*HUAWEI-GigabitEthernet0/1/4] commit
The following command output indicates that the configuration committed by user B has overwritten that committed by user A.
[~HUAWEI-GigabitEthernet0/1/4] display this # interface GigabitEthernet0/1/4 undo shutdown ip address 10.1.1.2 255.255.255.0 return