- Table of Contents
-
- H3C WX6103 Access Controller Switch Interface Board Command Reference-6W102
- 00-Preface
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and IP Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-Port Security Commands
- 09-MSTP Commands
- 10-IP Routing-GR Overview Commands
- 11-IPv4 Routing Commands
- 12-IP Source Guard Commands
- 13-DLDP Commands
- 14-Multicast Commands
- 15-LLDP Commands
- 16-sFlow Commands
- 17-ARP Commands
- 18-DHCP Commands
- 19-ACL Commands
- 20-QoS Commands
- 21-Port Mirroring Commands
- 22-UDP Helper Commands
- 23-SNMP-RMON Commands
- 24-NTP Commands
- 25-DNS Commands
- 26-File System Management Commands
- 27-Information Center Commands
- 28-System Maintaining and Debugging Commands
- 29-NQA Commands
- 30-SSH Commands
- 31-SSL-HTTPS Commands
- 32-PKI Commands
- 33-Track Commands
- 34-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
17-ARP Commands | 56.18 KB |
Table of Contents
Gratuitous ARP Configuration Commands
gratuitous-arp-learning enable
2 Proxy ARP Configuration Commands
Proxy ARP Configuration Commands
The term switch in this document refers to a switch in a generic sense or an access controller configured with the switching function unless otherwise specified.
ARP Configuration Commands
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 on the switch.
<Sysname> system-view
[Sysname] arp check enable
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 2048.
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,048 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
arp static
Syntax
arp static ip-address mac-address [ vlan-id interface-type interface-number ]
undo arp ip-address
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.
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.
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. The VLAN interface of the VLAN must have been created.
Related commands: reset arp, display arp.
Examples
# Configure a static ARP entry, with the IP address being 202.38.10.2, the MAC address being 000f-e201-0000, and the outbound port being GigabitEthernet 0/0/10 of VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 000f-e201-0000 10 gigabitethernet 0/0/10
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, in the range 1 to 1,440.
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.
By default, the aging time for dynamic ARP entries is 20 minutes.
Related commands: display arp timer aging.
Examples
# Set aging time for dynamic ARP entries to 10 minutes.
<Sysname> system-view
display arp
Syntax
display arp { { all | dynamic | static } | vlan vlan-id | interface interface-type interface-number } [ | { begin | exclude | include } string | 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.
|: Uses a regular expression to specify the ARP entries to be displayed. For detailed information about regular expression, refer to the part discussing CLI display in System Maintaining and Debugging in H3C WX6103 Access Controller Switch Interface Board Configuration Guide
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.
string: A case-sensitive string for matching, consisting of 1 to 256 characters.
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 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 GE0/0/1 14 D
192.168.0.115 000d-88f7-9f7d 1 GE0/0/2 18 D
192.168.0.39 0012-a990-2241 1 GE0/0/3 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
display arp ip-address
Syntax
display arp ip-address [ | { begin | exclude | include } string ]
View
Any view
Parameters
ip-address: Displays the ARP entry for the specified IP address.
|: Uses a regular expression to specify the ARP entries to be displayed. For detailed information about regular expression, refer to the part discussing CLI display in System Maintaining and Debugging in H3C WX6103 Access Controller Switch Interface Board Configuration Guide.
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.
string: A case-sensitive string for matching, consisting of 1 to 256 characters.
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
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)
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
Gratuitous ARP Configuration Commands
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 enabled.
Examples
# Disable the gratuitous ARP packet learning function.
<Sysname> system-view
[Sysname] undo gratuitous-arp-learning enable
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
Proxy ARP Configuration Commands
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
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
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
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