Tracking ports and setting the VRRP priority
Configuring port tracking on an exit path interface and setting a priority on a VRRP
device enables VRRP to monitor the interface. For VRRP, 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-E, 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.
- Enter the
configure terminalcommand to enter global configuration mode. - Enter the
router vrrpcommand to configure VRRP globally. - Configure the Ethernet interface.
- Enter the IP address for the interface to be used for the virtual router ID (VRID).
- Enter the following command to enter the appropriate VRRP virtual router ID (VRID) mode.
- Enter the
track-portcommand to set the track port and priority: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 Ethernet interface 1/2/4 on virtual router 1 to be tracked; if the interface fails, the VRRP priority of the device becomes 20, forcing a negotiation for a new master device.
device# configure terminal device(config)# router vrrp device(config)# interface ethernet 1/1/6 device(config-if-e1000-1/1/6)# ip address 10.53.5.1/24 device(config-if-e1000-1/1/6)# ip vrrp vrid 1 device(config-if-e1000-1/1/6-vrid-1)# track-port ethernet 1/2/4 priority 20