vrrp vrid track interface
Function
The vrrp vrid track interface command associates a VRRP group with an interface.
The undo vrrp vrid track interface command disassociates a VRRP group from an interface.
By default, a VRRP group is not associated with an interface.
Format
vrrp vrid virtual-router-id track interface interface-type interface-number [ increased value-increased | reduced value-reduced ]
undo vrrp vrid virtual-router-id track interface [ interface-type interface-number ]
Parameters
Parameter | Description | Value |
---|---|---|
vrid virtual-router-id | Specifies the VRID of a VRRP group. | The value is an integer that ranges from 1 to 255. |
interface-type interface-number | Specifies the type and number of an interface monitored
by a VRRP group.
|
- |
increased value-increased | Specifies the value by which the priority increases when the monitored interface becomes Down. The maximum value of the priority is 254. | The value is an integer that ranges from 1 to 255. |
reduced value-reduced | Specifies the value by which the priority decreases when the monitored interface becomes Down. | The value is an integer that ranges from 1 to 255. The priority can decrease to 1. By default, when the monitored interface goes Down, the VRRP priority of the device decreases by 10. |
Usage Guidelines
VRRP can only detect the status change of the interface on which a VRRP group is configured. VRRP cannot detect faults on the uplink interface, causing service interruption. You can run the vrrp vrid track interface command to associate a VRRP group with a device interface not in the VRRP group. When the monitored interface becomes Down, the priority of the device is adjusted and an active/standby switchover is triggered. Therefore, services can be forwarded correctly. When the status of the monitored interface recovers, the original priority of the device in the VRRP group is restored.
PrerequisitesThe vrrp vrid virtual-ip command has been executed on an interface to create a VRRP group.
PrecautionsAfter a VRRP group is associated with an interface, set an appropriate value of increased value-increased or reduced value-reduced. This setting ensures that an active/standby switchover is performed immediately when the monitored interface becomes Down.
The master and backup in the VRRP group must work in preemption mode. It is recommended that the preemption delay be 0 on the backup and non-0 on the master.
If the device is the IP address owner (the virtual router IP address is used as the actual interface address), you cannot associate a VRRP group with an interface.
Multiple VRRP groups can monitor an interface, and a VRRP group can monitor a maximum of eight interfaces simultaneously.
Example
# Associate VRRP group 1 with VLANIF100. If VLANIF100 becomes Down, the priority of the wireless access point in VRRP group 1 decreases to 50.
<Huawei> system-view [Huawei] interface vlanif 100 [Huawei-Vlanif100] vrrp vrid 1 virtual-ip 10.1.1.1 [Huawei-Vlanif100] vrrp vrid 1 track interface vlanif 100 reduced 50