arp expire-time

Function

The arp expire-time command sets the aging time of dynamic Address Resolution Protocol (ARP) entries.

The undo arp expire-time command restores the default setting.

By default, the aging time of dynamic ARP entries is 1200 seconds, namely, 20 minutes.

Format

arp expire-time expire-time

undo arp expire-time

Parameters

Parameter Description Value
expire-time

Specifies the aging time of dynamic ARP entries.

The value is an integer ranging from 60~86400, in seconds.

Views

Layer 2 100GE interface view, 100ge sub-interface view, 100GE interface view, Layer 2 10GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE-L2 view, 25GE sub-interface view, 25GE interface view, 400GE-L2 view, 400GE sub-interface view, 400GE interface view, Layer 2 40GE interface view, 40GE sub-interface view, 40GE interface view, Layer 2 50GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Global VE interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VE interface view, VLANIF interface view, Management interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
arp write

Usage Guidelines

Usage Scenario

To ensure communication reliability, you need to update ARP entries when they are invalid. A dynamic ARP entry has a life cycle. If a dynamic ARP entry is not updated before its life cycle ends, this dynamic ARP entry will be deleted from the ARP table. The life cycle is called aging time. If the entry is updated before its life cycle expires, the aging time of the entry is recalculated. You can run the arp expire-time command to adjust aging time for ARP entries to ensure their updating. An aging time configured using the arp expire-time command takes effect from the next lifetime after the current lifetime expires.

Configuration Impact

  • If the aging time set for a dynamic ARP entry is short, the refreshment for the ARP entry will consume huge number of system resources, causing adverse impacts on other services, a network flapping and even traffic forwarding.
  • If the aging time set for a dynamic ARP entry is long, the ARP entry will not be promptly updated when it is invalid. For example, if a device fails to work or a network card is changed but the invalid ARP entry has not updated yet, the device sends packets to the peer device based on the existing ARP entry. As a result, the service will be interrupted.

Precautions

After this command is run, the aging time of dynamic ARP entries is changed on an interface.

Example

# Set the aging time of dynamic ARP entries on GE 0/1/1 to 600 seconds.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] arp expire-time 600
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >