1-6
Displaying and Debugging ARP
To do…
Use the command…
Remarks
Display specific ARP mapping
table entries
display arp
[
static
|
dynamic
|
ip-address
]
Display the ARP mapping
entries related to a specified
string in a specified way
display arp
[
dynamic
|
static
] |
{
begin
|
include
|
exclude
}
regular-expression
Display the number of the ARP
entries of a specified type
display arp count
[
[
dynamic
|
static
]
[ |
{
begin
|
include
|
exclude
}
regular-expression
] |
ip-address
]
Display the statistics about the
untrusted ARP packets
dropped by the specified port
display arp detection statistics interface
interface-type interface-number
Display the setting of the ARP
aging timer
display arp timer aging
Available in
any view
Clear specific ARP entries
reset
arp
[
dynamic
|
static
|
interface
interface-type interface-number
]
Available in
user view
ARP Configuration Examples
Network requirements
z
Disable ARP entry check on the switch.
z
Disable VLAN-interface 1 of the switch from sending gratuitous ARP packets periodically.
z
Set the aging time for dynamic ARP entries to 10 minutes.
z
Add a static ARP entry, with the IP address being 192.168.1.1, the MAC address being
000f-e201-0000, and the outbound port being Ethernet 1/0/10 of VLAN 1.
Configuration procedure
<Sysname> system-view
[Sysname] undo arp check enable
[Sysname] interface vlan 1
[Sysname-Vlan-interface1] undo gratuitous-arp period-resending enable
[Sysname-Vlan-interface1] quit
[Sysname] arp timer aging 10
[Sysname] arp static 192.168.1.1 000f-e201-0000 1 Ethernet 1/0/10