- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
- 00-1Cover
- 01-Login Command
- 02-VLAN Command
- 03-IP Address and Performance Command
- 04-QinQ-BPDU Tunnel Command
- 05-Port Correlation Configuration Command
- 06-MAC Address Table Management Command
- 07-MAC-IP-Port Binding Command
- 08-MSTP Command
- 09-Routing Overview Command
- 10-IPv4 Routing Command
- 11-IPv6 Routing Command
- 12-IPv6 Configuration Command
- 13-Multicast Protocol Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-ARP Command
- 17-DHCP Command
- 18-ACL Command
- 19-QoS Command
- 20-Port Mirroring Command
- 21-Cluster Management Command
- 22-UDP Helper Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-File System Management Command
- 27-Information Center Command
- 28-System Maintenance and Debugging Command
- 29-NQA Command
- 30-VRRP Command
- 31-SSH Command
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
16-ARP Command | 83 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
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
Parameter
None
Description
Use the arp check enable command to enable ARP entry check, inhibiting the device from learning multicast MAC addresses.
Use the undo arp check enable command to disable the function, allowing the device to learn multicast MAC addresses.
By default, ARP entry check is enabled.
Example
# Configure the switch to learn multicast MAC addresses.
<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 the interface can learn. This argument ranges from 1 to 2,560.
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.
By default, an interface can learn up to 2,560 dynamic ARP entries.
Example
# Allow 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: Type and number of a port.
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 valid as long as the device works normally. However, when the VLAN or VLAN interface corresponding to an ARP entry is deleted, the entry is also deleted.
l When you configure an ARP entry with the vlan-id argument, the VLAN ID you specify must be the ID of an existing VLAN with VLAN interface already configured, and the Ethernet port following the argument must belong to the VLAN.
Related command: reset arp, display arp.
Example
# Configure a static ARP entry, with the IP address being 202.38.10.2, the corresponding MAC address being 000f-e201-0000, and the outbound port being Ethernet1/0/3 in VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 000f-e201-0000 10 ethernet1/0/3
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: Type and number of a port, the ARP entries of the port will be displayed.
|: 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, reset arp.
Example
# Display the 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 Eth1/0/1 14 D
192.168.0.115 000d-88f7-9f7d 1 Eth1/0/4 18 D
192.168.0.39 0012-a990-2241 1 Eth1/0/4 20 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 |
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. |
# 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)
The above output information indicates that the aging time of dynamic ARP entries is 10 minutes.
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 a 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 of the specified port.
Related command: arp static and display arp.
Example
# Clear all static ARP entries.
<Sysname> reset arp static
% Info: This will delete all static entries. Continue? [Y/N] y
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 the device to send gratuitous ARP packets.
Use the undo gratuitous-arp-sending enable command to disable the device from sending gratuitous ARP packets.
By default, the device cannot send gratuitous ARP packets.
Related command: gratuitous-arp-learning enable.
Example
# Disable the 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 restore the default configuration.
By default, the function is disabled.
Example
# 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
Parameter
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 command: display arp source-suppression.
Example
# Enable the ARP source suppression function.
<Sysname> system-view
[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
Parameter
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 command: display arp source-suppression.
Example
# Set 100 as 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
Parameter
None
Description
Use the display arp source-suppression command to display information about the ARP source suppression configuration.
Example
# Display information about the ARP source suppression configuration.
<Sysname> display arp source-suppression
ARP source suppression is enabled
Current suppression limit: 10
Current cache length: 16
Table 1-2 Description on fields of the display arp source-suppression command
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 a port allows to receive in five seconds |
Current cache length |
Number of source IP addresses from which packets are to be suppressed |
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, proxy ARP 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, local proxy ARP 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: VLAN interface number.
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-interface 2.
<Sysname> display proxy-arp interface Vlan-interface 2
Interface 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: VLAN interface number.
Description
Use the display local-proxy-arp command to display the status of local proxy ARP.
Related command: local-proxy-arp enable.
Example
# Display the status of local proxy ARP on VLAN-interface 2.
<Sysname> display local-proxy-arp interface vlan-interface 2
Interface Vlan-interface2
Local Proxy ARP status: enabled