- Table of Contents
-
- H3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)
- 00-1Cover
- 01-Login Command
- 02-Basic System Configuration and Maintenance Command
- 03-File System Management Command
- 04-VLAN Command
- 05-QinQ-BPDU TUNNEL Command
- 06-Port Correlation Configuration Command
- 07-MAC Address Table Management Command
- 08-MSTP Commands
- 09-IP Address and Performance Command
- 10-IPv6 Configuration Command
- 11-Routing Overview Command
- 12-IPv4 Routing Command
- 13-IPv6 Routing Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-Multicast Protocol Command
- 17-ARP Command
- 18-DHCP Command
- 19-ACL Command
- 20-QoS Command
- 21-Port Mirroring Command
- 22-Cluster Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-Information Center Command
- 27-NQA Command
- 28-SSH Terminal Service Command
- 29-UDP Helper Command
- 30-SSL-HTTPS Command
- 31-PKI Command
- 32-PoE-PoE Profile Command
- 33-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
17-ARP Command | 69 KB |
Table of Contents
Chapter 1 ARP Configuration Commands
1.1 ARP Configuration Commands
1.2 Gratuitous ARP Configuration Commands
1.2.1 gratuitous-arp-sending enable
1.2.2 gratuitous-arp-learning enable
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
Parameter
None
Description
Use the arp check enable command to enable ARP entry check, preventing the device from learning multicast MAC addresses.
Use the undo arp check enable command to disable the function, allowing the device to add multicast MAC addresses into the ARP mapping table.
By default, ARP entry check is enabled.
Example
# Enable the device to add multicast MAC addresses into the ARP mapping table.
<Sysname> system-view
[Sysname] undo arp check enable
1.1.2 arp max-learning-num
Syntax
arp max-learning-num number
undo arp max-learning-num
View
VLAN interface view
Parameter
number: Maximum number of dynamic ARP entries that an interface can learn,it ranges from 1 to 2048 and defaults to 2048.
Description
Use the arp max-learning-num command to set the maximum number of dynamic ARP entries that an interface can learn.
Use the undo arp max-learning-num command to restore the default.
Example
# 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 ]
undo arp ip-address
View
System view
Parameter
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: Specifies a port by its type and number.
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 to which an ARP entry of the device corresponds is deleted, the entry is deleted accordingly.
l The vlan-id argument is used to configure ARP entries on the device and must be the ID of an existing VLAN. In addition, the Ethernet interfaces following the argument must belong to that VLAN.
Related command: reset arp, and display arp.
Example
# Bind the IP address 202.38.10.2 to the MAC address 00e0-fc01-0000 for GE1/0/2 of VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 00e0-fc01-0000 10 GigabitEthernet1/0/2
# Bind the IP address 129.102.0.1 to the MAC address 00e0-fc01-0000.
[Sysname] arp static 129.102.0.1 00e0-fc01-0000
1.1.4 arp timer aging
Syntax
arp timer aging aging-time
undo arp timer aging
View
System view
Parameter
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 command: display arp timer aging.
Example
# 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 } [ [| { begin | exclude | include } text ] | count ]
View
Any view
Parameter
all: Displays all ARP entries.
dynamic: Displays dynamic ARP entries.
static: Displays static ARP entries.
vlan-id: Displays the ARP entries of the specified VLAN. The VLAN ID ranges from 1 to 4094.
interface-type interface-number: Displays the ARP entries of the specified port.
|: 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 command: arp static, and reset arp.
Example
# Display the detailed information of all ARP entries.
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
193.1.1.70 00e0-fe50-6503 100 GE1/0/1 14 D
192.168.0.115 000d-88f7-9f7d 1 GE1/0/4 18 D
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 |
ID of the VLAN to which an ARP entry belongs |
Interface |
Interface to which an ARP entry belongs |
Aging |
Aging time for a dynamic ARP entry in minutes |
Type |
ARP entry type: D stands for dynamic and S for static. |
# 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 [ | { begin | exclude | include } text ]
View
Any view
Parameter
ip-address: Displays the ARP entry for the specified IP address.
|: 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.
Example
# 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
Parameter
None
Description
Use the display arp timer aging command to display the aging time for dynamic ARP entries.
Related command: arp timer aging.
Example
# Display the aging time for dynamic ARP entries.
<Sysname> display arp timer aging
Current ARP aging time is 10 minute(s)
1.1.8 reset arp
Syntax
reset arp { all | dynamic | static | interface interface-type interface-number }
View
User view
Parameter
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 specified port.
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 entries for the port.
Related command: arp static and display arp.
Example
# 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
Parameter
None
Description
Use the gratuitous-arp-sending enable command to enable a device to send gratuitous ARP packets.
Use the undo gratuitous-arp-sending enable command to disable a device from sending gratuitous ARP packets.
By default, a device cannot send gratuitous ARP packets.
Related command: gratuitous-arp-learning enable.
Example
# 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
Parameter
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.
Example
# Enable the gratuitous ARP packet learning function.
<Sysname> system-view
[Sysname] gratuitous-arp-learning enable
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
Parameter
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, the function is disabled.
Related command: display proxy-arp.
Example
# 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
Parameter
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, the function is disabled.
Related command: display local-proxy-arp.
Example
# 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
Parameter
vlan-id: Specifies ID of VLAN.
Description
Use the display proxy-arp command to display the proxy ARP status.
Related command: proxy-arp enable.
Example
# Display the proxy ARP status on Vlan-interface2.
<Sysname> display proxy-arp interface Vlan-interface2
Interface Ethernet Vlan-interface2
Proxy ARP status: disabled
2.1.4 display local-proxy-arp
Syntax
display local-proxy-arp [ interface vlan-interface vlan-id ]
View
Any view
Parameter
vlan-id: Specifies ID of VLAN.
Description
Use the display local-proxy-arp command to display the status of the local proxy ARP.
By default, the function is disabled.
Related command: local-proxy-arp enable.
Example
# 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