Enabling VRRP backup preemption

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

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.
  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