< Home

(Optional) Configuring VRRP Time Parameters

Context

You can set VRRP time parameters as needed. Table 1 lists application scenarios of VRRP time parameters.

Table 1 Application scenarios of VRRP time parameters
Function Application Scenario
Interval at which VRRP Advertisement packets are sent The master in a VRRP group sends VRRP Advertisement packets to backups at intervals to notify that it is working properly. After the Master_Down_Interval timer expires, a new master is selected from the backups if the backups do not receive VRRP Advertisement packets.

Heavy network traffic or time differences on different devices may result in the backup status change due to timeout of VRRP Advertisement packets. When packets from the original master reach the new master, the status of the new master changes. You can increase the interval to solve this problem.

Interval at which gratuitous ARP packets are sent by the master To ensure that MAC address entries on the downstream switch are correct, the master in a VRRP group periodically sends gratuitous ARP packets to update MAC address entries on the downstream switch.
Delay before a VRRP group recovers On an unstable network, frequent flapping of the BFD session status or interface status monitored by a VRRP group may result in frequent switching of the VRRP group status. After the delay is set, the VRRP group does not immediately respond to an interface or BFD session Up event. Instead, the VRRP group processes this event after the delay. This prevents frequent switching of the VRRP group status.

Procedure

  • Set the interval at which VRRP Advertisement packets are sent.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view 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 timer advertise advertise-interval

      The interval at which VRRP Advertisement packets are sent is set.

      By default, the interval is 1 second.

  • Set the interval at which gratuitous ARP packets are sent by the master.
    1. Run system-view

      The system view is displayed.

    2. Run vrrp gratuitous-arp timeout time

      The interval at which gratuitous ARP packets are sent by the master is set.

      By default, the master sends gratuitous ARP packets every 120s.

      The interval at which the master sends gratuitous ARP packets must be shorter than the aging time of ARP entries on user devices.

      • To restore the default interval at which gratuitous ARP packets are sent, run the undo vrrp gratuitous-arp timeout command in the system view.

      • If the master does not need to send gratuitous ARP packets, run the vrrp gratuitous-arp timeout disable command in the system view.

  • Set the delay before a VRRP group recovers.
    1. Run system-view

      The system view is displayed.

    2. Run vrrp recover-delay delay-value

      The delay before a VRRP group recovers is set.

      By default, the delay before a VRRP group recovers is 0.

      • After this command is used, all VRRP groups on the device are configured with the same delay.

      • When the device in a VRRP group restarts, VRRP status flapping may occur. It is recommended that the delay be set based on actual networking.

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