4
Step Command Remarks
2. Configure a static ARP
entry.
• Configure a long static ARP entry:
arp static ip-address mac-address
vlan-id interface-type
interface-number [ vpn-instance
vpn-instance-name ]
• Configure a short static ARP entry:
arp static ip-address mac-address
[ vpn-instance vpn-instance-name ]
By default, no static ARP entry is
configured.
Setting the maximum number of dynamic ARP
entries for a device
A device can dynamically learn ARP entries. To prevent a device from holding too many ARP entries,
you can set the maximum number of dynamic ARP entries that the device can learn. When the
maximum number is reached, the device stops learning ARP entries.
If you set a value lower than the number of existing dynamic ARP entries, the device does not
remove the existing entries unless they are aged out.
To set the maximum number of dynamic ARP entries for a device:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Set the maximum
number of dynamic
ARP entries for the
device.
arp max-learning-number
number
If the value for the number argument is set to
0, the device is disabled from learning
dynamic ARP entries.
Setting 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 the interface can learn. When
the maximum number is reached, the interface stops learning ARP entries.
You can set limits for both a Layer 2 interface and the VLAN interface for a permitted VLAN on the
Layer 2 interface. The Layer 2 interface learns an ARP entry only when neither limit is reached.
To set the maximum number of dynamic ARP entries for an interface:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Set the maximum number
of dynamic ARP entries for
the interface.
arp max-learning-num
number
If the value of the number argument is
set to 0, the interface is disabled from
learning dynamic ARP entries.