Tracking ports and setting the VRRP priority

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

Configure this task on the device on which the tracked interface exists.
  1. Enter the configure terminal command to enter global configuration mode.
    device# configure terminal
  2. Enter the router vrrp command to configure VRRP globally.
    device(config)# router vrrp
  3. Configure the Ethernet interface.
    device(config)# interface ethernet 1/1/6
    
  4. Enter the IP address for the interface to be used for the virtual router ID (VRID).
    device(config-if-e1000-1/1/6)# ip address 10.53.5.3/24
  5. Enter the following command to enter the appropriate VRRP virtual router ID (VRID) mode.
    device(config-if-e1000-1/1/6)# ip vrrp vrid 1
  6. Enter the track-port command to set the track port and priority:
    device(config-if-e1000-1/1/6-vrid-1)# track-port ethernet 1/2/4 priority 20
    The priority value is used when a tracked port goes down and the new priority is set to this value. Ensure that the priority value is lower than the priority set for any existing master or backup device to force a renegotiation for the master device.

The following example shows how to configure Ethernet interface 1/2/4 on virtual router 1 to be tracked; if the interface fails, the VRRP priority of the device becomes 20, forcing a negotiation for a new master device.

device# configure terminal
device(config)# router vrrp
device(config)# interface ethernet 1/1/6
device(config-if-e1000-1/1/6)# ip address 10.53.5.1/24
device(config-if-e1000-1/1/6)# ip vrrp vrid 1
device(config-if-e1000-1/1/6-vrid-1)# track-port ethernet 1/2/4 priority 20