- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)
- 00-1Cover
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Configuration Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-IP Source Guard Commands
- 09-MSTP Commands
- 10-IPv6 Commands
- 11-Routing Overview Commands
- 12-IPv4 Routing Commands
- 13-BFD-GR Commands
- 14-IPv6 Routing Commands
- 15-Multicast Protocol Commands
- 16-802.1x-HABP-MAC Authentication Commands
- 17-AAA-RADIUS-HWTACACS Commands
- 18-ARP Commands
- 19-DHCP Commands
- 20-ACL Commands
- 21-QoS Commands
- 22-Port Mirroring Commands
- 23-Cluster Management Commands
- 24-UDP Helper Commands
- 25-SNMP-RMON Commands
- 26-NTP Commands
- 27-DNS Commands
- 28-File System Management Commands
- 29-Information Center Commands
- 30-System Maintaining and Debugging Commands
- 31-NQA Commands
- 32-VRRP Commands
- 33-SSH Commands
- 34-MCE Commands
- 35-OAM Commands
- 36-DLDP Commands
- 37-RRPP Commands
- 38-SSL-HTTPS Commands
- 39-PKI Commands
- 40-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
18-ARP Commands | 65.04 KB |
Table of Contents
Chapter 1 ARP Configuration Commands
1.1 ARP Configuration Commands
1.1.8 display arp vpn-instance
1.2 Gratuitous ARP Configuration Commands
1.2.1 gratuitous-arp-sending enable
1.2.2 gratuitous-arp-learning enable
1.3 ARP Source Suppression Configuration Commands
1.3.1 arp source-suppression enable
1.3.2 arp source-suppression limit
1.3.3 display arp source-suppression
Chapter 2 Proxy ARP Configuration Commands
2.1 Proxy ARP Configuration Commands
Chapter 1 ARP Configuration Commands
1.1 ARP Configuration Commands
1.1.1 arp check enable
Syntax
arp check enable
undo arp check enable
View
System view
Parameters
None
Description
Use the arp check enable command to enable ARP entry check. With this function enabled, the device cannot learn any ARP entry with a multicast MAC address. Configuring such a static ARP entry is not allowed either; otherwise, the system prompts error information.
Use the undo arp check enable command to disable the function. After the ARP entry check is disabled, the device can learn the ARP entry with a multicast MAC address, and you can also configure such a static ARP entry on the device.
By default, ARP entry check is enabled.
Examples
# Enable the ARP entry check function.
<Sysname> system-view
[Sysname] undo check enable
1.1.2 arp max-learning-num
Syntax
arp max-learning-num number
undo arp max-learning-num
View
VLAN interface view
Parameters
number: Maximum number of dynamic ARP entries that a VLAN interface can learn, in the range 1 to 2560.
Description
Use the arp max-learning-num command to set the maximum number of dynamic ARP entries that a VLAN interface can learn.
Use the undo arp max-learning-num command to restore the default.
By default, a VLAN interface can learn up to 2,560 dynamic ARP entries.
Examples
# Specify VLAN-interface 40 to learn up to 500 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface vlan-interface 40
[Sysname-Vlan-interface40]arp max-learning-num 500
1.1.3 arp static
Syntax
arp static ip-address mac-address [ vlan-id interface-type interface-number ] [ vpn-instance vpn-instance-name ]
undo arp ip-address [ vpn-instance vpn-instance-name ]
View
System view
Parameters
ip-address: IP address in an ARP entry.
mac-address: MAC address in an ARP entry, in the format H-H-H.
vlan-id: ID of a VLAN to which a static ARP entry belongs to, in the range 1 to 4094.
interface-type interface-number: Port type and port number.
vpn-instance vpn-instance-name: Name of a VLAN instance, a case-insensitive string of 1 to 31 characters.
Description
Use the arp static command to configure a static ARP entry in the ARP mapping table.
Use the undo arp command to remove an ARP entry.
Note that:
l A static ARP entry is effective when the device works normally. However, when the VLAN or VLAN interface to which an ARP entry corresponds is deleted, the entry, if permanent, will be deleted, and if non-permanent and resolved, will become unresolved. A VLAN interface must be created for the VLAN.
l The vlan-id argument is used to specify the corresponding VLAN of an ARP entry and must be the ID of an existing VLAN. In addition, the Ethernet port following the argument must belong to that VLAN.
Related commands: reset arp.
Examples
# Configure a static ARP entry, with the IP address being 202.38.10.2, the MAC address being 00e0-fc01-0000, and the outbound port being Ethernet 1/0/10 of VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 00e0-fc01-0000 10 ethernet 1/0/10
1.1.4 arp timer aging
Syntax
arp timer aging aging-time
undo arp timer aging
View
System view
Parameters
aging-time: Aging time for dynamic ARP entries in minutes. It ranges from 1 to 1,440 and defaults to 20.
Description
Use the arp timer aging command to set aging time for dynamic ARP entries.
Use the undo arp timer aging command to restore the default.
Related commands: display arp timer aging.
Examples
# Set aging time for dynamic ARP entries to 10 minutes.
<Sysname> system-view
1.1.5 display arp
Syntax
display arp { { all | dynamic | static } | vlan vlan-id | interface interface-type interface-number } [ [ verbose ] [ | { begin | exclude | include } text ] | count ]
View
Any view
Parameters
all: Displays all ARP entries.
dynamic: Displays dynamic ARP entries.
static: Displays static ARP entries.
vlan vlan-id: Displays the ARP entries of the specified VLAN. The VLAN ID ranges from 1 to 4,094.
interface interface-type interface-number: Displays the ARP entries of the port specified by the argument interface-type interface-number.
verbose: Displays detailed information about ARP entries.
|: Uses a regular expression to specify the ARP entries to be displayed.
begin: Displays ARP entries from the first one containing the specified string.
exclude: Displays the ARP entries that do not contain the specified string.
include: Displays the ARP entries containing the specified string.
text: A string for matching.
count: Displays the number of ARP entries.
Description
Use the display arp command to display ARP entries in the ARP mapping table.
Related commands: arp static, reset arp.
Examples
# Display the detailed information of all ARP entries.
<Sysname> display arp all verbose
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Interface Aging Type
Vpn-instance Name
20.1.1.1 00e0-fc00-0001 N/A N/A N/A S
test
193.1.1.70 00e0-fe50-6503 100 Eth1/0/1 14 D
[No Vrf]
192.168.0.115 000d-88f7-9f7d 1 Eth1/0/2 18 D
[No Vrf]
192.168.0.39 0012-a990-2241 1 Eth1/0/3 20 D
[No Vrf]
Table 1-1 Description on the fields of the display arp command
Field |
Description |
IP Address |
IP address in an ARP entry |
MAC Address |
MAC address in an ARP entry |
VLAN ID |
VLAN ID contained a static ARP entry |
Interface |
Outbound port in an ARP entry |
Aging |
Aging time for a dynamic ARP entry in minutes |
Type |
ARP entry type: D stands for dynamic and S for static. |
Vpn-instance Name |
Name of VPN instance. [No Vrf] means no VPN instance is configured for the corresponding ARP. |
# Display the number of all ARP entries
<Sysname> display arp all count
Total Entry(ies): 4
1.1.6 display arp ip-address
Syntax
display arp ip-address [ verbose ] [ | { begin | exclude | include } text ]
View
Any view
Parameters
ip-address: Displays the ARP entry for the specified IP address.
verbose: Displays the detailed information about ARP entries.
|: Uses a regular expression to specify the ARP entries to be displayed.
begin: Displays the ARP entries from the first one containing the specified string.
exclude: Displays the ARP entries that do not contain the specified string.
Include: Displays the ARP entries that contain the specified string.
text: A character string.
Description
Use the display arp ip-address command to display the ARP entry for a specified IP address.
Related commands: arp static, reset arp.
Examples
# Display the corresponding ARP entry for the IP address 20.1.1.1.
<Sysname> display arp 20.1.1.1
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Interface Aging Type
20.1.1.1 00e0-fc00-0001 N/A N/A N/A S
1.1.7 display arp timer aging
Syntax
display arp timer aging
View
Any view
Parameters
None
Description
Use the display arp timer aging command to display the aging time for dynamic ARP entries.
Related commands: arp timer aging.
Examples
# Display the aging time for dynamic ARP entries.
[Sysname] display arp timer aging
Current ARP aging time is 10 minute(s)
1.1.8 display arp vpn-instance
Syntax
display arp vpn-instance vpn-instance-name [ | { begin | exclude | include } text | count ]
View
Any view
Parameters
vpn-instance-name: Name of VPN instance, a case-insensitive string of 1 to 31 characters. With this argument specified, the ARP entries for a specific VPN instance are displayed.
|: Uses a regular expression to specify the ARP entries to be displayed.
begin: Displays the ARP entries from the first one that contains the specified string.
exclude: Displays the ARP entries that do not contain the specified string.
include: Displays the ARP entries that contain the specified string.
text: A character string.
count: Displays the number of ARP entries.
Description
Use the display arp vpn-instance command to display the ARP entries for a specified VPN instance.
Related commands: arp static and reset arp.
Examples
# Display ARP entries for the VPN instance named test.
<Sysname> display arp vpn-instance test
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Interface Aging Type
20.1.1.1 00e0-fc00-0001 N/A N/A N/A S
1.1.9 reset arp
Syntax
reset arp { all | dynamic | static | interface interface-type interface-number }
View
User view
Parameters
all: Clears all ARP entries.
dynamic: Clears all dynamic ARP entries.
static: Clears all static ARP entries.
interface interface-type interface-number: Clears the ARP entries for the port specified by the argument interface-type interface-number.
Description
Use the reset arp command to clear ARP entries from the ARP mapping table.
With interface interface-type interface-number specified, the command clears only dynamic ARP entries of the port.
Related commands: arp static, display arp.
Examples
# Clear all static ARP entries.
<Sysname> reset arp static
1.2 Gratuitous ARP Configuration Commands
1.2.1 gratuitous-arp-sending enable
Syntax
gratuitous-arp-sending enable
undo gratuitous-arp-sending enable
View
System view
Parameters
None
Description
Use the gratuitous-arp-sending enable command to enable a device to send gratuitous ARP packets when receiving ARP requests from another network segment.
Use the undo gratuitous-arp-sending enable command to restore the default.
By default, a device cannot send gratuitous ARP packets when receiving ARP requests from another network segment.
Examples
# Disable a device from sending gratuitous ARP packets.
<Sysname> system-view
[Sysname] undo gratuitous-arp-sending enable
1.2.2 gratuitous-arp-learning enable
Syntax
gratuitous-arp-learning enable
undo gratuitous-arp-learning enable
View
System view
Parameters
None
Description
Use the gratuitous-arp-learning enable command to enable the gratuitous ARP packet learning function.
Use the undo gratuitous-arp-learning enable command to disable the function.
By default, the function is disabled.
Examples
# Enable the gratuitous ARP packet learning function.
<Sysname> system-view
[Sysname] gratuitous-arp-learning enable
1.3 ARP Source Suppression Configuration Commands
1.3.1 arp source-suppression enable
Syntax
arp source-suppression enable
undo arp source-suppression enable
View
System view
Parameters
None
Description
Use the arp source-suppression enable command to enable the ARP source suppression function.
Use the undo arp source-suppression enable command to disable the function.
By default, the ARP source suppression function is disabled.
Related commands: display arp source-suppression.
Examples
# Enable the ARP source suppression function.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] arp source-suppression enable
1.3.2 arp source-suppression limit
Syntax
arp source-suppression limit limit-value
undo arp source-suppression limit
View
System view
Parameters
limit-value: Specifies the maximum number of packets with the same source IP address but unresolvable destination IP addresses that a port can receive in five seconds. It ranges from 2 to 1,024.
Description
Use the arp source-suppression limit command to set the maximum number of packets with the same source IP address but unresolvable destination IP addresses that a port can receive in five seconds.
Use the undo arp source-suppression limit command to restore the default value, which is 10.
Related commands: display arp source-suppression.
Examples
# Set to 100 the maximum number of packets with the same source address but unresolvable destination IP addresses that a port can receive in five seconds.
<Sysname> system-view
[Sysname] arp source-suppression limit 100
1.3.3 display arp source-suppression
Syntax
display arp source-suppression
View
Any view
Parameters
None
Description
Use the display arp source-suppression command to display information about the current ARP source suppression configuration.
Examples
# Display information about the current ARP source suppression configuration.
<Sysname> display arp source-suppression
ARP source suppression is enabled
Current suppression limit: 100
Current cache length: 16
Table 1-2 Description on fields of display arp source-suppression
Field |
Description |
ARP source suppression is enabled |
The ARP source suppression function is enabled |
Current suppression limit |
Maximum number of packets with the same source IP address but unresolvable IP addresses that the device can receive in five seconds |
Current cache length |
Size of cache used to record source suppression information |
Chapter 2 Proxy ARP Configuration Commands
2.1 Proxy ARP Configuration Commands
2.1.1 proxy-arp enable
Syntax
proxy-arp enable
undo proxy-arp enable
View
VLAN interface view
Parameters
None
Description
Use the proxy-arp enable command to enable proxy ARP.
Use the undo proxy-arp enable command to disable proxy ARP.
By default, proxy ARP is disabled.
Related commands: display proxy-arp.
Examples
# Enable proxy ARP on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] proxy-arp enable
2.1.2 local-proxy-arp enable
Syntax
local-proxy-arp enable
undo local-proxy-arp enable
View
VLAN interface view
Parameters
None
Description
Use the local-proxy-arp enable command to enable local proxy ARP.
Use the undo local-proxy-arp enable command to disable local proxy ARP.
By default, local proxy ARP is disabled.
Related commands: display local-proxy-arp.
Examples
# Enable local proxy ARP on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface Vlan-interface 2
[Sysname-Vlan-interface2] local-proxy-arp enable
2.1.3 display proxy-arp
Syntax
display proxy-arp [ interface Vlan-interface vlan-id ]
View
Any view
Parameters
interface Vlan-interface vlan-id: Displays the proxy ARP status of the VLAN interface specified by the argument vlan-id.
Description
Use the display proxy-arp command to display the proxy ARP status.
Related commands: proxy-arp enable.
Examples
# Display the proxy ARP status on VLAN-interface 1.
<Sysname> display proxy-arp interface vlan-interface 1
Interface Vlan-interface1
Proxy ARP status: disabled
2.1.4 display local-proxy-arp
Syntax
display local-proxy-arp [ interface Vlan-interface vlan-id ]
View
Any view
Parameters
interface vlan-interface vlan-id: Displays the local proxy ARP status of the VLAN interface specified by the argument vlan-id.
Description
Use the display local-proxy-arp command to display the status of the local proxy ARP.
Related commands: local-proxy-arp enable.
Examples
# Display the status of the local proxy ARP on VLAN-interface 2.
<Sysname> display local-proxy-arp interface vlan-interface 2
Interface Vlan-interface2
Local Proxy ARP status: enabled