The vrrp gratuitous-arp enhance enable command enables the enhancement function for a VRRP group to send gratuitous ARP packets. After the VRRP group switches to the Master state, each virtual IP address sends three gratuitous ARP packets.
The undo vrrp gratuitous-arp enhance enable command restores the default configuration.
By default, the status is enable. The master device sends a gratuitous ARP or ND packet every 30 seconds. The enhancement function for a VRRP group to send gratuitous ARP packets is disabled. After a VRRP group switches to the Master state, the VRRP group sends one gratuitous ARP packet through each virtual IP address.
Parameter | Description | Value |
---|---|---|
timeout time |
Specifies the interval at which the master device sends a gratuitous ARP or ND packet. |
The value is an integer ranging from 30 to 1200, in seconds. |
disable |
Specifies to disable the enhancement function for a VRRP group to send gratuitous ARP packets. |
- |
enhance |
Specifies to enable the enhancement function for a VRRP group to send gratuitous ARP packets. |
- |
enable |
Specifies to enable the enhancement function for a VRRP group to send gratuitous ARP packets. |
- |
Usage Scenario
The master device in a VRRP4 backup group sends gratuitous ARP packets to its connected downstream switch to update the MAC entries on the downstream switch. To ensure that the MAC entries on the downstream switch can be promptly updated, run the vrrp gratuitous-arp timeout command to configure an interval at which the master device sends gratuitous ARP packets and ensure that the interval is less than the aging period of the MAC entries on the downstream switch.
The master device in a VRRP6 backup group sends gratuitous ND packets to its connected downstream switch to update the MAC entries on the downstream switch. To ensure that the MAC entries on the downstream switch can be promptly updated, run the vrrp gratuitous-arp timeout command to configure an interval at which the master device sends gratuitous ND packets and ensure that the interval is less than the aging period of the MAC entries on the downstream switch.Configuration Impact
After the vrrp gratuitous-arp enhance enable command is run and the VRRP group switches to the Master state, the VRRP group sends three gratuitous ARP packets through each virtual IP address.
After the vrrp gratuitous-arp timeout disable command is run, all VRRP groups in the master state no longer send gratuitous ARP packets at intervals. A gratuitous ARP packet is sent to downstream switches only when a backup device becomes the master device. The vrrp gratuitous-arp timeout command can be run to reenable the master device to send gratuitous ARP packets at a specified interval.Precautions
After the vrrp gratuitous-arp timeout command is run, running the vrrp gratuitous-arp timeout disable command disables the master device from periodically sending gratuitous ARP packets.
Exercise caution when running the vrrp gratuitous-arp timeout disable command.<HUAWEI> system-view [~HUAWEI] vrrp gratuitous-arp timeout disable
<HUAWEI> system-view [~HUAWEI] vrrp gratuitous-arp timeout 600
<HUAWEI> system-view [~HUAWEI] vrrp gratuitous-arp enhance enable