Configuring the maximum number of dynamic ARP entries for an interface

An interface can dynamically learn ARP entries. To prevent an interface from holding too many ARP entries, you can set the maximum number of dynamic ARP entries that an interface can learn. When the maximum number is reached, the interface stops learning ARP entries.

A Layer 2 interface can learn an ARP entry only when both its maximum number and the VLAN interface's maximum number are not reached.

To set the maximum number of dynamic ARP entries that an interface can learn:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter Ethernet interface view.

interface interface-type interface-number

N/A

3. Set the maximum number of dynamic ARP entries that the interface can learn.

arp max-learning-num number

Optional.

By default, a Layer 2 interface does not limit the number of dynamic ARP entries. A Layer 3 interface can learn up to 16384 dynamic ARP entries.

If the value of the number argument is set to 0, the interface is disabled from learning dynamic ARP entries.