The vrrp vrid preempt-mode timer delay command sets a preemption delay for a device in a VRRP group.
The undo vrrp vrid preempt-mode timer delay command restores the default preemption delay.
The default preemption delay is 5 seconds for a preemption caused by an interface Up event or 0 seconds (indicating immediate preemption) for a preemption caused by other reasons.
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
Set the preemption delay to 0 on the backup device to allow it to become a master device immediately after its priority changes; set the preemption delay to a non-0 value on the master device so that it can preempt the Master state after a specified delay if a master/backup VRRP switchover is performed. After the faulty master device in the VRRP group recovers, receives protocol packets, and has a lot of service configurations, the master device slowly delivers the VRRP forwarding table. An immediate traffic switchback leads to packet loss on the master device. To prevent packet loss, properly set a delay time in this situation.
In DHCP server dual-device hot backup scenarios, to ensure that the master device can completely back up user session information to the backup device, set a preemption delay to over 600s for the master device. Configure the preemption delay to an even larger value when the address pool contains a large number of IP addresses.Prerequisites
A VRRP group has been configured using the vrrp vrid virtual-ip command.
Configuration Impact
After the vrrp vrid preempt-mode timer delay command is run, the device in the specified VRRP group on a specified interface preempts the master device after the preemption delay expires.
Precautions
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] ip address 10.1.1.1 24 [*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.1.1.111 [*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 preempt-mode timer delay 5