Configuration procedure
When you configure gratuitous ARP, follow these restrictions and guidelines:
You can enable periodic sending of gratuitous ARP packets on a maximum of 1024 interfaces.
Periodic sending of gratuitous ARP packets takes effect on an interface only when the following conditions are met:
The data link layer state of the interface is up.
The interface has an IP address.
If you change the sending interval for gratuitous ARP packets, the configuration takes effect at the next sending interval.
The sending interval for gratuitous ARP packets might be much longer than the specified sending interval in any of the following circumstances:
This feature is enabled on multiple interfaces.
Each interface is configured with multiple secondary IP addresses.
A small sending interval is configured when the previous two conditions exist.
To configure gratuitous ARP:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable learning of gratuitous ARP packets. | gratuitous-arp-learning enable | By default, learning of gratuitous ARP packets is enabled. |
3. Enable the device to send gratuitous ARP packets upon receiving ARP requests whose sender IP address belongs to a different subnet. | gratuitous-arp-sending enable | By default, a device does not send gratuitous ARP packets upon receiving ARP requests whose sender IP address belongs to a different subnet. |
4. Enter interface view. | interface interface-type interface-number | N/A |
5. Enable periodic sending of gratuitous ARP packets. | arp send-gratuitous-arp [ interval interval ] | By default, periodic sending of gratuitous ARP packets is disabled. |