Enabling VRRP backup preemption

Allowing a backup VRRP device that is acting as the master to be preempted by another backup device with a higher priority value.

Before you begin

A VRRP session must be globally enabled using the protocol vrrp command in global configuration mode.

About this task

Preemption is enabled by default for VRRP, and disabled by default on VRRP-E. Assuming that preemption is disabled in a VRRP session, perform the following steps on a VRRP backup device.

Procedure

  1. From global configuration mode, configure the ethernet interface for the device.
    device(config)# interface ethernet 1/5 
    
  2. Configure the IP address of the interface:
    device(conf-if-eth-1/5)# ip address 192.168.4.3/24
    
    Note

    Note

    This router is a backup router.
  3. Assign the device to VRRP group 1.
    device(conf-if-eth-1/5)# vrrp-group 1
    
  4. Enter the preempt-mode command to configure backup preemption.
    device(conf-vrrp-group-1)# preempt-mode
    
    If a backup device has a higher priority than the current master device, the backup device will assume the role of the VRRP master device after preemption is enabled.

Example

The following example enables preemption on a backup VRRP device.

device(config)# interface ethernet 1/5
device(conf-if-eth-1/5)# ip address 192.168.4.3/24
device(conf-if-eth-1/5)# vrrp-group 1
device(config-vrrp-group-1)# preempt-mode