Configuring Strict ARP Learning
Context
- Processing ARP packets consumes many CPU resources. The device learns many invalid ARP entries, which exhaust ARP entry resources and prevent the device from learning ARP entries for ARP packets from authorized users. Consequently, communication of authorized users is interrupted.
- After receiving bogus ARP packets, the device incorrectly modifies the ARP entries. As a result, authorized users cannot communicate with one another other.
To avoid the preceding problems, configure the strict ARP learning function on the gateway. This function allows the gateway to learn only ARP entries for ARP Reply packets in response to ARP Request packets that it has sent. In this way, the gateway can prevent most ARP attacks.
Strict ARP learning can be configured globally or in the interface view.
- If strict ARP learning is enabled globally, all interfaces on the device learn ARP entries strictly.
- If strict ARP learning is enabled in the interface view, only this interface learns ARP entries strictly.
When strict ARP learning is enabled globally and in the interface view simultaneously, the configuration on the interface takes precedence over the global configuration.
- If you run the arp learning strict force-disable command on a specified interface, strict ARP learning is forced to be disabled on the interface.
- If you run the arp learning strict trust command on a specified interface, strict ARP learning configured globally takes effect on the interface.