The vrrp vrid track admin-vrrp vrid command binds a VRRP group to an mVRRP group.
The undo vrrp vrid track admin-vrrp command unbinds a VRRP group from an mVRRP group.
By default, no VRRP group is bound to an mVRRP group.
vrrp vrid virtual-router-id1 track admin-vrrp interface interface-type interface-number vrid virtual-router-id2 unflowdown
undo vrrp vrid virtual-router-id1 track admin-vrrp
Parameter |
Description |
Value |
---|---|---|
vrid virtual-router-id1 |
Specifies the VRID of a VRRP group. |
The value is an integer that ranges from 1 to 255. |
vrid virtual-router-id2 |
Specifies the VRID of an mVRRP group. |
The value is an integer that ranges from 1 to 255. |
interface-type interface-number |
Specifies the type and number of an interface configured
with an mVRRP group.
|
- |
unflowdown |
Allows the interface where a VRRP group bound to an mVRRP group is configured to remain in Up state if the mVRRP group is in Backup or Initialize state. |
- |
Usage Scenario
If multiple VRRP groups are configured on the device, each group sends VRRP Advertisement packets to maintain its state machine. As a result, a large number of VRRP Advertisement packets are generated, which occupy network bandwidth resources and cause CPU performance to deteriorate. To solve the problem, run the vrrp vrid track admin-vrrp vrid command to bind a VRRP group to an mVRRP group. After a VRRP group is bound to an mVRRP group, the VRRP group does not send VRRP Advertisement packets to negotiate the Master and Backup states. The mVRRP group determines the status of the bound VRRP group. This method greatly reduces the impact of VRRP Advertisement packets on network bandwidth and CPU performance.
This mode is used on a network where uplink and downlink traffic can be transmitted along different paths. unflowdown can be configured to allow the mVRRP group to determine the status of its bound VRRP group. Uplink traffic travels through the master and then reaches the upper-layer network, and downlink traffic travels through either the master or backup to reach users.
Prerequisites
A VRRP group and an mVRRP group have been created.
Precautions
The vrrp vrid track admin-vrrp vrid command can be used only on the interface where the bound VRRP group is configured. This command cannot be used on the interface where an mVRRP group is configured.
If multiple service VRRP backup groups are configured on an interface, a single service VRRP backup group can be bound to the mVRRP backup group.
<HUAWEI> system-view [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] vrrp vrid 1 track admin-vrrp interface vlanif 20 vrid 2 unflowdown
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] vrrp vrid 1 track admin-vrrp interface GigabitEthernet 0/0/2 vrid 2 unflowdown