R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101
189
Configuring ARP entries in the CLI
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 long, will be deleted, and if short
and resolved, will become unresolved.
Follow these steps to configure a static ARP entry:
To do… Use the command…
Remarks
Enter system view system-view —
Configure a long static ARP
entry
arp static ip-address mac-address vlan-id
interface-type interface-number
[ vpn-instance vpn-instance-name ]
Required
No long static ARP entry is
configured by default.
Configure a short static ARP
entry
arp static ip-address mac-address
[ vpn-instance vpn-instance-name ]
Required
No short static ARP entry is
configured by default.
NOTE:
• 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.
• The IP address of the VLAN interface corresponding to the
vlan-id
argument must belong to the same
network segment as the IP address specified by the
ip-address
argument.
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… Use the command…
Remarks
Enter system view system-view —
Enter Ethernet interface view
interface interface-type
interface-number
—
Set the maximum number of dynamic ARP
entries that an interface can learn
arp max-learning-num number
Optional
4096 by default.
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
expiration 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 refreshed 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:
To do… Use the command…
Remarks
Enter system view system-view —