Disabling VRRP backup preemption

VRRP backup preemption can be disabled to avoid route flapping when a backup VRRP device that is acting as the master device could be preempted by another backup device with a higher priority value.

A VRRP or VRRP-E session must be globally enabled using the router vrrp or router vrrp-extended command in global configuration mode.

Preemption is enabled by default for VRRP and VRRP-E, but if several devices come back online with higher priorities than the original backup device, route flapping can occur as these devices preempt each other. The following steps can be used when you want to avoid a backup device acting as the master from being preempted by another backup device with a higher priority value.
  1. Enter interface configuration mode.
    device(config)# interface ethernet 1/1/5
  2. Enter the IP address for the interface to be used for the virtual router ID (VRID).
    device(config-if-e1000-1/1/5)# ip address 10.53.5.3/24
  3. Enter the following command to enter the appropriate VRRP VRID mode.
    device(config-if-e1000-1/1/5)# ip vrrp vrid 1
  4. Enter the non-preempt-mode command to disable backup preemption.
    device(config-if-e1000-1/1/5-vrid-1)# non-preempt-mode
    
    Even if a backup device has a higher priority than the current backup acting as a master device, the backup device will not assume the role of the VRRP master device.

The following example disables preemption on a backup VRRP device.

device(config)# router vrrp
device(config)# interface ethernet 1/1/5
device(config-if-e1000-1/1/5)# ip address 10.53.5.3/24
device(config-if-e1000-1/1/5)# ip vrrp vrid 1
device(config-if-e1000-1/1/5-vrid-1)# non-preempt-mode