
1-7
[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 100
[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:
z
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.
z
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…
Use the command…
Remarks
Enter system view
system-view
—
Enable the device to send
gratuitous ARP packets when
receiving ARP requests from
another network segment
gratuitous-arp-sending
enable
Required
By default, a device cannot
send gratuitous ARP packets
when receiving ARP requests
from another network segment.
Enable the gratuitous ARP
packet learning function
gratuitous-arp-learning
enable
Optional
Enabled by default.
Displaying and Maintaining ARP
To do…
Use the command…
Remarks
Display ARP entries in the
ARP table
display arp
[ [
all
|
dynamic
|
static
] [
slot
slot-number
] |
vlan vlan-id
|
interface
interface-type interface-number
] [ [
|
{
begin
|
exclude
|
include
}
regular-expression
] |
count
]
Available in any view
Display the ARP entry for a
specified IP address
display arp ip-address
[
slot
slot-number
]
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the aging time for
dynamic ARP entries
display arp timer aging
Available in any view
Summary of Contents for S5120-EI Series
Page 139: ...ii...
Page 578: ...1 21 C...
Page 739: ...1 12 Enable ARP detection based on 802 1X security entries SwitchB arp detection mode dot1x...
Page 926: ...2 8...
Page 942: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5...
Page 985: ...1 1...
Page 1018: ...1 6...