The arp-limit command limits the maximum number of dynamic Address Resolution Protocol (ARP) entries that an interface can learn.
The undo arp-limit command deletes the configuration of the maximum number.
By default, the number of ARP entries that an interface can learn is not limited (but is subject to the product specifications).
arp-limit [ vlan vlan-id1 [ to vlan-id2 ] ] maximum maximum
undo arp-limit [ vlan vlan-id1 [ to vlan-id2 ] ]
| Parameter | Description | Value |
|---|---|---|
vlan vlan-id1 |
Specifies the ID of a VLAN in which ARP learning is limited. |
The value of the VLAN ID ranges from 1 to 4094. This parameter can be set only in the Layer 2 interface view. |
to vlan-id2 |
Specifies the ID of a VLAN in which ARP learning is limited. NOTE:
The value of vlan-id2 must be greater than that of vlan-id1. |
The value of the VLAN ID ranges from 1 to 4094. This parameter can be set only in the Layer 2 interface view. |
maximum |
Specifies the maximum number of dynamic ARP entries that an interface (either a physical or logical interface) can learn. |
|
Ethernet interface view, Ethernet sub-interface view, Eth-trunk interface view, Eth-Trunk sub-interface view, or VLANIF interface view
Usage Scenario
If an unauthorized user sends a large number of ARP messages to a device, the device learns a large number of ARP entries in a short period, causing the ARP buffer to overflow. As a result, normal operation of the network is affected. To resolve such a problem, you can set the maximum number of ARP entries that each interface can learn.
Precautions
The Ethernet interface, GE interface or Eth-trunk interface can be used as a Layer 3 interface or a Layer 2 interface. vlan-id cannot be configured for the Layer 3 interface. vlan-id is required for the Layer 2 interface.
Follow-up Procedure
If the number of ARP entries that an interface can learn changes, and the number of the learned ARP entries exceeds the changed value, the interface cannot learn additional ARP entries. You can delete the excess ARP entries based on the system prompt.