VRRP IP Tracking Feature

For setup, refer to Figure VRRP- Topology 3.

VRRP enables a group of devices to form a single virtual device (aka VRRP group). The VRRP object tracking describes how to track an IP object using a VRRPv3 group. For individual objects, the tracking process allows tracking of a state of an interface line protocol, state of an IP route, or the reachability of a route.

Each VRRP group can track multiple objects that may affect the priority of the VRRP device. VRRP is notified of any change to a specified object to be tracked. VRRP increments (or decrements) the priority of the virtual device based on the state of the object being tracked.

Note: The VRRP IP Tracking Feature only works for VRRP Version 3.

This section describes the configuration commands for VRRP IP tracking feature.

Query is a set of ping packets that is sent out of a switch. The switchover of Master to Backup and vice versa case depends on the number of query success and failure. Ideally if it is set minimum, a quick switch over time can be achieved.

Definition of parameters

CLI Configuration Example:

Configure these VRRP configurations in R2 and R3.

  • Verify the running configuration.
iS5comm# S5comm# show running vrrp
#Building configuration...
!
!
router vrrp
vrrp version v3
interface vlan 1
vrrp 1 ipv4 192.168.10.3
vrrp 1 priority 200
vrrp 1 track 30 decrement 150
exit
interface vlan 2
vrrp 2 ipv4 192.168.20.3
vrrp 2 priority 200
vrrp 2 track 30 decrement 150
exit
interface vlan 3
vrrp 3 ipv4 192.168.30.3
vrrp 3 priority 200
vrrp 3 track 30 decrement 150
exit
interface vlan 4
vrrp 4 ipv4 192.168.40.3
vrrp 4 priority 200
vrrp 4 track 30 decrement 150
exit
interface vlan 5
vrrp 5 ipv4 192.168.50.3
vrrp 5 priority 200
vrrp 5 track 30 decrement 150
exit
interface vlan 6
vrrp 6 ipv4 192.168.60.3
vrrp 6 priority 200
vrrp 6 track 30 decrement 150
exit
interface vlan 7
vrrp 7 ipv4 192.168.70.3
vrrp 7 priority 200
vrrp 7 track 30 decrement 150 
exit
interface vlan 8
vrrp 8 ipv4 192.168.80.3
vrrp 8 priority 200
vrrp 8 track 30 decrement 150
exit
interface vlan 9
vrrp 9 ipv4 192.168.90.3
vrrp 9 priority 200
vrrp 9 track 30 decrement 150
exit
interface vlan 10
vrrp 10 ipv4 192.168.100.3
vrrp 10 priority 200
vrrp 10 track 30 decrement 150
exit
interface vlan 11
vrrp 11 ipv4 192.168.110.3
vrrp 11 priority 200
vrrp 11 track 30 decrement 150
exit
interface vlan 12
vrrp 12 ipv4 192.168.120.3
vrrp 12 priority 200
vrrp 12 track 30 decrement 150
exit
interface vlan 13
vrrp 13 ipv4 192.168.130.3
vrrp 13 priority 200
vrrp 13 track 30 decrement 150
exit
interface vlan 14
vrrp 14 ipv4 192.168.140.3
vrrp 14 priority 200
vrrp 14 track 30 decrement 150
exit
interface vlan 15
vrrp 15 ipv4 192.168.150.3
vrrp 15 priority 200
vrrp 15 track 30 decrement 150
!
track 31 interface vlan 1
track 32 interface vlan 1
track 30 IPv4 address 192.168.170.66
end
!
end
  • Enable VRRP and enter the VRRP Configuration Mode.
iS5comm(config)# router vrrp
iS5comm(config-vrrp)# vrrp version v3
iS5comm(config-vrrp)# ip-tracking query-delay 2
iS5comm(config-vrrp)# ip-tracking query-success 1
iS5comm(config-vrrp)# ip-tracking pings-per-query 2
iS5comm(config-vrrp)# ip-tracking connectivity-success 1
iS5comm(config-vrrp)# ip-tracking connectivity-failure 1
iS5comm(config-vrrp)# end
  • Verify the running configuration.
iS5comm# iS5comm# show running vrrp
#Building configuration...
!
!
router vrrp
ip-tracking query-success 1
ip-tracking pings-per-query 2
ip-tracking query-delay 2
ip-tracking connectivity-success 1
ip-tracking connectivity-failure 1