The vrrp vrid track monitor-group command enables a VRRP group to track an interface monitoring group. When the link failure ratio on the access or network side reaches a specified threshold, the VRRP group performs a master/backup switchover.
The undo vrrp vrid track monitor-group command disables a VRRP group from tracking an interface monitoring group.
By default, a VRRP group is disabled from tracking an interface monitoring group.
Parameter | Description | Value |
---|---|---|
virtual-router-id |
Specifies the ID of a VRRP group. |
The value is an integer ranging from 1 to 255. |
monitor-group-name |
Specifies the name of an interface monitoring group tracked by a VRRP group. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The character string can contain spaces if it is enclosed in double quotation marks ("). |
failure-ratio failure-ratio-value |
Specifies a link failure ratio threshold for an interface monitoring group. When the link failure ratio of an interface monitoring group is greater than or equal to the threshold, the status of the interface monitoring group changes to Down. |
The value is an integer ranging from 1 to 100. |
link |
Indicates that a VRRP group tracks an interface monitoring group in link mode. In link mode, when the status of the tracked interface monitoring group changes to Down, the local device in the VRRP group changes to the Initialize state and sends a VRRP Advertisement packet carrying a priority of 0 to the remote device to trigger the remote device to preempt the Master state. |
- |
reduced priority-value |
Specifies a value by which the priority of a device in a VRRP group reduces when the status of the tracked interface monitoring group changes to Down. |
The value is an integer ranging from 1 to 255. The smallest priority can be 1. The priority 0 is reserved for special use. If a backup device receives a VRRP Advertisement packet carrying a priority of 0, the backup device immediately preempts the Master state. By default, the priority of a device in a VRRP group reduces by 10 if the status of the tracked interface monitoring group changes to 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, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
To prevent failures on a VRRP-disabled interface from causing service interruptions, configure a VRRP group to track the VRRP-disabled interface. However, a VRRP group can track only one VRRP-disabled interface at a time. As the network scale is expanding and more interfaces are appearing, a VRRP group is required to track more VRRP-disabled interfaces. If the original technology is used, the configuration workload is very large.
To reduce the configuration workload, you can add multiple VRRP-disabled interfaces to an interface monitoring group and enable a VRRP group to track the interface monitoring group. When the link failure ratio of the interface monitoring group reaches a specified threshold, the VRRP group performs a master/backup switchover to ensure reliable service transmission.Prerequisites
Before enabling a VRRP group to track an interface monitoring group, run the vrrp vrid peer-ip command in the loopback interface view to enable VRRP and run the monitor-group command to create an interface monitoring group.
Precautions
A VRRP group can track three interface monitoring groups at the same time:
<HUAWEI> system-view [~HUAWEI] monitor-group 1 [*HUAWEI-monitor-group-1] quit [*HUAWEI] interface LoopBack 1 [*HUAWEI-LoopBack1] vrrp vrid 1 peer-ip 1.1.1.1 [*HUAWEI-LoopBack1] vrrp vrid 1 track monitor-group 1 failure-ratio 80 reduced 20
<HUAWEI> system-view [~HUAWEI] monitor-group 1 [*HUAWEI-monitor-group-1] quit [*HUAWEI] interface LoopBack 1 [*HUAWEI-LoopBack1] vrrp vrid 1 peer-ip 1.1.1.1 [*HUAWEI-LoopBack1] vrrp vrid 1 track monitor-group 1 failure-ratio 90 link