vrrp vrid timer advertise millisecond

Function

The vrrp vrid timer advertise millisecond command sets an interval at which the master device in a VRRP group sends a VRRP Advertisement packet.

The undo vrrp vrid timer advertise millisecond command restores the default interval.

By default, the master device sends a VRRP Advertisement packet every second.

Format

vrrp vrid virtual-router-id timer advertise millisecond { 100 | 200 | 500 }

Parameters

Parameter Description Value
100

Specifies a millisecond-level interval at which the master device in a VRRP group sends a VRRP Advertisement packet.

The value can be 100, in ms.

200

Specifies a millisecond-level interval at which the master device in a VRRP group sends a VRRP Advertisement packet.

The value can be 200, in ms.

500

Specifies a millisecond-level interval at which the master device in a VRRP group sends a VRRP Advertisement packet.

The value can be 500, in ms.

vrid virtual-router-id

Specifies the ID of a VRRP group.

The value is an integer ranging from 1 to 255.

Views

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, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

The master device in a VRRP group periodically sends VRRP Advertisement packets to the backup devices in the group to notify them of its status. You can run the vrrp vrid timer advertise millisecond command to set an interval at which the master device in a VRRP group sends a VRRP Advertisement packet to 500 ms.

If a backup device does not receive a VRRP Advertisement packet from the master device within a period three times as long as the interval at which the master device sends a VRRP packet, the backup device considers the master device Down and preempts the Master state.

Prerequisites

A VRRP group has been configured using the vrrp vrid command.

Configuration Impact

Changing the interval at which VRRP Advertisement packets are sent affects the maximum number of VRRP groups supported per device. If VRRP Advertisement packets are sent both at intervals of seconds and milliseconds, the maximum number of VRRP groups that can be configured per device is calculated based on the minimum interval.

Precautions

  • After you run the vrrp vrid timer advertise millisecond command, the function of learning the interval at which VRRP Advertisement packets are sent is not supported. To prevent VRRP negotiation failures and two master devices' coexistence, you must set the same interval at which the devices in a VRRP group send VRRP Advertisement packets.
  • When CPU usage is high (a large number of configurations are restored or multiple services are deployed together), VRRP may flap because the system cannot promptly process VRRP Advertisement packets.
  • A backup device's status changes due to heavy network traffic or timer differences.
  • To prevent a large number of packets from being received due to slow MAC address update in a switchback, run the mac-address queue-emptying disable command on the downstream device to disable the MAC address queue clearing function so that the switch can learn new MAC addresses quickly. This prevents excessive packets during a switchback.
  • If the device does not support sending VRRP Advertisement packets at an interval of 100 ms, after the vrrp vrid timer advertise millisecond command is run, the devices changes VRRP status to Init and stops sending VRRP Advertisement packets. Run the display vrrp state-change interface vrid command to check the VRRP status change. The change reason is No available active board.

Example

# Set an interval at which the master device in VRRP group 1 sends a VRRP Advertisement packet to 500 ms.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] ip address 10.1.1.1 24
[*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 virtual-ip 10.1.1.111
[*HUAWEI-GigabitEthernet0/1/1] vrrp vrid 1 timer advertise millisecond 500
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >