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
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
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
[Sysname] arp timer aging 10
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.
<Sysname> display arp all
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
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
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
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
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