Configuring ARP
Configuring a Static ARP Entry
A static ARP entry is effective when the device works normally. However, when a VLAN or VLAN
interface to which a static ARP entry corresponds is deleted, the entry, if permanent, will be deleted, and
if non-permanent and resolved, will become unresolved.
Follow these steps to configure a static ARP entry:
To do...
Enter system view
Configure a permanent
static ARP entry
Configure a
non-permanent static ARP
entry
The vlan-id argument must be the ID of an existing VLAN which corresponds to the ARP entries. In
addition, the Ethernet interface following the argument must belong to that VLAN. A VLAN interface
must be created for the VLAN.
Configuring the Maximum Number of ARP Entries for an Interface
Follow these steps to set the maximum number of dynamic ARP entries that an interface can learn:
To do...
Enter system view
Enter VLAN interface view
Set the maximum number of
dynamic ARP entries that an
interface can learn
Setting the Aging Time for Dynamic ARP Entries
To keep pace with the network changes, the ARP table is refreshed. Each dynamic ARP entry in the
ARP table has a limited lifetime rather than is always valid. Dynamic ARP entries that are not refreshed
before expiring are deleted from the ARP table. The lifetime is called the aging time. The aging time is
reset each time the dynamic ARP entry is used within the lifetime. You can adjust the aging time for
dynamic ARP entries according to the actual network condition.
Follow these steps to set the aging time for dynamic ARP entries:
Use the command...
system-view
arp static ip-address mac-address
vlan-id interface-type
interface-number [ vpn-instance
vpn-instance-name ]
arp static ip-address mac-address
[ vpn-instance vpn-instance-name ]
Use the command...
system-view
interface interface-type interface-number
arp max-learning-num number
1-4
Remarks
—
Required
No permanent static ARP entry
is configured by default.
Required
No non-permanent static ARP
entry is configured by default.
Remarks
—
—
Optional
8192 by default.