The vrrp vrid preempt-mode disable command configures the device in a VRRP group in non-preemption mode.
The undo vrrp vrid preempt-mode command restores the default preemption mode.
By default, the device uses the immediate preemption mode.
vrrp vrid virtual-router-id preempt-mode disable
undo vrrp vrid virtual-router-id preempt-mode
Parameter |
Description |
Value |
---|---|---|
vrid virtual-router-id |
Specifies the VRID of a VRRP group. |
The value is an integer that ranges from 1 to 255. |
To enable the device with higher priority in a VRRP group to be the master, set the preemption mode on the device. In non-preemption mode, as long as the master is working properly, the backup with higher priority cannot be the master.
When non-preemption is disabled, the preemption delay is restored to 0 seconds immediately.
The vrrp vrid virtual-ip command has been executed on an interface to create a VRRP group.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] vrrp vrid 1 virtual-ip 10.1.1.2 [HUAWEI-Vlanif100] vrrp vrid 1 preempt-mode disable
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] vrrp vrid 1 virtual-ip 10.1.1.2 [HUAWEI-GigabitEthernet0/0/1] vrrp vrid 1 preempt-mode disable