HPE JE074A User guide

  • Hello! I've reviewed the IP Services Command Reference for the HPE Networking Comware 5120v3 Switch Series. This document details various IP services commands, covering areas like ARP, DHCP, and DNS configurations. I'm ready to assist you with any questions you have regarding the commands and functionalities outlined in this reference guide.
  • What is the purpose of the 'arp check enable' command?
    What does the 'dhcp server ip-pool' command do?
    What is the function of the 'dns server' command?
HPE Networking Comware
5120v3 Switch
Series
IP Services Command Reference
Software
version: Release 6352P02 and later
Document version: 6W100-20230715
© 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 enable ········································································································································ 1
arp check log enable ·································································································································· 1
arp mac-interface-consistency check enable ····························································································· 2
arp max-learning-num ································································································································ 3
arp max-learning-number ··························································································································· 4
arp multiport ··············································································································································· 4
arp smooth ················································································································································· 5
arp static ····················································································································································· 6
arp timer aging ··········································································································································· 7
arp timer aging probe-count ······················································································································· 8
arp timer aging probe-interval ···················································································································· 9
arp user-ip-conflict record enable············································································································· 10
arp user-move record enable ··················································································································· 11
display arp ················································································································································ 11
display arp entry-limit ······························································································································· 14
display arp ip-address ······························································································································ 14
display arp openflow count ······················································································································· 15
display arp timer aging ····························································································································· 15
display arp user-ip-conflict record ············································································································ 16
display arp user-move record ··················································································································· 17
reset arp ··················································································································································· 19
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 ················································································································· 22
Proxy ARP commands ················································································· 24
display local-proxy-arp ····························································································································· 24
display proxy-arp ······································································································································ 24
local-proxy-arp enable ······························································································································ 25
proxy-arp enable ······································································································································ 26
ARP snooping commands ··········································································· 27
arp snooping enable································································································································· 27
display arp snooping ································································································································ 27
reset arp snooping ··································································································································· 28
ARP direct route advertisement commands ················································· 30
arp route-direct advertise ························································································································· 30
IP addressing commands ············································································ 31
display ip interface ··································································································································· 31
display ip interface brief ··························································································································· 33
ip address ················································································································································· 35
ip address unnumbered ··························································································································· 36
DHCP commands ························································································ 38
Common DHCP commands ····························································································································· 38
dhcp client-detect ····································································································································· 38
dhcp dscp ················································································································································· 38
dhcp enable ·············································································································································· 39
dhcp log enable ········································································································································ 39
dhcp select ··············································································································································· 40
ii
DHCP server commands ································································································································· 41
address range ·········································································································································· 41
bims-server ·············································································································································· 42
bootfile-name ··········································································································································· 43
class ip-pool ············································································································································· 44
class option-group ···································································································································· 45
class range ··············································································································································· 45
default ip-pool ··········································································································································· 46
dhcp apply-policy ····································································································································· 47
dhcp class ················································································································································ 48
dhcp option-group ···································································································································· 49
dhcp policy ··············································································································································· 49
dhcp server always-broadcast ················································································································· 50
dhcp server apply ip-pool ························································································································· 51
dhcp server bootp ignore ························································································································· 51
dhcp server bootp reply-rfc-1048 ············································································································· 52
dhcp server check mac-address ·············································································································· 52
dhcp server database filename ················································································································ 53
dhcp server database update interval ······································································································ 54
dhcp server database update now ··········································································································· 55
dhcp server database update stop ··········································································································· 56
dhcp server forbidden-ip ·························································································································· 56
dhcp server ip-pool ··································································································································· 57
dhcp server ping packets ························································································································· 58
dhcp server ping timeout ·························································································································· 59
dhcp server relay information enable ······································································································· 59
dhcp server request-ip-address check ····································································································· 60
display dhcp server conflict ······················································································································ 61
display dhcp server database ·················································································································· 62
display dhcp server expired ····················································································································· 62
display dhcp server free-ip ······················································································································· 63
display dhcp server ip-in-use ··················································································································· 64
display dhcp server pool ·························································································································· 65
display dhcp server statistics ··················································································································· 68
dns-list ······················································································································································ 69
domain-name ··········································································································································· 70
expired ····················································································································································· 71
forbidden-ip ·············································································································································· 71
gateway-list ·············································································································································· 72
if-match ···················································································································································· 73
ip-in-use threshold ···································································································································· 76
nbns-list ···················································································································································· 76
netbios-type ·············································································································································· 77
network ····················································································································································· 78
next-server ··············································································································································· 79
option ······················································································································································· 80
reset dhcp server conflict ························································································································· 81
reset dhcp server expired ························································································································· 81
reset dhcp server ip-in-use ······················································································································· 82
reset dhcp server statistics ······················································································································· 82
static-bind ················································································································································· 83
tftp-server domain-name ·························································································································· 84
tftp-server ip-address ······························································································································· 85
valid class ················································································································································· 85
verify class ··············································································································································· 86
voice-config ·············································································································································· 87
DHCP relay agent commands ························································································································· 88
dhcp relay check mac-address ················································································································ 88
dhcp relay check mac-address aging-time······························································································· 88
dhcp relay client-information record ········································································································· 89
dhcp relay client-information refresh ········································································································ 90
dhcp relay client-information refresh enable ···························································································· 90
iii
dhcp relay dhcp-server timeout ················································································································ 91
dhcp relay gateway ·································································································································· 92
dhcp relay information circuit-id ··············································································································· 93
dhcp relay information enable ·················································································································· 94
dhcp relay information remote-id ·············································································································· 95
dhcp relay information strategy ················································································································ 96
dhcp relay master-server switch-delay ····································································································· 97
dhcp relay release ip ································································································································ 98
dhcp relay server-address ························································································································ 98
dhcp relay server-address algorithm ········································································································ 99
dhcp relay source-address ····················································································································· 100
dhcp smart-relay enable ························································································································· 101
dhcp-server timeout ······························································································································· 102
display dhcp relay check mac-address ·································································································· 102
display dhcp relay client-information ······································································································ 103
display dhcp relay information ················································································································ 104
display dhcp relay server-address ········································································································· 105
display dhcp relay statistics ···················································································································· 106
gateway-list ············································································································································ 108
master-server switch-delay ···················································································································· 108
remote-server ········································································································································· 109
remote-server algorithm ························································································································· 110
reset dhcp relay client-information ········································································································· 110
reset dhcp relay statistics ······················································································································· 111
DHCP client commands ································································································································· 111
dhcp client class-id ································································································································· 111
dhcp client dad enable ··························································································································· 112
dhcp client dscp ····································································································································· 113
dhcp client identifier ······························································································································· 113
display dhcp client ·································································································································· 114
ip address dhcp-alloc ····························································································································· 117
DHCP snooping commands ··························································································································· 117
dhcp snooping binding database filename ····························································································· 117
dhcp snooping binding database update interval ··················································································· 119
dhcp snooping binding database update now ························································································ 120
dhcp snooping binding record ················································································································ 120
dhcp snooping check mac-address········································································································ 121
dhcp snooping check request-message································································································· 121
dhcp snooping deny ······························································································································· 122
dhcp snooping disable ··························································································································· 123
dhcp snooping enable ···························································································································· 123
dhcp snooping enable vlan ···················································································································· 124
dhcp snooping information circuit-id······································································································· 125
dhcp snooping information enable ········································································································· 126
dhcp snooping information remote-id ····································································································· 127
dhcp snooping information strategy ······································································································· 128
dhcp snooping information vendor-specific ···························································································· 129
dhcp snooping log enable ······················································································································ 130
dhcp snooping max-learning-num ·········································································································· 131
dhcp snooping rate-limit ························································································································· 132
dhcp snooping trust ································································································································ 132
dhcp snooping trust interface ················································································································· 133
display dhcp snooping binding ··············································································································· 134
display dhcp snooping binding database ······························································································· 135
display dhcp snooping information ········································································································· 136
display dhcp snooping packet statistics ································································································· 138
display dhcp snooping trust ···················································································································· 138
reset dhcp snooping binding ·················································································································· 139
reset dhcp snooping packet statistics ···································································································· 140
BOOTP client commands······························································································································· 140
display bootp client ································································································································· 140
ip address bootp-alloc ···························································································································· 141
iv
DNS commands ························································································ 143
display dns domain ································································································································ 143
display dns host ····································································································································· 143
display dns server ·································································································································· 145
display ipv6 dns server ··························································································································· 145
dns domain ············································································································································· 146
dns dscp ················································································································································· 147
dns proxy enable ···································································································································· 148
dns server ·············································································································································· 148
dns source-interface ······························································································································· 149
dns spoofing ··········································································································································· 150
dns trust-interface ·································································································································· 150
ip host ····················································································································································· 151
ipv6 dns dscp ········································································································································· 152
ipv6 dns server ······································································································································· 152
ipv6 dns spoofing ··································································································································· 153
ipv6 host ················································································································································· 154
reset dns host ········································································································································· 155
Basic IP forwarding commands ································································· 156
display fib ··············································································································································· 156
ip forwarding-table save ························································································································· 157
Fast forwarding commands ········································································ 159
display ip fast-forwarding aging-time ······································································································ 159
display ip fast-forwarding cache ············································································································· 159
display ip fast-forwarding fragcache ······································································································· 160
ip fast-forwarding aging-time ·················································································································· 161
ip fast-forwarding load-sharing ··············································································································· 162
reset ip fast-forwarding cache ················································································································ 162
IP performance optimization commands ···················································· 163
display icmp statistics ····························································································································· 163
display ip statistics ································································································································· 163
display rawip ·········································································································································· 165
display rawip verbose ····························································································································· 166
display tcp ·············································································································································· 169
display tcp statistics ······························································································································· 169
display tcp verbose ································································································································ 171
display udp ············································································································································· 175
display udp statistics ······························································································································ 176
display udp verbose ······························································································································· 176
ip forward-broadcast ······························································································································ 179
ip icmp error-interval ······························································································································ 180
ip icmp receive enable ··························································································································· 181
ip icmp send enable ······························································································································· 182
ip icmp source ········································································································································ 184
ip mtu ····················································································································································· 184
ip reassemble local enable ····················································································································· 185
ip redirects enable ·································································································································· 186
ip ttl-expires enable ································································································································ 186
ip unreachables enable ·························································································································· 187
reset ip statistics ····································································································································· 188
reset tcp statistics ··································································································································· 188
reset udp statistics ································································································································· 189
tcp mss ··················································································································································· 189
tcp path-mtu-discovery ··························································································································· 190
tcp syn-cookie enable ···························································································································· 191
tcp timer fin-timeout ································································································································ 191
tcp timer syn-timeout ······························································································································ 192
tcp timestamps enable ··························································································································· 193
v
tcp window ············································································································································· 193
UDP helper commands ·············································································· 195
display udp-helper interface ··················································································································· 195
reset udp-helper statistics ······················································································································ 195
udp-helper broadcast-map ····················································································································· 196
udp-helper enable ·································································································································· 197
udp-helper port ······································································································································· 197
udp-helper server ··································································································································· 198
IPv6 basics commands ·············································································· 200
display ipv6 fib ········································································································································ 200
display ipv6 icmp statistics ····················································································································· 201
display ipv6 interface ······························································································································ 202
display ipv6 interface prefix ···················································································································· 206
display ipv6 nd snooping count vlan ······································································································ 207
display ipv6 nd snooping vlan ················································································································ 208
display ipv6 nd user-ip-conflict record ···································································································· 209
display ipv6 nd user-move record ·········································································································· 211
display ipv6 neighbors ···························································································································· 212
display ipv6 neighbors count ·················································································································· 214
display ipv6 neighbors entry-limit ··········································································································· 215
display ipv6 pathmtu ······························································································································ 215
display ipv6 prefix ··································································································································· 216
display ipv6 rawip ··································································································································· 217
display ipv6 rawip verbose ····················································································································· 218
display ipv6 statistics ······························································································································ 222
display ipv6 tcp ······································································································································· 223
display ipv6 tcp verbose ························································································································· 224
display ipv6 udp ····································································································································· 228
display ipv6 udp verbose ························································································································ 229
ipv6 address ··········································································································································· 232
ipv6 address anycast ····························································································································· 233
ipv6 address auto ··································································································································· 234
ipv6 address auto link-local ···················································································································· 234
ipv6 address eui-64 ································································································································ 235
ipv6 address link-local ···························································································································· 236
ipv6 address prefix-number ···················································································································· 237
ipv6 hop-limit ·········································································································································· 238
ipv6 hoplimit-expires enable ··················································································································· 239
ipv6 icmpv6 error-interval ······················································································································· 239
ipv6 icmpv6 multicast-echo-reply enable ······························································································· 240
ipv6 icmpv6 source ································································································································ 241
ipv6 mtu ·················································································································································· 241
ipv6 nd autoconfig managed-address-flag ····························································································· 242
ipv6 nd autoconfig other-flag ·················································································································· 243
ipv6 nd dad attempts ······························································································································ 243
ipv6 nd ns retrans-timer ························································································································· 244
ipv6 nd nud reachable-time ···················································································································· 245
ipv6 nd online-offline-log enable ············································································································ 245
ipv6 nd ra boot-file-url ···························································································································· 246
ipv6 nd ra dns search-list ······················································································································· 247
ipv6 nd ra dns search-list suppress········································································································ 248
ipv6 nd ra dns server ······························································································································ 249
ipv6 nd ra dns server suppress ·············································································································· 250
ipv6 nd ra halt ········································································································································· 251
ipv6 nd ra hop-limit unspecified ·············································································································· 252
ipv6 nd ra interval ··································································································································· 253
ipv6 nd ra no-advlinkmtu ························································································································ 253
ipv6 nd ra prefix ······································································································································ 254
ipv6 nd ra prefix default ·························································································································· 255
ipv6 nd ra router-lifetime ························································································································ 256
vi
ipv6 nd router-preference ······················································································································· 257
ipv6 nd snooping dad retrans-timer ········································································································ 258
ipv6 nd snooping enable global·············································································································· 258
ipv6 nd snooping enable link-local ········································································································· 259
ipv6 nd snooping glean source ·············································································································· 259
ipv6 nd snooping lifetime ························································································································ 260
ipv6 nd snooping max-learning-num ······································································································ 261
ipv6 nd snooping uplink·························································································································· 261
ipv6 nd user-ip-conflict record enable ···································································································· 262
ipv6 nd user-move record enable··········································································································· 263
ipv6 neighbor ·········································································································································· 263
ipv6 neighbor link-local minimize ··········································································································· 265
ipv6 neighbor stale-aging ······················································································································· 265
ipv6 neighbor timer stale-aging ·············································································································· 266
ipv6 neighbors max-learning-num ·········································································································· 267
ipv6 pathmtu ··········································································································································· 267
ipv6 pathmtu age ···································································································································· 268
ipv6 prefer temporary-address ··············································································································· 269
ipv6 prefix ··············································································································································· 269
ipv6 reassemble local enable ················································································································· 270
ipv6 redirects enable ······························································································································ 271
ipv6 temporary-address ························································································································· 271
ipv6 unreachables enable ······················································································································ 273
local-proxy-nd enable ····························································································································· 273
proxy-nd enable ····································································································································· 274
reset ipv6 nd snooping vlan ··················································································································· 274
reset ipv6 neighbors ······························································································································· 275
reset ipv6 pathmtu ·································································································································· 276
reset ipv6 statistics ································································································································· 276
DHCPv6 commands ·················································································· 277
Common DHCPv6 commands ······················································································································· 277
display ipv6 dhcp duid ···························································································································· 277
ipv6 dhcp advertise pd-route ·················································································································· 277
ipv6 dhcp dscp ······································································································································· 278
ipv6 dhcp log enable ······························································································································ 278
ipv6 dhcp select ····································································································································· 279
DHCPv6 server commands···························································································································· 280
address range ········································································································································ 280
address-alloc-mode eui-64 ····················································································································· 281
class pool ··············································································································································· 282
default pool ············································································································································· 282
display ipv6 dhcp option-group ·············································································································· 283
display ipv6 dhcp pool ···························································································································· 285
display ipv6 dhcp prefix-pool ·················································································································· 287
display ipv6 dhcp server ························································································································· 289
display ipv6 dhcp server conflict ············································································································ 290
display ipv6 dhcp server database ········································································································· 291
display ipv6 dhcp server expired ············································································································ 292
display ipv6 dhcp server ip-in-use ·········································································································· 292
display ipv6 dhcp server pd-in-use ········································································································· 294
display ipv6 dhcp server statistics ·········································································································· 296
dns-server ·············································································································································· 298
domain-name ········································································································································· 299
if-match ·················································································································································· 299
ipv6 dhcp apply-policy ···························································································································· 301
ipv6 dhcp class ······································································································································· 302
ipv6 dhcp option-group ··························································································································· 303
ipv6 dhcp policy ······································································································································ 304
ipv6 dhcp pool ········································································································································ 304
ipv6 dhcp prefix-pool ······························································································································ 305
ipv6 dhcp server ····································································································································· 306
vii
ipv6 dhcp server apply pool ··················································································································· 307
ipv6 dhcp server database filename ······································································································ 308
ipv6 dhcp server database update interval ···························································································· 310
ipv6 dhcp server database update now ································································································· 310
ipv6 dhcp server database update stop ································································································· 311
ipv6 dhcp server forbidden-address ······································································································· 312
ipv6 dhcp server forbidden-prefix ··········································································································· 313
network ··················································································································································· 313
option ····················································································································································· 315
option-group ··········································································································································· 316
prefix-pool ·············································································································································· 317
reset ipv6 dhcp server conflict················································································································ 318
reset ipv6 dhcp server expired ··············································································································· 318
reset ipv6 dhcp server ip-in-use ············································································································· 319
reset ipv6 dhcp server pd-in-use ············································································································ 319
reset ipv6 dhcp server statistics ············································································································· 320
sip-server ··············································································································································· 321
static-bind ··············································································································································· 321
temporary address range ······················································································································· 323
DHCPv6 relay agent commands ···················································································································· 324
display ipv6 dhcp relay server-address ·································································································· 324
display ipv6 dhcp relay statistics ············································································································ 325
gateway-list ············································································································································ 327
ipv6 dhcp advertise address-route ········································································································· 328
ipv6 dhcp relay client-link-address enable ····························································································· 328
ipv6 dhcp relay gateway ························································································································· 329
ipv6 dhcp relay interface-id ···················································································································· 330
ipv6 dhcp relay server-address ·············································································································· 331
ipv6 dhcp relay source-address ············································································································· 332
remote-server ········································································································································· 332
reset ipv6 dhcp relay statistics ··············································································································· 333
DHCPv6 client commands ····························································································································· 334
display ipv6 dhcp client ·························································································································· 334
display ipv6 dhcp client statistics ··········································································································· 336
ipv6 address dhcp-alloc ························································································································· 337
ipv6 dhcp client dscp ······························································································································ 338
ipv6 dhcp client duid ······························································································································· 339
ipv6 dhcp client pd ································································································································· 340
ipv6 dhcp client stateful ·························································································································· 340
ipv6 dhcp client stateless enable ··········································································································· 341
reset ipv6 dhcp client statistics ··············································································································· 342
DHCPv6 snooping commands ······················································································································· 342
display ipv6 dhcp snooping binding ······································································································· 342
display ipv6 dhcp snooping binding database························································································ 343
display ipv6 dhcp snooping packet statistics·························································································· 344
display ipv6 dhcp snooping pd binding ·································································································· 345
display ipv6 dhcp snooping trust ············································································································ 346
ipv6 dhcp snooping binding database filename ····················································································· 347
ipv6 dhcp snooping binding database update interval ··········································································· 349
ipv6 dhcp snooping binding database update now ················································································ 349
ipv6 dhcp snooping binding record ········································································································ 350
ipv6 dhcp snooping check request-message ························································································· 350
ipv6 dhcp snooping deny ······················································································································· 351
ipv6 dhcp snooping disable ···················································································································· 352
ipv6 dhcp snooping enable ···················································································································· 353
ipv6 dhcp snooping enable vlan ············································································································· 353
ipv6 dhcp snooping log enable··············································································································· 354
ipv6 dhcp snooping option interface-id enable ······················································································· 355
ipv6 dhcp snooping option interface-id string ························································································· 355
ipv6 dhcp snooping option remote-id enable ························································································· 356
ipv6 dhcp snooping option remote-id string ··························································································· 357
ipv6 dhcp snooping pd binding record ··································································································· 357
viii
ipv6 dhcp snooping rate-limit ················································································································· 358
ipv6 dhcp snooping trust ························································································································ 359
ipv6 dhcp snooping trust interface ········································································································· 359
reset ipv6 dhcp snooping binding··········································································································· 360
reset ipv6 dhcp snooping packet statistics ····························································································· 361
reset ipv6 dhcp snooping pd binding ······································································································ 361
DHCPv6 guard commands ···························································································································· 362
device-role ·············································································································································· 362
display ipv6 dhcp guard policy ··············································································································· 363
if-match reply acl ···································································································································· 364
if-match server acl ·································································································································· 365
ipv6 dhcp guard apply policy ·················································································································· 366
ipv6 dhcp guard policy ··························································································································· 367
preference ·············································································································································· 368
trust port ················································································································································· 369
IPv6 fast forwarding commands ································································· 371
display ipv6 fast-forwarding aging-time ·································································································· 371
display ipv6 fast-forwarding cache ········································································································· 371
ipv6 fast-forwarding aging-time ·············································································································· 372
ipv6 fast-forwarding load-sharing ··········································································································· 373
reset ipv6 fast-forwarding cache ············································································································ 374
HTTP redirect commands ·········································································· 375
http-redirect https-port ···························································································································· 375
http-redirect ssl-server-policy ················································································································· 375
NAT commands ························································································· 377
display nat session ································································································································· 377
display nat static ····································································································································· 379
nat static enable ····································································································································· 380
nat static outbound ································································································································· 380
reset nat session ···································································································································· 381
Document conventions and icons ······························································ 383
Conventions ··················································································································································· 383
Network topology icons ·································································································································· 384
Support and other resources ····································································· 385
Accessing Hewlett Packard Enterprise Support····························································································· 385
Accessing updates ········································································································································· 385
Websites ················································································································································ 386
Customer self repair ······························································································································· 386
Remote support ······································································································································ 386
Documentation feedback ······················································································································· 386
Index ·········································································································· 388
1
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
2
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 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 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 this feature.
Syntax
arp mac-interface-consistency check enable
undo arp mac-interface-consistency check enable
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.
3
Use display mac-address 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 [ alarm alarm-threshold ]
undo arp max-learning-num
Default
An interface can learn a maximum of 1024 dynamic ARP entries
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
VLAN interface view
Predefined user roles
network-admin
Parameters
max-number: Specifies the maximum number of dynamic ARP entries for an interface. The value
range for this argument is 0 to 1024.
alarm alarm-threshold: Specifies an alarm threshold for dynamic ARP learning, in percentage.
The value range for the alarm-threshold argument is 1 to 100. The device generates a log
message when the number of dynamic ARP entries learned on an interface reaches the value
calculated by using the formula: (max-number × alarm-threshold)/100. If you do not specify
the alarm threshold, the device does not generate log messages.
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 GigabitEthernet 1/0/1 to learn a maximum of 10 dynamic ARP entries.
4
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/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
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
A device can learn a maximum of 1024 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 1024.
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
# Set the ARP learning limit to 64 for slot 1.
<Sysname> system-view
[Sysname] arp max-learning-number 64 slot 1
arp multiport
Use arp multiport to configure a multiport ARP entry.
Use undo arp to delete an ARP entry.
Syntax
arp multiport ip-address mac-address vlan-id
5
undo arp ip-address
Default
No multiport ARP entries exist.
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: Specifies an IP address for the multiport ARP entry.
mac-address: Specifies a MAC address for the multiport ARP entry, in the format of H-H-H.
vlan-id: Specifies a VLAN for the multiport ARP entry, in the range of 1 to 4094. The specified
VLAN must already exist.
Usage guidelines
If the corresponding VLAN or the VLAN interface is deleted, the multiport ARP entry is also deleted.
To make the multiport ARP entry effective for packet forwarding, you must configure a multicast or
multiport unicast MAC address entry to specify multiple output interfaces. The MAC address entry
must have the same MAC address and VLAN ID as the multiport ARP entry. In addition, the IP
address in the multiport ARP entry must reside on the same subnet as the VLAN interface of the
specified VLAN.
If an aggregate interface is the output interface of an entry and its member ports reside on multiple
IRF member devices, the device cannot use the entry to forward packets. To resolve this issue, set
the global link-aggregation load sharing mode to a mode other than source or destination MAC
address-based by using the link-aggregation global load-sharing mode command.
For more information about this command, see Ethernet link aggregation in Layer 2—LAN Switching
Command Reference.
Examples
# Configure a multiport ARP entry that contains IP address 202.38.10.2 and MAC address
00e0-fc01-0000 in VLAN 10.
<Sysname> system-view
[Sysname] arp multiport 202.38.10.2 00e0-fc01-0000 10
Related commands
display arp multiport
reset arp multiport
arp smooth
Use arp smooth to synchronize ARP entries from the master device to all subordinate devices.
Syntax
arp smooth
Views
User view
Predefined user roles
network-admin
6
Examples
# Synchronize ARP entries from the master device to all subordinate devices.
<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 [ vlan-id interface-type
interface-number ]
undo arp ip-address
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.
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 for a VLAN is deleted if the VLAN or VLAN interface is deleted.
7
Examples
# Configure a long static ARP entry that contains IP address 202.38.10.2, MAC address
00e0-fc01-0000, and output interface GigabitEthernet 1/0/1 in VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 00e0-fc01-0000 10 gigabitethernet 1/0/1
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-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
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.
8
<Sysname> system-view
[Sysname] arp timer aging second 200
# Set the aging timer for dynamic ARP entries to 200 seconds on VLAN-interface 2.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] arp timer aging second 200
Related commands
arp timer aging probe-count
arp timer aging probe-interval
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 is three for dynamic ARP entries.
In interface view, the maximum number of probes for dynamic ARP entries is the maximum probe
count set in system view.
Views
System 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 during 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 probe count
set in interface view takes precedence over the probe count set in system view.
Examples
# Allow the device to perform a maximum of five probes for dynamic ARP entries.
9
<Sysname> system-view
[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
VLAN interface view
Predefined user roles
network-admin
Parameters
Interval: Specifies the probe interval in seconds. The value rang 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.
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.
10
<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
If the device starts up with the initial configuration, recording user IP address conflicts is disabled.
If the device starts up with the factory defaults, recording user IP address conflicts is enabled.
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
Network Management and Monitoring Configuration Guide.
An IRF member 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
Related commands
display arp user-ip-conflict record
/