The vrrp vrid track interface command enables a VRRP group to track an interface.
The undo vrrp vrid track interface command disables a VRRP group from tracking an interface.
By default, a VRRP group does not track an interface.
Parameter | Description | Value |
---|---|---|
virtual-router-id |
Specifies the ID of a VRRP group. |
The value is an integer ranging from 1 to 255. |
interface interface-type interface-number |
Specifies the type and number of the interface whose status is tracked by a VRRP group. VRRP can track Layer 2 and Layer 3 interfaces.
|
- |
increased |
Increases the priority of the VRRP group. |
- |
value-increased |
Specifies the value by which the VRRP priority increases if the tracked interface becomes Down. This parameter takes effect on both the master and backup devices in a VRRP group. |
The value is an integer that ranges from 1 to 255. The value 255 is reserved for the IP address owner, so the maximum priority value is 254. |
reduced |
Reduces the priority of the VRRP group. |
- |
value-reduced |
Specifies the value by which the VRRP priority reduces if the tracked interface becomes Down. This parameter takes effect on both the master and backup devices in a VRRP group. |
The value is an integer in the range 1 to 255. The minimum priority value is 1. By default, the priority decreases by 10 when a monitored VRRP6-disabled interface goes Down. |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, PW-VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
The master device cannot detect status changes of interfaces that are not in a VRRP group. If a VRRP-disabled interface connected to a network fails, the master device is unable to detect the fault and still forwards user packets through the failed interface, resulting in service interruptions.
The vrrp vrid track interface command can be used to configure a VRRP group to track a VRRP-disabled interface. If the device or the network-side interface fails, a VRRP group can be notified of the fault and perform a master/backup VRRP switchover. If the tracked interface goes Down, devices in the VRRP group increase or decrease VRRP priorities by a specified value and perform a master/backup VRRP switchover. The new master device will take over traffic. If the tracked interface becomes Up, the original priorities of devices in a VRRP group will be restored.Prerequisites
A VRRP group has been configured using the vrrp vrid virtual-ip command.
Configuration Impact
The parameter increased value-increased or reduced value-reduced in the vrrp vrid track interface command affects the change of device status in a VRRP group. The increased or reduced value must ensure that changes in VRRP priorities can trigger a master/backup switchover. Assume that the priorities of the master and backup devices in a VRRP group are 120 and 110, respectively. If the parameter reduced 20 is configured on the master device, the priority of the master device becomes 100, a value less than the priority of the backup device. As a result, a master/backup switchover is triggered.
Precautions
If a VRRP device is an IP address owner, the association between the VRRP group and interface does not take effect.
Multiple VRRP groups can track the same interface. One common VRRP group can track a maximum of sixteen interfaces simultaneously. If a VRRP group is configured to track multiple interfaces, the priority of the device where the VRRP group resides is subject to the status of all tracked interfaces.