After the sending of gratuitous ARP packets is configured, the device can send user packets to the correct gateway and prevent malicious attackers from obtaining these packets.
Before configuring gratuitous ARP, set the IP address of the interface enabled with gratuitous ARP. For details on how to set the IP address, see Overview of Interfaces.
A device functions as a gateway to send gratuitous ARP packets (using the IP address of the gateway as the destination IP address) to update the gateway MAC address of valid ARP entries, which ensures that packets are forwarded to the gateway and prevents malicious obtaining by attackers.
system-view
interface interface-type interface-number
gratuitous-arp send enablegratuitous-arp send enable [ interval interval ]
By default, this function is disabled.
After this function is enabled, the device sends gratuitous ARP packets every 60 seconds by default. To customize the interval, set interval.