The vrrp vrid track ip route command configures a VRRP group to track a specified route.
The undo vrrp vrid track ip route command disables a VRRP group from tracking a specified route.
By default, a VRRP group tracks no route.
vrrp vrid virtual-router-id track ip route ip-address { mask-address | mask-length } vpn-instance vpn-instance-name [ reduced value-reduced ]
vrrp vrid virtual-router-id track ip route ip-address { mask-address | mask-length } [ reduced value-reduced ]
undo vrrp vrid virtual-router-id track ip route ip-address { mask-address | mask-length } vpn-instance vpn-instance-name
undo vrrp vrid virtual-router-id track ip route [ ip-address { mask-address | mask-length } ]
Parameter | Description | Value |
---|---|---|
virtual-router-id |
Specifies the ID of a VRRP group. |
The value is an integer ranging from 1 to 255. |
ip-address |
Specifies the destination IP address of a route to be tracked. |
The value is in dotted decimal notation. |
mask-address |
Specifies the destination IP address mask of a route to be tracked. |
The value is in dotted decimal notation. |
mask-length |
Specifies the length of the destination IP address mask of a route to be tracked. |
The value is an integer ranging from 0 to 32. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
reduced value-reduced |
Indicates that the master device reduces its priority if the tracked route is withdrawn or becomes inactive. |
The value is an integer ranging from 1 to 255. The default value is 10. |
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, PW-VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
To improve device reliability, two user gateways working in master/backup mode are connected to a network, and VRRP is enabled on these gateways to determine their master/backup status. If a VRRP group has been configured and an uplink route to a network becomes unreachable, access-side users still use the VRRP group to forward traffic along the uplink route, which causes user traffic loss.
Association between a VRRP group and a route can prevent user traffic loss. A VRRP group can be configured to track the uplink route to a network. If the route is withdrawn or becomes inactive, the route management (RM) module notifies the VRRP group of the change. After receiving the notification, the VRRP group changes its master device's VRRP priority and performs a master/backup switchover.Prerequisites
A VRRP group has been configured using the vrrp vrid command.
Precautions
When running the vrrp vrid track ip route command, note the following aspects:
<DEVICE> system-view [~DEVICE] interface GigabitEthernet 0/1/1 [~DEVICE-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.1.1.1 [*DEVICE-GigabitEthernet0/1/1] vrrp vrid 1 track ip route 10.2.1.0 24 reduced 20