Step
2.
Configure a static ARP
entry.
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, and the device stops learning ARP entries until the number of
dynamic ARP entries is below the configured value.
To set the maximum number of dynamic ARP entries for a device:
Step
1.
Enter system view.
2.
Set the maximum
number of dynamic
ARP entries for the
device.
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.
The 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 for an interface:
Step
3.
Enter system view.
4.
Enter interface view.
Command
•
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 ]
Command
system-view
arp max-learning-number
number
Command
system-view
interface interface-type
interface-number
4
Remarks
Use either command.
By default, no static ARP entry is
configured.
Remarks
N/A
If the value for the number argument is set to
0, the device is disabled from learning
dynamic ARP entries.
Remarks
N/A
N/A