The arp learning disable command disables the dynamic Address Resolution Protocol (ARP) entry learning function on an interface.
The undo arp learning disable command enables the dynamic ARP entry learning function on an interface.
By default, the dynamic ARP entry learning function is enabled on an interface.
Usage Scenario
To ensure network security or facilitate network management, you can enable or disable dynamic ARP entry learning on an interface. You can run the arp learning disable command together with the arp limit and arp learning strict command to better control dynamic ARP entry learning on an interface.
Configuration Impact
If dynamic ARP entry learning is disabled on an interface, traffic forwarding may fail on this interface.
Precautions
After dynamic ARP entry learning is disabled on an interface, the system will not automatically delete the ARP entries that were learnt previously on this interface. You can choose to delete or retain these dynamic ARP entries as required.
# Disable dynamic ARP entry learning on the specified interface.
<sysname> system-view
[sysname] interface vlanif 300
[sysname-Vlanif300] arp learning disable
# Enable dynamic ARP entry learning on the specified interface.
<sysname> system-view
[sysname] interface vlanif 300
[sysname-Vlanif300] undo arp learning disable