Aruba R9Y16A, R9Y12A, R9Y13A, R9Y17A, R9Y18A, R9Y19A Reference guide

  • I've analyzed the Hewlett Packard Enterprise Comware 5960 Switch Series Layer 3 - IP Services Command Reference document. It provides a detailed guide on various aspects of Layer 3 networking, focusing on IP services. This includes ARP configurations, DHCP server and relay agent commands, both IP and IPv6 addressing. I can help you understand the configuration commands and use cases of this device.
  • How to enable ARP logging?
    How do I display the current ARP table?
    How can I configure a static ARP entry?
    How do I enable DHCP server functionality?
    How can I configure an IP address on an interface?
    How to display IPv6 interface information?
HPE Networking Comware 5960 Switch Series
Layer 3—IP Services Command Reference
Software
version: Release 9126P01 and later
Document version: 6W100-20230428
© Copyright 2023 Hewlett Packard Enterprise Development LP
The information contained herein is subject to change without notice. The only warranties for Hewlett Packard
Enterprise products and services are set forth in the express warranty statements accompanying such
products and services. Nothing herein should be construed as constituting an additional warranty. Hewlett
Packard Enterprise shall not be liable for technical or editorial errors or omissions contained herein.
Confidential computer software. Valid license from Hewlett Packard Enterprise required for possession, use, or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor’s
standard commercial license.
Links to third-party websites take you outside the Hewlett Packard Enterprise website. Hewlett Packard
Enterprise has no control over and is not responsible for information outside the Hewlett Packard Enterprise
website.
Acknowledgments
Intel®, Itanium®, Pentium®, Intel Inside®, and the Intel Inside logo are trademarks of Intel Corporation in the
United States and other countries.
Microsoft® and Windows® are either registered trademarks or trademarks of Microsoft Corporation in the
United States and/or other countries.
Adobe® and Acrobat® are trademarks of Adobe Systems Incorporated.
Java and Oracle are registered trademarks of Oracle and/or its affiliates.
UNIX® is a registered trademark of The Open Group.
i
Contents
ARP commands ····························································································· 1
arp check log enable ·································································································································· 1
arp mac-interface-consistency check enable ····························································································· 1
arp max-learning-num ································································································································ 2
arp max-learning-number ··························································································································· 3
arp mode uni ·············································································································································· 4
arp static ····················································································································································· 4
arp timer aging ··········································································································································· 6
arp timer aging probe-count ······················································································································· 7
arp timer aging probe-interval ···················································································································· 8
arp user-ip-conflict record enable··············································································································· 9
arp user-move record enable ··················································································································· 10
display arp ················································································································································ 10
display arp entry-limit ······························································································································· 13
display arp ip-address ······························································································································ 13
display arp timer aging ····························································································································· 14
display arp usage ····································································································································· 14
display arp user-ip-conflict record ············································································································ 15
display arp user-move record ··················································································································· 16
display arp vpn-instance ·························································································································· 18
reset arp ··················································································································································· 18
Gratuitous ARP commands ········································································· 20
arp ip-conflict log prompt ·························································································································· 20
arp send-gratuitous-arp ···························································································································· 20
gratuitous-arp mac-change retransmit ····································································································· 21
gratuitous-arp-learning enable ················································································································· 22
gratuitous-arp-sending enable ················································································································· 23
Proxy ARP commands ················································································· 24
display local-proxy-arp ····························································································································· 24
display proxy-arp ······································································································································ 24
display proxy-arp statistics ······················································································································· 25
local-proxy-arp enable ······························································································································ 26
proxy-arp enable ······································································································································ 27
IP addressing commands ············································································ 28
display ip interface ··································································································································· 28
display ip interface brief ··························································································································· 30
ip address ················································································································································· 32
DHCP commands ························································································ 34
Common DHCP commands ····························································································································· 34
dhcp client-detect ····································································································································· 34
dhcp dscp ················································································································································· 34
dhcp enable ·············································································································································· 35
dhcp select ··············································································································································· 35
DHCP relay agent commands ························································································································· 36
dhcp relay always-unicast ························································································································ 36
dhcp relay check mac-address ················································································································ 37
dhcp relay check mac-address aging-time······························································································· 37
dhcp relay client-information record ········································································································· 38
dhcp relay client-information refresh ········································································································ 39
dhcp relay client-information refresh enable ···························································································· 39
dhcp relay dhcp-server timeout ················································································································ 40
dhcp relay forward reply by-option82 ······································································································· 41
dhcp relay gateway ·································································································································· 42
ii
dhcp relay information circuit-id ··············································································································· 42
dhcp relay information enable ·················································································································· 44
dhcp relay information remote-id ·············································································································· 45
dhcp relay information link-selection ········································································································ 46
dhcp relay information strategy ················································································································ 47
dhcp relay insert option60 ························································································································ 48
dhcp relay master-server switch-delay ····································································································· 49
dhcp relay release ip ································································································································ 50
dhcp relay server-address ························································································································ 50
dhcp relay server-address algorithm ········································································································ 51
dhcp relay source-address ······················································································································· 52
dhcp-server timeout ································································································································· 54
dhcp smart-relay enable ··························································································································· 55
display dhcp relay check mac-address ···································································································· 55
display dhcp relay client-information ········································································································ 56
display dhcp relay information ·················································································································· 58
display dhcp relay server-address ··········································································································· 59
display dhcp relay statistics ······················································································································ 60
gateway-list ·············································································································································· 61
master-server switch-delay ······················································································································ 62
remote-server ··········································································································································· 63
remote-server algorithm ··························································································································· 63
reset dhcp relay client-information ··········································································································· 64
reset dhcp relay statistics ························································································································· 65
DHCP client commands ··································································································································· 65
dhcp client dad enable ····························································································································· 65
dhcp client dscp ······································································································································· 66
dhcp client identifier ································································································································· 66
display dhcp client ···································································································································· 67
ip address dhcp-alloc ······························································································································· 70
BOOTP client commands································································································································· 70
display bootp client ··································································································································· 70
ip address bootp-alloc ······························································································································ 71
Basic IP forwarding commands ··································································· 73
display fib ················································································································································· 73
forwarding split-horizon ···························································································································· 75
IP performance optimization commands ······················································ 76
display icmp statistics ······························································································································· 76
display ip statistics ··································································································································· 77
display rawip ············································································································································ 79
display rawip verbose ······························································································································· 80
display tcp ················································································································································ 83
display tcp verbose ·································································································································· 84
display udp ··············································································································································· 89
display udp socket-loadbalance ··············································································································· 89
display udp socket-loadbalance verbose ································································································· 90
display udp statistics ································································································································ 92
display udp verbose ································································································································· 93
ip forward-broadcast ································································································································ 96
ip icmp error-interval ································································································································ 97
ip icmp fragment discarding ····················································································································· 98
ip icmp source ·········································································································································· 98
ip mtu ······················································································································································· 99
ip redirects enable ·································································································································· 100
ip ttl-expires enable ································································································································ 100
ip unreachables enable ·························································································································· 101
ip virtual-reassembly enable ·················································································································· 102
reset ip statistics ····································································································································· 103
reset udp statistics ································································································································· 104
statistics l3-packet enable ······················································································································ 104
iii
tcp mss ··················································································································································· 105
tcp path-mtu-discovery ··························································································································· 106
tcp syn-cookie enable ···························································································································· 106
tcp timer fin-timeout ································································································································ 107
tcp timer syn-timeout ······························································································································ 108
tcp window ············································································································································· 108
IPv6 basics commands ·············································································· 110
display ipv6 fib ········································································································································ 110
display ipv6 icmp statistics ····················································································································· 111
display ipv6 interface ······························································································································ 113
display ipv6 interface prefix ···················································································································· 117
display ipv6 prefix ··································································································································· 118
display ipv6 rawip ··································································································································· 119
display ipv6 rawip verbose ····················································································································· 120
display ipv6 statistics ······························································································································ 124
display ipv6 tcp ······································································································································· 127
display ipv6 tcp verbose ························································································································· 128
display ipv6 udp ····································································································································· 134
display ipv6 udp verbose ························································································································ 135
ipv6 address ··········································································································································· 139
ipv6 address anycast ····························································································································· 140
ipv6 address auto ··································································································································· 140
ipv6 address auto link-local ···················································································································· 141
ipv6 address eui-64 ································································································································ 142
ipv6 address link-local ···························································································································· 143
ipv6 address prefix-number ···················································································································· 144
ipv6 hop-limit ·········································································································································· 145
ipv6 hoplimit-expires enable ··················································································································· 146
ipv6 icmpv6 error-interval ······················································································································· 146
ipv6 icmpv6 multicast-echo-reply enable ······························································································· 147
ipv6 icmpv6 source ································································································································ 148
ipv6 prefer temporary-address ··············································································································· 148
ipv6 prefix ··············································································································································· 149
ipv6 redirects enable ······························································································································ 150
ipv6 temporary-address ························································································································· 150
ipv6 unreachables enable ······················································································································ 152
reset ipv6 statistics ································································································································· 152
IPv6 neighbor discovery commands ·························································· 154
display ipv6 nd proxy statistics ··············································································································· 154
display ipv6 nd ra prefix ························································································································· 154
display ipv6 nd user-ip-conflict record ···································································································· 155
display ipv6 nd user-move record ·········································································································· 156
display ipv6 neighbors ···························································································································· 158
display ipv6 neighbors count ·················································································································· 161
display ipv6 neighbors entry-limit ··········································································································· 161
display ipv6 neighbors statistics ············································································································· 162
display ipv6 neighbors vpn-instance ······································································································ 163
ipv6 nd autoconfig managed-address-flag ····························································································· 164
ipv6 nd autoconfig other-flag ·················································································································· 165
ipv6 nd dad attempts ······························································································································ 166
ipv6 nd ip-unique learning enable ·········································································································· 166
ipv6 nd ns retrans-timer ························································································································· 167
ipv6 nd nud reachable-time ···················································································································· 168
ipv6 nd online-offline-log enable ············································································································ 168
ipv6 nd ra boot-file-url ···························································································································· 169
ipv6 nd ra dns search-list ······················································································································· 170
ipv6 nd ra dns search-list suppress········································································································ 171
ipv6 nd ra dns server ······························································································································ 172
ipv6 nd ra dns server suppress ·············································································································· 173
ipv6 nd ra halt ········································································································································· 174
iv
ipv6 nd ra hop-limit unspecified ·············································································································· 175
ipv6 nd ra interval ··································································································································· 175
ipv6 nd ra no-advlinkmtu ························································································································ 176
ipv6 nd ra prefix ······································································································································ 177
ipv6 nd ra prefix default ·························································································································· 178
ipv6 nd ra router-lifetime ························································································································ 179
ipv6 nd route-direct advertise ················································································································· 180
ipv6 nd route-direct advertise delay ······································································································· 180
ipv6 nd route-direct prefix convert-length ······························································································· 181
ipv6 nd router-preference ······················································································································· 182
ipv6 nd unsolicited-na-learning enable··································································································· 183
ipv6 nd user-ip-conflict record enable ···································································································· 184
ipv6 nd user-move record enable··········································································································· 185
ipv6 neighbor ·········································································································································· 185
ipv6 neighbor link-local minimize ··········································································································· 187
ipv6 neighbor stale-aging ······················································································································· 187
ipv6 neighbor timer stale-aging ·············································································································· 188
ipv6 neighbors max-learning-num ·········································································································· 189
local-proxy-nd enable ····························································································································· 189
proxy-nd enable ····································································································································· 190
proxy-nd span-segment enable·············································································································· 190
reset ipv6 nd ra prefix ····························································································································· 191
reset ipv6 neighbors ······························································································································· 192
DHCPv6 commands ·················································································· 193
Common DHCPv6 commands ······················································································································· 193
display ipv6 dhcp duid ···························································································································· 193
ipv6 dhcp advertise pd-route ·················································································································· 193
ipv6 dhcp dscp ······································································································································· 194
ipv6 dhcp select ····································································································································· 194
DHCPv6 relay agent commands ···················································································································· 195
display ipv6 dhcp relay client-information address················································································· 195
display ipv6 dhcp relay client-information pd ························································································· 197
display ipv6 dhcp relay drni-status ········································································································· 199
display ipv6 dhcp relay server-address ·································································································· 200
display ipv6 dhcp relay statistics ············································································································ 201
gateway-list ············································································································································ 203
ipv6 dhcp client-detect ··························································································································· 204
ipv6 dhcp relay client-information record ······························································································· 204
ipv6 dhcp relay client-link-address enable ····························································································· 205
ipv6 dhcp relay gateway ························································································································· 206
ipv6 dhcp relay interface-id ···················································································································· 206
ipv6 dhcp relay release-agent ················································································································ 207
ipv6 dhcp relay server-address ·············································································································· 208
ipv6 dhcp relay source-address ············································································································· 209
remote-server ········································································································································· 209
reset ipv6 dhcp relay client-information address ···················································································· 210
reset ipv6 dhcp relay client-information pd ····························································································· 211
reset ipv6 dhcp relay statistics ··············································································································· 212
DHCPv6 client commands ····························································································································· 212
display ipv6 dhcp client ·························································································································· 212
display ipv6 dhcp client statistics ··········································································································· 215
ipv6 address dhcp-alloc ························································································································· 216
ipv6 dhcp client dscp ······························································································································ 217
ipv6 dhcp client duid ······························································································································· 217
ipv6 dhcp client pd ································································································································· 218
ipv6 dhcp client stateful ·························································································································· 219
ipv6 dhcp client stateless enable ··········································································································· 220
reset ipv6 dhcp client statistics ··············································································································· 221
Document conventions and icons ······························································ 222
Conventions ··················································································································································· 222
v
Network topology icons ·································································································································· 223
Support and other resources ····································································· 224
Accessing Hewlett Packard Enterprise Support····························································································· 224
Accessing updates ········································································································································· 224
Websites ················································································································································ 225
Customer self repair ······························································································································· 225
Remote support ······································································································································ 225
Documentation feedback ······················································································································· 225
Index ·········································································································· 227
1
ARP commands
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 log information helps administrators locate and solve problems. 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 the IP
address of the receiving interface.
•
The sender IP address of a received ARP reply conflicts with the IP address of the receiving
interface.
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 System Management 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 mac-interface-consistency check enable
Use arp mac-interface-consistency check enable to enable interface consistency
check between ARP and MAC address entries.
Use undo arp mac-interface-consistency check enable to disable interface
consistency check between ARP and MAC address entries.
Syntax
arp mac-interface-consistency check enable
undo arp mac-interface-consistency check enable
2
Default
Interface consistency check between ARP and MAC address entries is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
In an unstable network, the receiving interface for packets from a user might change. The interface in
the MAC address entry can be updated immediately while the interface in the ARP entry cannot. In
this case, the packets matching the ARP entry will be sent out of an incorrect interface. To solve this
problem, you can use this feature to periodically check the interface consistency between the ARP
and MAC address entry for a user. If the interfaces are not the same, ARP sends ARP requests in the
VLAN of the ARP entry and updates the entry with the ARP reply receiving interface.
Use the display mac-address command to display MAC address entries.
Examples
# Enable interface consistency check between ARP and MAC address entries.
<Sysname> system-view
[Sysname] arp mac-interface-consistency check enable
Related commands
display mac-address (Layer 2—LAN Switching Command Reference)
arp max-learning-num
Use arp max-learning-num to set the dynamic ARP learning limit for 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 163840 dynamic ARP entries.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
VLAN interface view
Predefined user roles
network-admin
3
Parameters
max-number: Specifies the maximum number of dynamic ARP entries for an interface. The value
range for this argument is 0 to 163840.
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 maximum number is reached, the interface stops learning ARP entries.
When the number argument is set to 0, the interface is disabled from learning dynamic ARP entries.
Examples
# Specify VLAN-interface 40 to learn a maximum of 10 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface vlan-interface 40
[Sysname-Vlan-interface40] arp max-learning-num 10
# Specify TwoHundredGigE 1/0/1 to learn a maximum of 10 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface twohundredgige 1/0/1
[Sysname-TwoHundredGigE1/0/1] arp max-learning-num 10
# Specify Layer 2 aggregate interface Bridge-Aggregation 1 to learn a maximum of 10 dynamic ARP
entries.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] 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 for 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
The device can learn a maximum of 163840 dynamic ARP entries.
Views
System view
Predefined user roles
network-admin
Parameters
max-number: Specifies the maximum number of dynamic ARP entries for a device. The value
range for this argument is 0 to 163840.
4
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
maximum number is reached, the device stops learning ARP entries.
When the number argument is set to 0, the device is disabled from learning dynamic ARP entries.
Examples
# Configure the device to learn a maximum of 64 dynamic ARP entries.
<Sysname> system-view
[Sysname] arp max-learning-number 64
arp mode uni
Use arp mode uni to configure a port as a customer-side port.
Use undo arp mode to restore the default.
Syntax
arp mode uni
undo arp mode
Default
A port operates as a network-side port.
Views
VLAN interface view
Predefined user roles
network-admin
Usage guidelines
By default, the device associates an ARP entry with routing information when the device learns an
ARP entry. The ARP entry provides the next hop information for routing. To save hardware resources,
you can use this command to specify a port that connects to a user terminal as a customer-side port.
The device will not associate the routing information with the learned ARP entries.
Examples
# Configure VLAN-interface 2 as a customer-side port.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] arp mode uni
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 [ vlan-id interface-type
interface-number ] [ vpn-instance vpn-instance-name ]
undo arp ip-address [ vpn-instance-name ]
5
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.
vlan-id: Specifies the ID of a VLAN to which the static ARP entry belongs. The value range is 1 to
4094.
interface-type interface-number: Specifies an interface by its type and number.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance to which the static
ARP entry belongs. The vpn-instance-name argument represents the VPN instance name, a
case-sensitive string of 1 to 31 characters. The VPN instance must already exist. To specify a static
ARP entry on 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.
Static ARP entries can be short or long.
A resolved short static ARP entry becomes unresolved upon certain events, for example, when the
resolved output interface goes down, or the corresponding VLAN or VLAN interface is deleted.
Long static ARP entries are effective or ineffective. Ineffective long static ARP entries cannot be
used for packet forwarding. A long static ARP entry is ineffective when any of the following conditions
exists:
•
The IP address in the entry conflicts with a local IP address.
•
No local interface has an IP address in the same subnet as the IP address in the ARP entry.
If you specify the vlan-id interface-type interface-number argument, follow these
restrictions and guidelines:
•
The interface can be an Ethernet interface or an aggregate interface.
•
The VLAN and VLAN interface must already exist. The specified Ethernet interface must belong
to the specified VLAN.
•
The IP address of the VLAN interface and the IP address specified by the ip-address
argument must be on the same network.
•
A long static ARP entry in a VLAN is deleted if the VLAN or VLAN interface is deleted.
Examples
# Configure a long static ARP entry that contains IP address 202.38.10.2, MAC address
00e0-fc01-0000, and output interface TwoHundredGigE 1/0/1 in VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 00e0-fc01-0000 10 twohundredgige 1/0/1
Related commands
display arp
reset arp
6
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-minutes | second aging-seconds }
undo arp timer aging
Default
In system view, the aging timer for dynamic ARP entries is 20 minutes.
In interface view, the aging timer for dynamic ARP entries is the aging timer set in system view.
Views
System view
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Layer 3 RPR logical interface view
VSI interface view
VLAN interface view
Predefined user roles
network-admin
Parameters
aging-minutes: Specifies the aging timer in minutes. The value range for this argument is 1 to
1440.
second aging-seconds: Specifies the aging timer in seconds. The value range for the
aging-seconds argument is 5 to 86400.
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.
You can set the aging timer for dynamic ARP entries in system view or in interface view. The aging
timer set in interface view takes precedence over the aging timer set in system view.
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
[Sysname] arp timer aging 10
# Set the aging timer for dynamic ARP entries to 200 seconds.
<Sysname> system-view
[Sysname] arp timer aging second 200
7
# Set the aging timer for dynamic ARP entries to 10 minutes on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] arp timer aging 10
Related commands
display arp timer aging
arp timer aging probe-count
Use arp timer aging probe-count to set the maximum number of probes for dynamic ARP
entries.
Use undo arp timer aging probe-count to restore the default.
Syntax
arp timer aging probe-count count
undo arp timer aging probe-count
Default
In system view, the maximum number of probes for dynamic ARP entries is 3.
In interface view, the maximum number of probes for dynamic ARP entries is that set in system view.
Views
System view
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
VLAN interface view
Predefined user roles
network-admin
Parameters
count: Specifies the maximum number of probes. The value range for this argument is 0 to 10. To
disable the device from probing dynamic ARP entries, set the value to 0.
Usage guidelines
This probe mechanism keeps legal dynamic ARP entries valid and avoids unnecessary ARP
resolution in later traffic forwarding. This probe feature sends ARP requests for the IP address in a
dynamic ARP entry.
•
If the device receives an ARP reply before the entry aging timer expires, the device resets the
aging timer.
•
If the device does not receive any ARP reply after the maximum number of probes is made, the
device deletes the entry when the entry aging timer expires.
You can set the maximum number of probes in system view and in interface view. The setting in
interface view takes precedence over that in system view.
Examples
# Allow the device to perform a maximum of five probes for dynamic ARP entries.
<Sysname> system-view
8
[Sysname] arp timer aging probe-count 5
# Allow the device to perform a maximum of five probes for dynamic ARP entries on VLAN-interface
2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] arp timer aging probe-count 5
Related commands
arp timer aging
arp timer aging probe-interval
arp timer aging probe-interval
Use arp timer aging probe-interval to set the interval for probing dynamic ARP entries.
Use undo arp timer aging probe-interval to restore the default.
Syntax
arp timer aging probe-interval interval
undo arp timer aging probe-interval
Default
In system view, the probe interval is 5 seconds.
In interface view, the probe interval equals the setting in system view.
Views
System view
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
VLAN interface view
Predefined user roles
network-admin
Parameters
Interval: Specifies the probe interval in seconds. The value range is 1 to 60.
Usage guidelines
The probing feature keeps legal dynamic ARP entries valid and avoids unnecessary ARP resolution
during later traffic forwarding.
Before a dynamic ARP entry is aged out, the device sends ARP requests for the IP address in the
ARP entry.
•
If the device receives an ARP reply during the probe interval, the device resets the aging timer.
•
If the device does not receive any ARP reply during the probe interval, the device starts a new
probe.
•
If the maximum number probes are made, and still no ARP reply is received, the device deletes
the entry.
9
You can set the probe interval in system view and in interface view. The probe interval in interface
view takes precedence over the probe interval in system view.
Examples
# Set the probe interval to 10 seconds for dynamic ARP entries.
<Sysname> system-view
[Sysname] arp timer aging probe-interval 10
# Set the probe interval to 10 seconds for dynamic ARP entries on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] arp timer aging probe-interval 10
Related commands
arp timer aging
arp timer aging probe-count
arp user-ip-conflict record enable
Use arp user-ip-conflict record enable to enable recording user IP address conflicts.
Use undo arp user-ip-conflict record enable to disable recording user IP address
conflicts.
Syntax
arp user-ip-conflict record enable
undo arp user-ip-conflict record enable
Default
Recording user IP address conflicts is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This feature enables the device to detect and record user IP address conflicts. The device
determines that a conflict occurs if an incoming non-gratuitous ARP packet has the same sender IP
address as an existing ARP entry but a different sender MAC address. The device generates a user
IP address conflict record, logs the conflict, and sends the log to the information center. For
information about the log destination and output rule configuration, see the information center in
System Management Configuration Guide.
The device can generate a maximum of 10 user IP address conflict logs per second.
To display user IP address conflict records, use the display arp user-ip-conflict record
command.
Examples
# Enable recording user IP address conflicts.
<Sysname> system-view
[Sysname] arp user-ip-conflict record enable
10
Related commands
display arp user-ip-conflict record
arp user-move record enable
Use user-move record enable to enable recording user port migrations.
Use undo arp user-move record enable to disable recording user port migrations.
Syntax
arp user-move record enable
undo arp user-move record enable
Default
Recording user port migrations is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The device can generate a maximum of 10 user port migration logs per second.
To display user port migration records, use the display arp user-move record command.
Examples
# Enable recording user port migration.
<Sysname> system-view
[Sysname] arp user-move record enable
Related commands
display arp user-move record
display arp
Use display arp to display ARP entries.
Syntax
display arp [ [ all | dynamic | static ] [ slot slot-number ] | vlan vlan-id |
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.
11
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 for the master device.
vlan vlan-id: Specifies a VLAN by its VLAN ID. The VLAN ID is in the range of 1 to 4094.
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 static and dynamic ARP entries, including the IP address,
MAC address, VLAN ID, output interface, entry type, and aging timer.
Examples
# Display all ARP entries.
<Sysname> display arp all
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 200GE1/0/1 -- S
1.1.1.2 00e0-fc00-0001 12 200GE1/0/2 960 D
# Display detailed information about all ARP entries.
<Sysname> display arp all verbose
Type: S-Static D-Dynamic O-Openflow R-Rule I-Invalid
IP address : 1.1.1.1 MAC address : 02e0-f102-0023
Type : Static Aging : --
Interface : 200GE1/0/1 SVLAN/CVLAN : 1/--
VPN instance : --
Link ID : --
Service instance : --
VXLAN ID : --
VSI name : --
VSI interface : --
IP address : 1.1.1.2 MAC address : 00e0-fc00-0001
Type : Dynamic Aging : 960 seconds
Interface : 200GE1/0/2 SVLAN/CVLAN : 12/--
VPN instance : --
Link ID : --
Service instance : --
VXLAN ID : --
VSI name : --
VSI interface : --
# Display the number of all ARP entries.
<Sysname> display arp all count
Total number of entries : 3
12
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
ID of the VLAN to which an ARP entry belongs. This field displays hyphens (--)
in either of the following situations:
• The ARP entry is an unresolved short static ARP entry.
• The output interface of the ARP entry does not belong to any SVLAN.
Interface Output interface in an ARP entry. This field displays hyphens (--) if the ARP
entry is an unresolved short static ARP entry.
Aging
Aging time for an ARP entry, in seconds.
• 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
ARP entry type:
• D—Dynamic.
• S—Static.
• O—OpenFlow. This value is not supported in the current software
version.
• R—Rule. This value is not supported in the current software version.
•
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 short 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 This field is not supported in the current software version.
Link ID in an ARP entry. This field displays hyphens (--) if the ARP entry does
not belong to any VSI.
Service instance
This field is not supported in the current software version.
Ethernet service instance in an ARP entry. This field displays hyphens (--) if no
Ethernet service instance is specified for the Layer 2 Ethernet interface or
Layer 2 aggregate interface in the ARP entry.
VXLAN ID This field is not supported in the current software version.
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.
Total number of entries Number of ARP entries.
13
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: 163840
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: Displays the ARP entry for the specified 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 information for 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, VLAN ID, 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
/