track-port (VSRP)

Configures the VRID on one interface to track the link state of another interface on the device.
Syntax
track-port{ethernetunit/slot/port|laglag-id|venumber}[prioritynumber]
no track-port{ethernetunit/slot/port|laglag-id|venumber}[prioritynumber]
Command Default

The VRID does not track an interface.

Parameters
ethernetunit/slot/port
Configures the Ethernet interface to track.
|laglag-id
Configures LAG virtual interface to track.
venumber
Configures the virtual Ethernet interface to track.
prioritynumber
Changes the VSRP priority of the interface. The range is from 1 through 254.
Modes

VSRP VRID configuration mode

Usage Guidelines

Configuring this command is useful for tracking the state of the exit interface for the path for which the VRID is providing redundancy.

If the interface configured for tracking goes down, the VSRP VRID priority is reduced by the amount of the track port priority you specify.

The priority option changes the priority of the specified interface, overriding the default track port priority. To change the default track port priority, use the backup track-priority command.

The no form of the command removes the link state tracking.

Examples

The following example configures the VRID to track an Ethernet interface .

device# configure terminal
device(config)# vlan 4
device(config-vlan-4)# vsrp vrid 1
device(config-vlan-4-vrid-1)# track-port ethernet 1/2/4

The following example configures the VRID to track a VE interface.

device# configure terminal
device(config)# vlan 4
device(config-vlan-4)# vsrp vrid 1
device(config-vlan-4-vrid-1)# track-port ve 4 priority 4
History
Release version Command history
08.0.61 The command was modified to include the lag lag-id option.