[Sysname-GigabitEthernet1/0/1] port access vlan 10
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] interface vlan-interface 10
[Sysname-vlan-interface10] arp max-learning-num 1000
[Sysname-vlan-interface10] quit
[Sysname] arp static 192.168.1.1 000f-e201-0000 10 gigabitethernet 1/0/1
Configuring Gratuitous ARP
Introduction to Gratuitous ARP
A gratuitous ARP packet is a special ARP packet, in which the sender IP address and the target IP
address are both the IP address of the sender, the sender MAC address is the MAC address of the
sender, and the target MAC address is the broadcast address ff:ff:ff:ff:ff:ff.
A device implements the following functions by sending gratuitous ARP packets:
Determining whether its IP address is already used by another device. If the IP address is already
used, the device issuing the gratuitous ARP packet will be informed by an ARP reply of the conflict.
Informing other devices of its MAC address change so that they can update their ARP entries.
A device receiving a gratuitous ARP packet adds the information carried in the packet to its own
dynamic ARP table if it finds no corresponding ARP entry for the ARP packet in the cache.
Configuring Gratuitous ARP
Follow these steps to configure gratuitous ARP:
To do...
Enter system view
Enable the device to send
gratuitous ARP packets when
receiving ARP requests from
another network segment
Enable the gratuitous ARP
packet learning function
Displaying and Maintaining ARP
To do...
Display ARP entries in the
ARP table
Display the ARP entry for a
specified IP address
Display the aging time for
dynamic ARP entries
Use the command...
system-view
gratuitous-arp-sending
enable
gratuitous-arp-learning
enable
Use the command...
display arp [ [ all | dynamic | static ] | vlan
vlan-id | interface interface-type
interface-number ] [ [ | { begin | exclude |
include } regular-expression ] | count ]
display arp ip-address [ | { begin | exclude
| include } regular-expression ]
display arp timer aging
1-7
Remarks
—
Required
By default, a device cannot
send gratuitous ARP packets
when receiving ARP requests
from another network segment.
Optional
Enabled by default.
Remarks
Available in any view
Available in any view
Available in any view