track-port (VSRP)

Configures the VRID on one interface to track the link state of another interface on the device.
Syntax
track-port { ethernet unit/slot/port | lag lag-id | ve number } [ priority number ]
no track-port { ethernet unit/slot/port | lag lag-id | ve number } [ priority number ]
Command Default

The VRID does not track an interface.

Parameters
ethernet unit/slot/port
Configures the Ethernet interface to track.
| lag lag-id
Configures LAG virtual interface to track.
ve number
Configures the virtual Ethernet interface to track.
priority number
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(config)# vlan 200
device(config-vlan-200)# vsrp vrid 1
device(config-vlan-200-vrid-1)# track-port ethernet 1/2/4

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

device(config)# vlan 200
device(config-vlan-200)# vsrp vrid 1
device(config-vlan-200-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.