Setting the aging time for dynamic arp entries – H3C Technologies H3C S5120 Series Switches User Manual

Page 225

Advertising
background image

1-4

To do…

Use the command…

Remarks

Configure a permanent
static ARP entry

arp static ip-address
mac-address
vlan-id
interface-type interface-number

Required

No permanent static ARP entry is
configured by default.

Configure a
non-permanent static
ARP entry

arp static ip-address
mac-address

Required

No non-permanent static ARP entry is
configured by default.

z

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.

z

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

256 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

Set the aging time for dynamic
ARP entries

arp timer aging aging-time

Optional

20 minutes by default.

Advertising