The arp l2-proxy learning dynamic-user disable command disables ARP snooping entry learning on an interface.
The undo arp l2-proxy learning dynamic-user disable command enables ARP snooping entry learning on an interface.
The arp l2-proxy learning dynamic-user max-user command configures the maximum number of ARP snooping entries that an interface can learn.
The undo arp l2-proxy learning dynamic-user max-user command restores the default configuration.
By default, ARP snooping entry learning is enabled. The default maximum number of ARP snooping entries that an interface can learn is set to 0, indicating that the maximum number of ARP snooping entries is not limited.
Usage Scenario
After receiving an ARP request packet, a device broadcasts the packet in its broadcast domain (BD). If a device receives a large number of ARP request packets within a period and broadcasts the packets, many network resources are consumed, causing network congestion. As a result, network performance deteriorates and user services are affected. Layer 2 proxy ARP can relieve the pressure on processing ARP packets by isolating ARP BDs. With this function enabled, a device preferentially uses learned ARP snooping entries to respond to received ARP request packets.
When Layer 2 proxy ARP is enabled on a device, ARP snooping is automatically enabled. The device then creates ARP snooping entries by snooping ARP packets. The entries record senders' information. When most users obtain IP addresses through DHCP, attackers may frequently send bogus ARP packets to attack ARP snooping entries, causing Layer 2 proxy ARP failures. To prevent the preceding issue, run the arp l2-proxy learning dynamic-user disable command to disable ARP snooping entry learning on an interface, or run the arp l2-proxy learning dynamic-user max-use command to configure the maximum number of ARP snooping entries that an interface can learn.Prerequisites
<HUAWEI> system-view [~HUAWEI] bridge-domain 10 [~HUAWEI-bd10] arp l2-proxy enable [~HUAWEI] interface GigabitEthernet 0/1/0.1 mode l2 [~HUAWEI-GigabitEthernet 0/1/0.1] encapsulation dot1q vid 100 [~HUAWEI-GigabitEthernet 0/1/0.1] bridge-domain 10 [~HUAWEI-GigabitEthernet 0/1/0.1] arp l2-proxy learning dynamic-user disable
<HUAWEI> system-view [~HUAWEI] bridge-domain 10 [~HUAWEI-bd10] a rp l2-proxy enable [~HUAWEI] interface GigabitEthernet 0/1/0.1 mode l2 [~HUAWEI-GigabitEthernet 0/1/0.1] encapsulation dot1q vid 100 [~HUAWEI-GigabitEthernet 0/1/0.1] bridge-domain 10 [~HUAWEI-GigabitEthernet 0/1/0.1] arp l2-proxy learning dynamic-user max-user 50