track (VRRP)

Enables VRRP tracking for a specified interface. VRRP Extended (VRRP-E) sessions can track a specified interface or a network.

Syntax

track { ethernet slot/port| port-channel number } [ priority value ]
track network { ip-addressmask | ipv6-address/mask } [ priority value ]
no track { ethernet slot/port| port-channel number } [ priority value ]
no track network { ip-address/mask | ipv6-address/mask } [ priority value ]

Command Default

The default priority value is 2.

Parameters

ethernet slot port
Specifies a valid, physical Ethernet subtype with appropriate slot and port number.
port-channel number
Specifies the port-channel number.
priority value
The track priority is a number from 1 through 254, and is used when a tracked interface or network up or down event is detected. For VRRP, if the tracked interface goes offline, the specified priority value is subtracted from the priority of the current device. For VRRP-E, if the tracked interface or network goes offline, the current device priority is reduced by the configured priority value. If the tracked interface or network comes online, the specified priority value is added to the priority of the current device.
network
Enables tracking of a specified network. Network tracking is supported only on VRRP-E sessions.
ip-address
Specifies an IPv4 network address.
ipv6-address
Specifies an IPv6 network address.
mask
Specifies a mask for the associated IP or IPv6 subnet.

Modes

Virtual-router-group configuration mode

Usage Guidelines

This command can be used to track interfaces for VRRP or VRRP-E. Only VRRP-E sessions support network tracking.

For VRRP, the tracked interface can be any Ethernet or port-channel interface other than the one on which this command is issued.

The networks to be tracked can be either present or absent from the Routing Information Base (RIB).

The maximum number of interfaces or networks you can track per virtual router is 16.

Enter no track with the specified interface or network to remove the tracked port or tracked network configuration.

Examples

To set the track port to 2/4 and the track priority to 60:

device# configure terminal 
device(config)# protocol vrrp 
device(config)# interface ethernet 1/6 
device(conf-if-eth-1/6)# vrrp-group 1 
device(config-vrrp-group-1)# track ethernet 2/4 priority 60
 

The following example shows how to configure network 10.1.1.0/24 to be tracked, and if the network goes down, the VRRP-E device priority is lowered by a value of 20. The lower priority may trigger a switchover and a backup device with a higher priority becomes the new master for VRRP-E group 1.

device# configure terminal
device(config)# protocol vrrp-extended
device(config)# interface ve 100
device(conf-if-Ve-100)# vrrp-extended-group 1
device(config-vrrp-extended-group-1)# track network 10.1.1.0/24 priority 20