< Home

arp-fake expire-time

Function

The arp-fake expire-time command sets the aging expiry time of a fake dynamic Address Resolution Protocol (ARP) entry.

The undo arp-fake expire-time command restores the default aging expiry time of a fake dynamic ARP entry.

By default, the aging expiry time of a fake dynamic ARP entry is 1s.

Format

arp-fake expire-time expire-time

undo arp-fake expire-time

Parameters

Parameter Description Value

expire-time

Specifies the aging expiry time of a fake dynamic ARP entry.

The value is an integer ranging from 1 to 36000 in seconds. The default value is 1s.

Views

Ethernet interface view, Eth-Trunk interface view, or VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a device fails to find the destination MAC address (MAC address corresponding to the destination IP address) of the packet to be forwarded, the device sends an ARP Miss message to the upper-layer software, instructing the upper-layer software to send an ARP request message for the MAC address. This mechanism allows unauthorized users to send a large number of ARP messages with forged IP addresses to a device. The device tries to forward these messages, but cannot find the required destination MAC addresses. As a result, the device sends a large number of ARP Miss messages to the upper-layer software, causing the CPU to be busy processing ARP Miss messages and unable to process normal services.

To reduce the impact of ARP Miss message processing on the system, the upper-layer software generates a fake ARP entry for the received ARP Miss message and sends the fake ARP entry to the device. In this way, ARP Miss messages of the same IP address are sent only once before the ARP entry ages.

After generating a fake ARP entry, the upper-layer software sends an ARP request message for the correct ARP entry. Upon receiving the correct ARP entry, the upper-layer instructs the device to replace the fake ARP entry with the correct one to ensure traffic forwarding.

After an ARP entry ages, the ARP entry is deleted. When a device fails to find an ARP entry for traffic forwarding, the device again sends an ARP Miss message to the upper-layer and the upper-layer again generates a fake ARP entry to the device.

You can control the frequency at which ARP Miss messages are sent by adjusting the aging time of the fake ARP entry.

Precautions

This command can be run only on the main interface.

If the device does not receive a correct ARP entry before the fake ARP entry ages, messages matching the fake ARP entry will be discarded.
  • On an insecure network, you can set the aging time of fake ARP entries to a large value, reducing the impact of ARP Miss message processing on the device.

  • On a secure network, you can set the aging time of fake ARP entries to a small value, increasing the frequency at which ARP Miss messages are sent and fake ARP entries are refreshed. This can reduce traffic loss.

Follow-up Procedure

A fake ARP entry prevents ARP Miss messages of the same IP address from being sent repeatedly. The timestamp suppression for ARP Miss messages prevents a large number of ARP Miss messages of different IP addresses from being sent concurrently.

Example

# Set the aging expiry time of fake dynamic ARP entries on GE 1/0/1 to 10s.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet 0/0/1] arp-fake expire-time 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >