- Table of Contents
- Related Documents
-
| Title | Size | Download |
|---|---|---|
| 01-ARP commands | 182.36 KB |
Contents
arp ip-unnumbered learning enable
gratuitous-arp-learning enable
ARP direct route advertisement commands
ARP commands
arp check enable
Use arp check enable to enable dynamic ARP entry check.
Use undo arp check enable to disable dynamic ARP entry check.
Syntax
arp check enable
undo arp check enable
Default
Dynamic ARP entry check is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Dynamic ARP entry check disables a device from supporting dynamic ARP entries with multicast MAC addresses. The device cannot learn dynamic ARP entries containing multicast MAC addresses. You cannot manually add static ARP entries that contain multicast MAC addresses.
When dynamic ARP entry check is disabled, ARP entries containing multicast MAC addresses are supported. The device can learn dynamic ARP entries containing multicast MAC addresses obtained from the ARP packets sourced from a unicast MAC address. You can also manually add static ARP entries containing multicast MAC addresses.
Examples
# Enable dynamic ARP entry check.
<Sysname> system-view
[Sysname] arp check enable
arp check log enable
Use arp check log enable to enable the ARP logging feature.
Use undo arp check log enable to disable the ARP logging feature.
Syntax
arp check log enable
undo arp check log enable
Default
ARP logging is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This feature enables a device to log ARP events when ARP cannot resolve IP addresses correctly. The device can log the following ARP events:
· On a proxy ARP-disabled interface, the target IP address of a received ARP packet is not one of the following IP addresses:
¡ The IP address of the receiving interface.
¡ The virtual IP address of the VRRP group.
· The sender IP address of a received ARP reply conflicts with one of the following IP addresses:
¡ The IP address of the receiving interface.
¡ The virtual IP address of the VRRP group.
The device sends ARP log messages to the information center. You can use the info-center source command to specify the log output rules for the information center. For more information about information center, see Network Management and Monitoring Configuration Guide.
The device can generate a large number of ARP logs. To conserve system resources, enable ARP logging only when you are auditing or troubleshooting ARP events.
Examples
# Enable ARP logging.
<Sysname> system-view
[Sysname] arp check log enable
arp ip-unnumbered learning enable
Use arp ip-unnumbered learning enable to enable an IP unnumbered interface to learn ARP entries for different subnets.
Use undo arp ip-unnumbered learning enable to disable an IP unnumbered interface from learning ARP entries for different subnets.
Syntax
arp ip-unnumbered learning enable
undo arp ip-unnumbered learning enable
Default
An IP unnumbered interface cannot learn ARP entries for different subnets.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
An IP unnumbered interface cannot learn the ARP entry of the peer device if the unnumbered interface and the peer device are on different subnets. To ensure communication between them, you can enable this feature on the IP unnumbered interface.
This feature takes effect only on an interface configured with the ip address unnumbered command. This interface is an unnumbered interface and borrows the IP address from another interface.
If an IP unnumbered interface is disabled from learning ARP entries for different subnets, existing ARP entries learned for different subnets are deleted after they age out.
Examples
# Configure GigabitEthernet 1/0/12 to borrow the IP address of GigabitEthernet 1/0/13, and enable GigabitEthernet 1/0/12 to learn ARP entries for different subnets.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] ip address unnumbered interface gigabitethernet 1/0/13
[Sysname-GigabitEthernet1/0/12] arp ip-unnumbered learning enable
Related commands
ip address unnumbered
arp max-learning-num
Use arp max-learning-num to set the dynamic ARP learning limit on an interface.
Use undo arp max-learning-num to restore the default.
Syntax
arp max-learning-num max-number
undo arp max-learning-num
Default
An interface can learn a maximum of 4096 dynamic ARP entries.
Views
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
Parameters
max-number: Specifies the maximum number of dynamic ARP entries that can be learned on an interface. The value range is 0 to 4096.
Usage guidelines
An interface can dynamically learn ARP entries. To prevent an interface from holding too many ARP entries, you can set the maximum number of dynamic ARP entries that the interface can learn. When the limit is reached, the interface stops learning ARP entries.
When the learning limit is set to 0, the interface is disabled from learning dynamic ARP entries.
Examples
# Specify GigabitEthernet 1/0/12 to learn a maximum of 10 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] arp max-learning-num 10
# Specify Layer 3 aggregate interface Route-Aggregation 1 to learn a maximum of 10 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface route-aggregation 1
[Sysname-Route-Aggregation1] arp max-learning-num 10
arp max-learning-number
Use arp max-learning-number to set the dynamic ARP learning limit on a device.
Use undo arp max-learning-number to restore the default.
Syntax
arp max-learning-number max-number slot slot-number
undo arp max-learning-number slot slot-number
Default
A device can learn a maximum of 4096 dynamic ARP entries.
Views
System view
Predefined user roles
network-admin
Parameters
max-number: Specifies the maximum number of dynamic ARP entries that can be learned on a device. The value range is 0 to 4096.
slot slot-number: Specifies an IRF member device by its member ID.
Usage guidelines
A device can dynamically learn ARP entries. To prevent a device from holding too many ARP entries, you can set the maximum number of dynamic ARP entries that the device can learn. When the limit is reached, the device stops learning ARP entries.
When the learning limit is set to 0, the device is disabled from learning dynamic ARP entries.
Examples
# Set the ARP learning limit to 64 for slot 1.
<Sysname> system-view
[Sysname] arp max-learning-number 64 slot 1
arp smooth
Use arp smooth to synchronize ARP entries from the active MPU to all other cards.
Syntax
arp smooth
Views
User view
Predefined user roles
network-admin
Usage guidelines
This command triggers a one-time operation to ensure that all cards on the device have the same ARP entries.
To synchronize ARP entries across all cards in a timely manner, you can schedule the device to automatically execute the arp smooth command. For information about scheduling a task, see Fundamentals Configuration Guide.
Examples
# Synchronize ARP entries from the active MPU to all other cards.
<Sysname> arp smooth
arp static
Use arp static to configure a static ARP entry.
Use undo arp to delete an ARP entry.
Syntax
arp static ip-address mac-address [ vpn-instance vpn-instance-name ]
undo arp ip-address [ vpn-instance-name ]
Default
No static ARP entries exist.
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: Specifies an IP address for the static ARP entry.
mac-address: Specifies a MAC address for the static ARP entry, in the format of H-H-H.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN instance to which the static ARP entry belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the static ARP entry belongs to the public network, do not specify this option.
Usage guidelines
A static ARP entry is manually configured and maintained. It does not age out and cannot be overwritten by any dynamic ARP entry.
A resolved static ARP entry becomes unresolved upon certain events, for example, when the resolved output interface goes down.
Examples
# Configure a static ARP entry that contains IP address 202.38.10.2 and MAC address 00e0-fc01-0000.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 00e0-fc01-0000
Related commands
display arp
reset arp
arp timer aging
Use arp timer aging to set the aging timer for dynamic ARP entries.
Use undo arp timer aging to restore the default.
Syntax
arp timer aging aging-time
undo arp timer aging
Default
The aging timer for dynamic ARP entries is 20 minutes.
Views
System view
Predefined user roles
network-admin
Parameters
aging-time: Specifies the aging timer for dynamic ARP entries, in the range of 1 to 1440 minutes.
Usage guidelines
Each dynamic ARP entry in the ARP table has a limited lifetime, called an aging timer. The aging timer of a dynamic ARP entry is reset each time the dynamic ARP entry is updated. Dynamic ARP entries that are not updated before their aging timers expire are deleted from the ARP table.
Set the aging timer for dynamic ARP entries as needed. For example, when you configure proxy ARP, set a short aging time so that invalid dynamic ARP entries can be deleted in a timely manner.
Examples
# Set the aging timer for dynamic ARP entries to 10 minutes.
<Sysname> system-view
Related commands
display arp timer aging
display arp
Use display arp to display ARP entries.
Syntax
display arp [ [ all | dynamic | static ] [ slot slot-number ] | interface interface-type interface-number ] [ count | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all: Displays all ARP entries.
dynamic: Displays dynamic ARP entries.
static: Displays static ARP entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays ARP entries on the master device.
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays ARP entries for all interfaces.
count: Displays the number of ARP entries.
verbose: Displays detailed information about ARP entries.
Usage guidelines
This command displays information about ARP entries, including the IP address, MAC address, output interface, entry type, and aging timer.
Examples
# Display all ARP entries.
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP address MAC address VLAN/VSI name Interface Aging Type
1.1.1.1 02e0-f102-0023 1 GE1/0/12 -- S
1.1.1.2 00e0-fc00-0001 12 GE1/0/13 16 D
# Display detailed information about all ARP entries.
<Sysname> display arp all verbose
IP address : 1.1.1.1 MAC address : 02e0-f102-0023
Type : Static Aging : --
Interface : GE1/0/12
SVLAN/CVLAN : 1000/1001
VPN instance : --
Link ID : --
VXLAN ID : --
VSI name : --
VSI interface : --
Nickname : 0x0000
IP address : 1.1.1.2 MAC address : 0015-e944-adc5
Type : Dynamic Aging : 16 min
Interface : GE1/0/13
SVLAN/CVLAN : --/--
VPN instance : --
Link ID : --
VXLAN ID : --
VSI name : --
VSI interface : --
Nickname : 0x0000
IP address : 1.1.1.5 MAC address : 0015-e944-adc5
Type : Dynamic Aging : 16 min
Interface : L3VE1000-L2VE1000.1
SVLAN/CVLAN : --/--
VPN instance : --
Link ID : --
VXLAN ID : --
VSI name : --
VSI interface : --
Nickname : 0x0000
# Display the number of all ARP entries.
<Sysname> display arp all count
Total number of entries : 4
Table 1 Command output
|
Field |
Description |
|
IP address |
IP address in an ARP entry. |
|
MAC address |
MAC address in an ARP entry. |
|
VLAN/VSI name |
This field is not supported in the current software version. ID of the VLAN or name of the VSI to which an ARP entry belongs. This field displays hyphens (--) in either of the following situations: · The ARP entry is an unresolved static ARP entry. · The output interface of the ARP entry does not belong to any VLAN or VSI. |
|
Interface |
This field is not supported in the current software version. Output interface in an ARP entry. This field displays hyphens (--) in either of the following situations: · The ARP entry is an unresolved static ARP entry. · The ARP entry is a multiport ARP entry and has
no output interface information. |
|
Aging |
Aging time for an ARP entry, in minutes. For a static ARP entry, this field always displays hyphens (--). The static ARP entry never ages out unless you delete it manually. For a dynamic ARP entry, this field displays hyphens (--) if the aging time is unknown. |
|
Type |
This field is not supported in the current software version. ARP entry type: · D—Dynamic. · S—Static. · O—OpenFlow. · R—Rule. · I—Invalid. |
|
SVLAN/CVLAN |
ID of the SVLAN or CVLAN to which the ARP entry belongs. This field displays hyphens (--) in either of the following situations: · The ARP entry is an unresolved static ARP entry. · The output interface of the ARP entry does not belong to any SVLAN or CVLAN. |
|
VPN instance |
Name of VPN instance. This field displays hyphens (--) if no VPN instance is configured for the ARP entry. |
|
Link ID |
Link ID in an ARP entry. This field displays hyphens (--) if the ARP entry does not belong to any VSI. |
|
VXLAN ID |
VXLAN ID (also called VNI). This field displays hyphens (--) if the ARP entry does not belong to any VXLAN. |
|
VSI name |
This field is not supported in the current software version. Name of the VSI to which the ARP entry belongs. This field displays hyphens (--) if the ARP entry does not belong to a specific VSI. |
|
VSI interface |
This field is not supported in the current software version. VSI interface specified for the VSI. This field displays hyphens (--) if no VSI interface is specified for the VSI. |
|
Nickname |
This field is not supported in the current software version. Nickname of the ARP entry. The nickname is a string of four hexadecimal numbers, for example, 012a. |
|
Total number of entries |
Number of ARP entries. |
Related commands
arp static
reset arp
display arp entry-limit
Use display arp entry-limit to display the maximum number of ARP entries that a device supports.
Syntax
display arp entry-limit
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the maximum number of ARP entries that the device supports.
<Sysname> display arp entry-limit
ARP entries: 4096
display arp ip-address
Use display arp ip-address to display the ARP entry for an IP address.
Syntax
display arp ip-address [ slot slot-number ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ip-address: Specifies an IP address.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays the ARP entry on the master device.
verbose: Displays the detailed information about the specified ARP entry.
Usage guidelines
The ARP entry information includes the IP address, MAC address, output interface, entry type, and aging timer.
Examples
# Display the ARP entry for the IP address 20.1.1.1.
<Sysname> display arp 20.1.1.1
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP Address MAC Address SVLAN/VSI Interface/Link ID Aging Type
20.1.1.1 00e0-fc00-0001 -- -- -- S
Related commands
arp static
reset arp
display arp timer aging
Use display arp timer aging to display the aging timer of dynamic ARP entries.
Syntax
display arp timer aging
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the aging timer of dynamic ARP entries.
<Sysname> display arp timer aging
Current ARP aging time is 20 minute(s)(default)
Related commands
arp timer aging
display arp vpn-instance
Use display arp vpn-instance to display the ARP entries for a VPN instance.
Syntax
display arp vpn-instance vpn-instance-name [ count ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
count: Displays the number of ARP entries.
Usage guidelines
This command displays information about ARP entries for a VPN instance, including the IP address, MAC address, VLAN ID, output interface, entry type, and aging timer.
Examples
# Display ARP entries for VPN instance test.
<Sysname> display arp vpn-instance test
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP Address MAC Address SVLAN/VSI Interface/Link ID Aging Type
20.1.1.1 00e0-fc00-0001 -- -- -- S
Related commands
arp static
reset arp
reset arp
Use reset arp to clear ARP entries from the ARP table.
Syntax
reset arp { all | dynamic | interface interface-type interface-number | multiport | slot slot-number | static }
Views
User view
Predefined user roles
network-admin
Parameters
all: Clears all ARP entries.
dynamic: Clears all dynamic ARP entries.
static: Clears all static ARP entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command clears ARP entries on the master device.
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command clears ARP entries for all interfaces.
Examples
# Clear all static ARP entries.
<Sysname> reset arp static
arp static
display arp
Gratuitous ARP commands
arp ip-conflict log prompt
Use arp ip-conflict log prompt to enable IP conflict notification.
Use undo arp ip-conflict log prompt to restore the default.
Syntax
arp ip-conflict log prompt
undo arp ip-conflict log prompt
Default
IP conflict notification is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
By default, the device performs the following operations if it is using the sender IP address of a received ARP packet:
· Sends a gratuitous ARP request.
· Displays an error message after the device receives an ARP reply about the conflict.
You can use this command to enable the device to display error messages before sending a gratuitous ARP reply or request for conflict confirmation.
Examples
# Enable IP conflict notification on the device.
<Sysname> system-view
[Sysname] arp ip-conflict log prompt
arp send-gratuitous-arp
Use arp send-gratuitous-arp to enable periodic sending of gratuitous ARP packets on an interface.
Use undo arp send-gratuitous-arp to disable the interface from periodically sending gratuitous ARP packets.
Syntax
arp send-gratuitous-arp [ interval interval ]
undo arp send-gratuitous-arp
Default
Periodic sending of gratuitous ARP packets is disabled.
Views
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
Parameters
interval interval: Specifies the sending interval in the range of 200 to 200000 milliseconds. The default value is 2000 milliseconds.
Usage guidelines
This feature takes effect on an interface only when the interface has an IP address and the data link layer state of the interface is up.
This feature can send gratuitous ARP requests only for a VRRP virtual IP address, or the sending interface's primary IP address or manually configured secondary IP address. The primary IP address can be configured manually or automatically, whereas the secondary IP address must be configured manually.
If you change the sending interval for gratuitous ARP packets, the configuration takes effect at the next sending interval.
The sending interval for gratuitous ARP packets might be much longer than the set interval when any of the following conditions exist:
· This feature is enabled on multiple interfaces.
· Each interface is configured with multiple secondary IP addresses.
· A small sending interval is configured in the preceding cases.
Examples
# Enable GigabitEthernet 1/0/12 to send gratuitous ARP packets every 300 milliseconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] arp send-gratuitous-arp interval 300
gratuitous-arp-learning enable
Use gratuitous-arp-learning enable to enable learning of gratuitous ARP packets.
Use undo gratuitous-arp-learning enable to disable learning of gratuitous ARP packets.
Syntax
gratuitous-arp-learning enable
undo gratuitous-arp-learning enable
Default
Learning of gratuitous ARP packets is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The learning of gratuitous ARP packets feature allows a device to maintain its ARP table by creating or updating ARP entries based on received gratuitous ARP packets.
When this feature is disabled, the device uses received gratuitous ARP packets to update existing ARP entries only. ARP entries are not created based on the received gratuitous ARP packets, which saves ARP table space.
Examples
# Enable learning of gratuitous ARP packets.
<Sysname> system-view
[Sysname] gratuitous-arp-learning enable
gratuitous-arp-sending enable
Use gratuitous-arp-sending enable to enable sending gratuitous ARP packets upon receiving ARP requests whose sender IP address is on a different subnet.
Use undo gratuitous-arp-sending enable to disable sending gratuitous ARP packets upon receiving ARP requests whose sender IP address is on a different subnet.
Syntax
gratuitous-arp-sending enable
undo gratuitous-arp-sending enable
Default
A device does not send gratuitous ARP packets when it receives ARP requests whose sender IP address is on a different subnet.
Views
System view
Predefined user roles
network-admin
Examples
# Disable a device from sending gratuitous ARP packets upon receiving ARP requests whose sender IP address is on a different subnet.
<Sysname> system-view
[Sysname] undo gratuitous-arp-sending enable
Proxy ARP commands
display local-proxy-arp
Use display local-proxy-arp to display the local proxy ARP status.
Syntax
display local-proxy-arp [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the local proxy ARP status for all interfaces.
Usage guidelines
You can use this command to check whether local proxy ARP is enabled or disabled.
Examples
# Display the local proxy ARP status for GigabitEthernet 1/0/12.
<Sysname> display local-proxy-arp interface gigabitethernet 1/0/12
Interface GigabitEthernet1/0/12
Local Proxy ARP status: enabled
Related commands
local-proxy-arp enable
display proxy-arp
Use display proxy-arp to display the proxy ARP status.
Syntax
display proxy-arp [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the proxy ARP status for all interfaces.
Usage guidelines
You can use this command to check whether proxy ARP is enabled or disabled.
Examples
# Display the proxy ARP status on GigabitEthernet 1/0/12.
<Sysname> display proxy-arp interface gigabitethernet 1/0/12
Interface GigabitEthernet1/0/12
Proxy ARP status: disabled
Related commands
proxy-arp enable
local-proxy-arp enable
Use local-proxy-arp enable to enable local proxy ARP.
Use undo local-proxy-arp enable to disable local proxy ARP.
Syntax
local-proxy-arp enable [ ip-range start-ip-address to end-ip-address ]
undo local-proxy-arp enable
Default
Local proxy ARP is disabled.
Views
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
Parameters
ip-range start-ip-address to end-ip-address: Specifies the IP address range for which local proxy ARP is enabled. The start IP address must be lower than or equal to the end IP address.
Usage guidelines
Proxy ARP enables a device on a network to answer ARP requests for an IP address not on that network.
With proxy ARP, hosts in different broadcast domains can communicate with each other as they do on the same network. To allow communication between hosts that connect to the same Layer 3 interface and reside in different broadcast domains, enable local proxy ARP.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Enable local proxy ARP on GigabitEthernet 1/0/12.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] local-proxy-arp enable
# Enable local proxy ARP on GigabitEthernet 1/0/12 for an IP address range.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] local-proxy-arp enable ip-range 1.1.1.1 to 1.1.1.20
Related commands
display local-proxy-arp
proxy-arp enable
Use proxy-arp enable to enable common proxy ARP.
Use undo proxy-arp enable to disable common proxy ARP.
Syntax
proxy-arp enable
undo proxy-arp enable
Default
Common proxy ARP is disabled.
Views
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
Usage guidelines
Proxy ARP enables a device on a network to answer ARP requests for an IP address not on that network.
With proxy ARP, hosts in different broadcast domains can communicate with each other as they do on the same network. To allow communication between hosts that connect to different Layer 3 interfaces or Layer 3 subinterfaces and reside in different broadcast domains, enable common proxy ARP.
Examples
# Enable common proxy ARP on GigabitEthernet 1/0/12.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] proxy-arp enable
Related commands
display proxy-arp
ARP suppression commands
arp suppression enable
Use arp suppression enable to enable ARP suppression.
Use undo arp suppression enable to disable ARP suppression.
Syntax
arp suppression enable
undo arp suppression enable
Default
ARP suppression is disabled.
Views
Cross-connect view
VSI view
Predefined user roles
network-admin
Usage guidelines
You must enable L2VPN before you execute this command.
Examples
# Enable ARP suppression for cross-connect 2 in cross-connect group 1.
<Sysname> system-view
[Sysname] xconnect-group 1
[Sysname-xcg-1] connection 2
[Sysname-xcg-1-2] arp suppression enable
# Enable ARP suppression for VSI vsi1.
<Sysname> system-view
[Sysname] vsi vsi1
[Sysname-vsi-vsi1] arp suppression enable
Related commands
arp suppression push interval
Use arp suppression push interval to enable the ARP suppression push feature and set a push interval.
Use undo arp suppression push interval to disable the ARP suppression push feature.
Syntax
arp suppression push interval interval
undo arp suppression push interval
Default
The ARP suppression push feature is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Specifies a push interval for ARP suppression, in the range of 1 to 1440 minutes.
Usage guidelines
The ARP suppression push feature regularly pushes ARP suppression entries by broadcasting gratuitous ARP packets.
Examples
# Configure the device to push ARP suppression entries every 2 minutes.
<Sysname> system-view
[Sysname] arp suppression push interval 2
Related commands
arp suppression enable
display arp suppression
Use display arp suppression to display ARP suppression entries.
Syntax
display arp suppression { vsi [ name vsi-name ] | xconnect-group [ name group-name ] } [ slot slot-number ] [ count ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi: Display ARP suppression entries for VSIs.
name vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters excluding hyphens (-). If you do not specify a VSI, this command display ARP suppression entries for all VSIs.
xconnect-group: Display ARP suppression entries for cross-connect groups.
name group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters excluding hyphens (-). If you do not specify a cross-connect group, this command display ARP suppression entries for all cross-connect groups.
count: Displays the total number of ARP suppression entries.
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays ARP suppression entries on the master device.
Examples
# Display ARP suppression entries for all cross-connect groups.
<Sysname> display arp suppression xconnect-group
IP address MAC address Xconnect-group Connection Aging
100.1.1.1 000c-29fe-5a8f vpna svc 12
100.1.1.2 000c-29fe-5aa3 vpna svc 25
# Display the total number of ARP suppression entries for all cross-connect groups.
<Sysname> display arp suppression xconnect-group count
Total entries: 2
Table 2 Command output
|
Field |
Description |
|
IP address |
IP address in the ARP suppression entry. |
|
MAC address |
MAC address in the ARP suppression entry. |
|
Xconnect-group |
Name of the cross-connect group to which the ARP suppression entry belongs. |
|
Connection |
Name of the cross-connect to which the ARP suppression entry belongs. |
|
Aging |
Aging time of the ARP suppression entry, in minutes. |
# Display ARP suppression entries for all VSIs.
IP address MAC address Vsi Name Link ID Aging
1.1.1.2 000f-e201-0101 vsi1 0x70000 14
1.1.1.3 000f-e201-0202 vsi1 0x80000 18
1.1.1.4 000f-e201-0203 vsi2 0x90000 10
# Display the total number of ARP suppression entries for all VSIs.
<Sysname> display arp suppression vsi count
Total entries: 3
Table 3 Command output
|
Field |
Description |
|
IP address |
IP address in the ARP suppression entry. |
|
MAC address |
MAC address in the ARP suppression entry. |
|
Link ID |
Link ID in the ARP suppression entry. A link ID uniquely identifies an AC or VXLAN tunnel in a VSI. |
|
Aging |
Aging time of the ARP suppression entry, in minutes. |
Related commands
reset arp suppression
reset arp suppression
Use reset arp suppression to clear ARP suppression entries.
Syntax
reset arp suppression [ vsi [ name vsi-name ] | xconnect-group [ name group-name ] ]
Views
User view
Predefined user roles
network-admin
Parameters
vsi: Clears ARP suppression entries for VSIs.
name vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters excluding hyphens (-). If you do not specify a VSI, this command clears ARP suppression entries for all VSIs.
xconnect-group: Clears ARP suppression entries for cross-connect groups.
name group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters excluding hyphens (-). If you do not specify a cross-connect group, this command clears ARP suppression entries for all cross-connect groups.
Examples
# Clear ARP suppression entries.
<Sysname> reset arp suppression
Related commands
display arp suppression xconnect-group
ARP direct route advertisement commands
arp route-direct advertise
Use arp route-direct advertise to enable ARP direct route advertisement.
Use undo arp route-direct advertise to disable ARP direct route advertisement.
Syntax
arp route-direct advertise
undo arp route-direct advertise
Default
ARP direct route advertisement is disabled.
Views
System view
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
VPN instance view
Predefined user roles
network-admin
Usage guidelines
You can enable ARP direct route advertisement in different views.
· In system view, the feature takes effect on all interfaces on the public network.
· In interface view, the feature takes effect on the specified interface.
· In VPN instance view, the feature takes effect on all interfaces that belong to the VPN instance.
To disable ARP direct route advertisement on an interface, you must also disable ARP direct route advertisement in the VPN instance or the public network to which the interface belongs.
Examples
# Enable ARP direct route advertisement in system view.
<Sysname> system-view
[Sysname] arp route-direct advertise
# Enable ARP direct route advertisement on GigabitEthernet 1/0/12.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/12
[Sysname-GigabitEthernet1/0/12] arp route-direct advertise
# Enable ARP direct route advertisement in VPN instance vpna.
<Sysname> system-view
[Sysname] ip vpn-instance vpna
[Sysname-vpn-instance-vpna] arp route-direct advertise
