< Home

Configuring the Sending of Gratuitous ARP Packets

After the sending of gratuitous ARP packets is configured, the device can send user packets to the correct gateway and prevent malicious attackers from obtaining these packets.

Prerequisites

Before configuring gratuitous ARP, set the IP address of the interface enabled with gratuitous ARP. For details on how to set the IP address, see Overview of Interfaces.

Context

A device functions as a gateway to send gratuitous ARP packets (using the IP address of the gateway as the destination IP address) to update the gateway MAC address of valid ARP entries, which ensures that packets are forwarded to the gateway and prevents malicious obtaining by attackers.

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type interface-number

  3. Enable the interface to periodically send gratuitous ARP packets.

    gratuitous-arp send enablegratuitous-arp send enable [ interval interval ]

    By default, this function is disabled.

    After this function is enabled, the device sends gratuitous ARP packets every 60 seconds by default. To customize the interval, set interval.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic