< Home

vrrp vrid track ip route

Function

The vrrp vrid track ip route command associates a VRRP group with a route.

The undo vrrp vrid track ip route command disassociates a VRRP group from a route.

By default, a VRRP group is not associated with a route.

Format

vrrp vrid virtual-router-id track ip route ip-address { mask-address | mask-length } [ vpn-instance vpn-instance-name ] [ reduced value-reduced ]

undo vrrp vrid virtual-router-id track ip route [ ip-address { mask-address | mask-length } [ vpn-instance vpn-instance-name ] ]

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.

ip-address Specifies the destination address of the monitored route.

The value is in dotted decimal notation.

mask-address Specifies the mask of the destination address of the monitored route.

The value is in dotted decimal notation.

mask-length Specifies the mask length of the destination address of the monitored route.

The value is an integer that ranges from 0 to 32.

vpn-instance vpn-instance-name Specifies the name of a VPN instance.

The value must be an existing VPN instance name.

reduced value-reduced Specifies the value by which the master's priority decreases if the monitored route is withdrawn or becomes inactive.

The value is an integer that ranges from 1 to 255. The priority can decrease to 1. By default, the master's priority decreases by 10 if the associated route is withdrawn or becomes inactive.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To improve device reliability, two user gateways are configured to work in master/backup mode, and VRRP is enabled on these gateways to determine their Master and Backup states. Although a VRRP group has been configured, access devices may not detect route changes caused by the faulty uplink or network topology change. Consequently, data traffic is lost.

You can associate a VRRP group with a route for forwarding uplink traffic. When the route is withdrawn or becomes inactive, the master' priority is adjusted and an active/standby switchover is performed. When the status of the monitored route recovers, the original priority of the master in the VRRP group is restored.

Pre-configuration Tasks

A VRRP group and a routing protocol such as OSPF or IS-IS have been configured.

Precautions

The VRRP group to be associated with a route cannot contain an IP address owner.

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.

When associating a VRRP group with a route in a VPN instance, note the following points:
  • If the VPN instance does not exist, association between the VRRP group and the VPN route cannot work.
  • If the VPN instance is deleted after the VRRP group is associated with the VPN route, association between the VRRP group and the VPN route is also deleted.

Multiple VRRP groups can monitor a route, and a VRRP group can monitor a maximum of eight routes simultaneously.

Example

# Configure VRRP group 1 to monitor the route on 10.2.1.0, and set the value by which the master's priority decreases if the monitored route is withdrawn or becomes inactive to 20.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] vrrp vrid 1 virtual-ip 10.1.1.12
[HUAWEI-Vlanif100] vrrp vrid 1 track ip route 10.2.1.0 24 reduced 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >