< Home

gratuitous-arp send enable

Function

The gratuitous-arp send enable command enables an interface to periodically send gratuitous ARP packets.

The undo gratuitous-arp send enable command disables an interface to periodically send gratuitous ARP packets.

Format

gratuitous-arp send enable [ interval interval ]

undo gratuitous-arp send enable

Parameters

Parameter Description Value
interval Specifies the interval for sending gratuitous ARP packets. The value is an integer ranging from 3 to 3600, in seconds. The default value is 180 seconds.

Views

Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, VLANIF interface view, Management interface view

Default Level

2: Configuration level

Usage Guidelines

By default, the function for periodically sending gratuitous ARP packets is disabled.

By periodically sending gratuitous ARP packets through an interface, the system can update gateway ARP entries on a host, ensuring that correct gateway MAC addresses are in ARP entries on the client.

The interfaces that can be configured with this function must be Layer-3 interfaces specified with IP addresses, including Ethernet interface and its subinterface, Eth-Trunk interface and its subinterface, and VLANIF interface.

If the interface is specified with multiple IP addresses, each IP address sends gratuitous ARP packets.

Example

# Configure GigabitEthernet 0/0/1 to send gratuitous ARP packets every 10 seconds.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] ip address 10.1.1.1 24
[sysname-GigabitEthernet0/0/1] gratuitous-arp send enable interval 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >