9
View
System view
Default level
2: System level
Parameters
None
Description
Use the gratuitous-arp-sending enable command to enable a switch to send gratuitous ARP packets when
receiving ARP requests from another network segment.
Use the undo gratuitous-arp-sending enable command to restore the default.
By default, a switch cannot send gratuitous ARP packets when receiving ARP requests from another
network segment.
Examples
# Disable a switch from sending gratuitous ARP packets.
<Sysname> system-view
[Sysname] undo gratuitous-arp-sending enable
gratuitous-arp-learning enable
Syntax
gratuitous-arp-learning enable
undo gratuitous-arp-learning enable
View
System view
Default level
2: System level
Parameters
None
Description
Use the gratuitous-arp-learning enable command to enable the gratuitous ARP packet learning function.
Use the undo gratuitous-arp-learning enable command to disable the function.
By default, the function is enabled.
With this function enabled, a switch 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 that no ARP entry exists in the
cache corresponding to the source IP address of the ARP packet. If the corresponding ARP entry exists in
the cache, the switch 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