Configuring VRRP port tracking

Configuring port tracking on an exit path interface and setting a priority on a VRRP device enables VRRP to monitor the interface. If the interface goes down, the device priority is lowered and another backup device with a higher priority assumes the role of master.

About this task

In the following task steps, interface ethernet 2/4 on Router 1 (shown in the diagram below) is configured to be tracked, and if the interface fails, the VRRP priority of Router 1 is lowered by a value of 20. Router 1 is the master VRRP device for group 1 and a lower priority triggers a backup device with a higher priority, Router 2, to become the new master for Group 1. Perform this task on the device on which the tracked interface exists.

Click to expand in new window
Multigroup VRRP routing topology

Procedure

  1. Enable VRRP globally.
    device(config)# protocol vrrp
  2. Enter interface configuration mode and run the following command:
    device(config)# interface ve 10
  3. Run the following command to enter group configuration mode.
    device(config-if-Ve-10)# vrrp-group 1
  4. Enter the track command to set the track port and priority:
    device(config-vrrp-group-1)# track ethernet 2/4 priority 20

Example

The following example shows how to configure an Ethernet interface on Router 2 to be tracked, and if the interface fails, the VRRP priority of Router 2 is lowered by a value of 40. Router 2 is the master VRRP device for group 2 and a lower priority triggers a backup device, Router 1, to become the new master for group 2.

device(config)# protocol vrrp
device(config)# interface ve 10
device(config-if-Ve-10)# vrrp-group 2
device(config-vrrp-group-1)# track ethernet 2/4 priority 20