Gratuitous ARP allows a device to broadcast gratuitous ARP messages that carry the local IP address as both the source and destination IP addresses to notify the other devices on the same network segment of its address information. Gratuitous ARP is used in the following scenarios to ensure the stability and reliability of network communication:
Gratuitous ARP uses gratuitous ARP messages. A gratuitous ARP message is a special ARP message that carries the sender's IP address as both the source and destination IP addresses.
Gratuitous ARP is implemented as follows:
Interface 1 and Interface 2 send gratuitous ARP messages to each other at an interval of 5 seconds until the address conflict is rectified.
If one interface does not receive a gratuitous ARP message from the other interface within 8 seconds, the interface considers the address conflict rectified. The interface deletes the conflict node on its conflict link and stops sending gratuitous ARP messages to the other interface.
Checks for IP address conflicts. If a device receives a gratuitous ARP message from another device, the IP addresses of the two devices conflict.
Notifies MAC address changes. When the MAC address of a host changes after its network adapter is replaced, the host sends a gratuitous ARP message to notify other devices of the MAC address change before the ARP entry is aged. This ensures the reliability of network communication. After receiving the gratuitous ARP message, other devices maintain the corresponding ARP entry in their ARP tables based on the address information carried in the message.
Notifies status changes. When a master/backup switchover occurs in a VRRP backup group, the new master device sends a gratuitous ARP message to notify other devices on the network of its status change.
Gratuitous ARP reveals address conflict on a network so that ARP tables of devices can be quickly updated. This feature ensures the stability and reliability of network communication.