The vrrp vrid track route-monitor-group failure-ratio command enables a VRRP group to track a route 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 route-monitor-group command disables a VRRP group from tracking a route monitoring group.
By default, a VRRP group is disabled from tracking a route monitoring group.
Parameter | Description | Value |
---|---|---|
route-monitor-group-name |
Specifies the name of a route 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 a route monitoring group. When the link failure ratio of a route monitoring group is greater than or equal to the threshold, the status of the route monitoring group changes to Down. |
The value is an integer ranging from 1 to 100. |
link |
Indicates that a VRRP group tracks a route monitoring group in link mode. In link mode, when the status of the tracked route 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 route 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 route monitoring group changes to Down. |
vrid virtual-router-id |
Specifies the ID of a VRRP group. |
The value is an integer ranging from 1 to 255. |
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
VRRP can track a route monitoring group based on the link failure ratio threshold configured for this group. VRRP can be configured to track a route monitoring group. If the fault weight of the route monitoring group changes, the system notifies the VRRP module of the change. The VRRP module calculates the status based on the link failure ratio threshold configured for the route monitoring group, implementing a master/backup VRRP switchover. When the tracked route monitoring group recovers, the priority of the router in the VRRP group restores the original value.
Prerequisites
Before enabling a unicast VRRP group to track a route monitoring group, you have run the vrrp vrid peer-ip command in the loopback interface view to enable unicast VRRP and have run the ip route-monitor-group command to create a route monitoring group.
Precautions
A VRRP group can track three route monitoring groups at the same time.
<HUAWEI> system-view [~HUAWEI] ip route-monitor-group 2 [*HUAWEI-route-monitor-group-2] quit [*HUAWEI] interface Eth-Trunk2 [*HUAWEI-Eth-Trunk2] ip address 11.1.1.1 24 [*HUAWEI-Eth-Trunk2] vrrp vrid 2 virtual-ip 11.1.1.111 [*HUAWEI-Eth-Trunk2] vrrp vrid 2 track route-monitor-group 2 failure-ratio 90 link
<HUAWEI> system-view [~HUAWEI] ip route-monitor-group 1 [*HUAWEI-route-monitor-group-1] quit [*HUAWEI] interface Eth-Trunk1 [*HUAWEI-Eth-Trunk1] ip address 10.1.1.1 24 [*HUAWEI-Eth-Trunk1] vrrp vrid 1 virtual-ip 10.1.1.111 [*HUAWEI-Eth-Trunk1] vrrp vrid 1 track route-monitor-group 1 failure-ratio 80 reduced 20