1-13
Use the undo gratuitous-arp period-resending enable command to disable this function.
By default, this function is enabled, the gratuitous ARP packets are sent at an interval of 30 seconds.
After you enable a VLAN interface to send gratuitous ARP packets periodically, hosts on the network will
timely update the ARP entry corresponding to the VLAN interface’s IP address, thus preventing it from
being aged out. However, this function generates a large amount of ARP packets on the network; you
can disable the VLAN interface from sending gratuitous ARP packets if receiving hosts can update a
dynamic ARP entry when half of the entry’s aging time expires.
Examples
# Disable VLAN-interface 1 on the switch from periodically sending gratuitous ARP packets.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] undo gratuitous-arp period-resending enable
gratuitous-arp-learning enable
Syntax
gratuitous-arp-learning enable
undo gratuitous-arp-learning enable
View
System view
Parameters
None
Description
Use the gratuitous-arp-learning enable command to enable the gratuitous ARP packet learning
function. Then, a switch receiving a gratuitous ARP packet can add the IP and MAC addresses carried
in the packet to its own dynamic ARP table if it finds no corresponding ARP entry for the ARP packet in
the cache.
Use the undo gratuitous-arp-learning enable command to disable the gratuitous ARP packet
learning function.
By default, the gratuitous ARP packet learning function is enabled.
Examples
# Enable the gratuitous ARP packet learning function on a switch.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] gratuitous-arp-learning enable
reset arp
Syntax
reset arp [ dynamic | static | interface interface-type interface-number ]