Tracking ports and setting VRRP priority using VRRPv3

Configuring port tracking on an exit path interface and setting a priority on a VRRPv3 device enables VRRPv3 to monitor the interface. For VRRPv3, 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-Ev3, 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.

Before enabling IPv6 VRRPv3, you must globally enable IPv6 routing using the ipv6 unicast-routing command.

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 ipv6 router vrrp command to configure VRRPv3 globally.
    device(config)# ipv6 router vrrp
  3. Configure the Ethernet interface.
    device(config)# interface ethernet 1/1/6
    
  4. Enter the IPv6 address for the interface to be used for the virtual router ID (VRID).
    device(config-if-e1000-1/1/6)# ipv6 address fd2b::2/64
  5. Enter the following command to enter the appropriate VRRPv3 virtual router ID (VRID) mode.
    device(config-if-e1000-1/1/6)# ipv6 vrrp vrid 1
  6. Enter the track-port command to set the tracked 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 interface Ethernet 1/2/4 on virtual router 1 to be tracked; if the interface fails, the IPv6 VRRPv3 priority of the device becomes 20, forcing a negotiation for a new master device.

device# configure terminal
device(config)# ipv6 router vrrp
device(config)# interface ethernet 1/1/6
device(config-if-e1000-1/1/6)# ipv6 address fd2b::2/64
device(config-if-e1000-1/1/6)# ipv6 vrrp vrid 1
device(config-if-e1000-1/1/6-vrid-1)# track-port ethernet 1/2/4 priority 20