arp anti-attack gratuitous-arp drop (interface view)

Function

The arp anti-attack gratuitous-arp drop command enables gratuitous ARP packet discarding.

The undo arp anti-attack gratuitous-arp drop command disables gratuitous ARP packet discarding.

By default, gratuitous ARP packet discarding is disabled.

Format

arp anti-attack gratuitous-arp drop

undo arp anti-attack gratuitous-arp drop

Parameters

None

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, PW-VE interface view, VLANIF interface view, Interface group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
arp write

Usage Guidelines

Usage Scenario

When a device is connected to a network for the first time, the device broadcasts gratuitous ARP packets to announce its existence and checks whether its IP address conflicts with any other device IP address in the broadcast domain. Any device can send gratuitous ARP packets and receive gratuitous ARP packets without authentication. As a result, a large number of gratuitous ARP packets can be generated, causing devices to be busy processing these packets. This process overloads the CPU and affects the processing of other services. To resolve this problem, you can enable gratuitous ARP packet discarding. After gratuitous ARP packet discarding is enabled, the device discards all received gratuitous ARP packets to prevent excessive CPU consumption.

Configuration Impact

After the arp anti-attack gratuitous-arp drop command is run, the device discards all received gratuitous ARP packets. The device is unaware of new access devices.

Precautions

Gratuitous ARP packet discarding can be enabled in the system view or in the interface view.

  • If the arp anti-attack gratuitous-arp drop command is enabled in the system view, the device discards gratuitous ARP packets received from all interfaces.
  • If the arp anti-attack gratuitous-arp drop command is enabled in the interface view, the device discards gratuitous ARP packets received from a specified interface.

    Gratuitous ARP request discarding enabled in the system view is independent upon that enabled in the interface view.

Example

# Enable gratuitous ARP packet discarding on the interface.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/3
[~HUAWEI-GigabitEthernet0/1/3] arp anti-attack gratuitous-arp drop
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >