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.
-
From global configuration mode, configure the ethernet interface for the device.
device(config)# interface ethernet 1/5
-
Configure the IP address of the interface:
device(conf-if-eth-1/5)# ip address 192.168.4.3/24
Note
This router is a backup router.
-
Assign the device to VRRP group 1.
device(conf-if-eth-1/5)# vrrp-group 1
-
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.
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