R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
168
Use the undo gratuitous-arp-learning enable command to disable the function.
By default, the function is enabled.
With this function enabled, the firewall receiving a gratuitous ARP packet can add the source IP and
MAC addresses carried in the packet to its own dynamic ARP table if it finds no ARP entry in the cache
corresponding to the source IP address of the ARP packet exists; if the corresponding ARP entry exists in
the cache, the firewall updates the ARP entry regardless of whether this function is enabled.
Examples
# Enable the gratuitous ARP packet learning function.
<Sysname> system-view
[Sysname] gratuitous-arp-learning enable
arp send-gratuitous-arp
Syntax
arp send-gratuitous-arp [ interval milliseconds ]
undo arp send-gratuitous-arp
View
Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view, VLAN interface view
Default level
2: System level
Parameters
interval milliseconds: Sets the interval at which gratuitous ARP packets are sent, in the range 200 to
200000 milliseconds. The default value is 2000.
Description
Use the arp send-gratuitous-arp command to enable periodic sending of gratuitous ARP packets and set
the sending interval for the interface.
Use the undo arp send-gratuitous-arp command to disable the interface from periodically sending
gratuitous ARP packets.
By default, an interface is disabled from sending gratuitous ARP packets periodically.
Note the following:
This function takes effect only when the link of the enabled interface goes up and an IP address has
been assigned to the interface.
The IP address contained in a gratuitous ARP request can be the VRRP virtual IP address, the
primary IP address or a manually configured secondary IP address of the sending interface only.
The primary IP address can be configured manually or automatically, whereas the secondary IP
address must be configured manually.
If you change the interval for sending gratuitous ARP packets, the configuration is effective at the
next sending interval.
The frequency of sending gratuitous ARP packets may be much lower than is expected if this
function is enabled on multiple interfaces, or each interface is configured with multiple secondary
IP addresses, or a small sending interval is configured in the preceding cases.