< Home

Configuring Association Between VRRP and the Interface Status to Implement an Active/Standby Switchover

Context

When the uplink interface of the master becomes faulty, VRRP cannot detect the status change of interfaces not in the VRRP group, causing service interruption. You can associate a VRRP group with the interface status. When the monitored interface is faulty, the priority of the master is reduced. This triggers an active/standby switchover and reduces the impact of the uplink interface fault on service forwarding.

When the fault is rectified, the original master restores its priority and becomes the master again to forward traffic.

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-zero on the master.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The view of the interface on the master where a VRRP group is configured is displayed.

  3. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  4. Run vrrp vrid virtual-router-id track interface interface-type interface-number [ increased value-increased | reduced value-reduced ]

    Association between VRRP and the interface status is configured.

    A VRRP group can monitor a total of eight BFD sessions and interfaces simultaneously.

    • After the value by which the priority decreases is set, ensure that the priority of the backup is higher than the priority of the master.

    • You can configure a VRRP group to monitor a maximum of eight interfaces simultaneously. If the device is an IP address owner, the interfaces cannot be monitored.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >