HPE R9F20A Reference guide

Category
Software
Type
Reference guide
HPE FlexFabric 12900E Switch Series
Layer 2—LAN Switching Command Reference
Software
version: Release 5210
Document version: 6W100-20230424
© 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
MAC address table commands ······································································ 1
display mac-address ·································································································································· 1
display mac-address aging-time ················································································································ 2
display mac-address mac-learning ············································································································ 3
display mac-address mac-move ················································································································ 3
display mac-address statistics ··················································································································· 5
mac-address (interface view) ····················································································································· 6
mac-address (system view) ······················································································································· 7
mac-address mac-learning enable ············································································································· 8
mac-address mac-learning ingress ·········································································································· 10
mac-address mac-move fast-update········································································································ 10
mac-address notification mac-move ········································································································ 11
mac-address notification mac-move suppression (interface view) ··························································· 12
mac-address notification mac-move suppression (system view) ····························································· 13
mac-address timer ··································································································································· 13
routing-interface base-mac ······················································································································ 14
snmp-agent trap enable mac-address ····································································································· 15
MAC Information commands ······································································· 17
mac-address information enable (interface view) ···················································································· 17
mac-address information enable (system view) ······················································································· 17
mac-address information interval ············································································································· 18
mac-address information mode ················································································································ 18
mac-address information queue-length ···································································································· 19
Ethernet link aggregation commands ··························································· 21
display interface ······································································································································· 21
display lacp system-id ······························································································································ 25
display link-aggregation capability ··········································································································· 26
display link-aggregation load-sharing mode····························································································· 26
display link-aggregation load-sharing path······························································································· 29
display link-aggregation member-port ······································································································ 31
display link-aggregation summary ············································································································ 33
display link-aggregation troubleshooting ·································································································· 34
display link-aggregation verbose·············································································································· 35
interface bridge-aggregation ···················································································································· 38
interface route-aggregation ······················································································································ 39
jumboframe enable ·································································································································· 40
lacp default-selected-port disable ············································································································ 40
lacp edge-port ·········································································································································· 41
lacp mode ················································································································································· 42
lacp period short ······································································································································· 42
lacp select speed ····································································································································· 43
lacp system-mac ······································································································································ 44
lacp system-number ································································································································· 44
lacp system-priority ·································································································································· 45
lacp transparent enable ···························································································································· 46
link-aggregation auto-aggregation enable ································································································ 47
link-aggregation bfd ·································································································································· 47
link-aggregation bfd-compatible enable ··································································································· 49
link-aggregation capability ························································································································ 50
link-aggregation global load-sharing algorithm ························································································ 51
link-aggregation global load-sharing mode ······························································································ 52
link-aggregation global load-sharing offset ······························································································ 53
link-aggregation global load-sharing seed ······························································································· 53
link-aggregation ignore speed ·················································································································· 54
link-aggregation lacp isolate ····················································································································· 55
ii
link-aggregation lacp traffic-redirect-notification enable ··········································································· 56
link-aggregation load-sharing mode dynamic ·························································································· 57
link-aggregation management-port ·········································································································· 58
link-aggregation management-subnet ······································································································ 59
link-aggregation management-vlan ·········································································································· 60
link-aggregation mode ······························································································································ 60
link-aggregation port-priority ···················································································································· 61
link-aggregation primary-port ··················································································································· 62
link-aggregation reversion delay ·············································································································· 63
link-aggregation secondary-down ············································································································ 63
link-aggregation selected-port maximum ································································································· 64
link-aggregation selected-port minimum ·································································································· 65
link-aggregation selected-port minimum percentage ··············································································· 66
link-aggregation switchover ······················································································································ 67
mac-address ············································································································································ 68
mtu ··························································································································································· 69
port lacp system-mac ······························································································································· 69
port lacp system-priority ··························································································································· 70
port link-aggregation group ······················································································································ 71
port s-mlag group ····································································································································· 72
reset lacp statistics ··································································································································· 73
sub-interface rate-statistic ························································································································ 74
DRNI commands ························································································· 75
display drni consistency ··························································································································· 75
display drni consistency-check status ······································································································ 80
display drni drcp statistics ························································································································ 82
display drni keepalive ······························································································································· 83
display drni mad verbose ························································································································· 85
display drni role ········································································································································ 87
display drni summary ······························································································································· 89
display drni system ··································································································································· 90
display drni troubleshooting ····················································································································· 92
display drni verbose ································································································································· 94
display drni virtual-ip ································································································································ 97
drni authentication key ····························································································································· 97
drni auto-recovery reload-delay ··············································································································· 98
drni consistency-check disable ················································································································ 99
drni consistency-check mode ················································································································· 100
drni drcp period short ····························································································································· 101
drni ipp mac-address hold ······················································································································ 101
drni keepalive { ip | ipv6 } ······················································································································· 102
drni keepalive hold-time ························································································································· 103
drni keepalive interval ···························································································································· 104
drni mad default-action ··························································································································· 105
drni mad exclude interface ····················································································································· 106
drni mad exclude logical-interfaces ········································································································ 107
drni mad include interface ······················································································································ 108
drni mad persistent ································································································································· 109
drni mad restore ····································································································································· 110
drni restore-delay ··································································································································· 111
drni role priority ······································································································································ 111
drni sequence enable ····························································································································· 112
drni standalone enable ··························································································································· 113
drni system-mac ····································································································································· 114
drni system-number ······························································································································· 115
drni system-priority ································································································································· 115
port drni group ········································································································································ 116
port drni intra-portal-port ························································································································ 117
port drni ipv6 virtual-ip ···························································································································· 118
port drni system-mac ······························································································································ 119
port drni system-priority ·························································································································· 120
iii
port drni virtual-ip ··································································································································· 121
reset drni drcp statistics ························································································································· 123
reset drni troubleshooting history ··········································································································· 123
VLAN commands ······················································································· 125
Basic VLAN commands ································································································································· 125
default ···················································································································································· 125
description ·············································································································································· 125
display interface vlan-interface··············································································································· 126
display vlan ············································································································································ 129
display vlan brief ···································································································································· 130
interface vlan-interface ··························································································································· 131
mac-address ·········································································································································· 132
mtu ························································································································································· 133
name ······················································································································································ 133
shutdown ················································································································································ 134
vlan ························································································································································· 135
Port-based VLAN commands ························································································································ 136
display port ············································································································································· 136
port ························································································································································· 137
port access vlan ····································································································································· 137
port hybrid pvid ······································································································································· 138
port hybrid vlan ······································································································································· 139
port link-type ··········································································································································· 140
port trunk permit vlan ····························································································································· 140
port trunk pvid ········································································································································ 141
MVRP commands ······················································································ 143
display mvrp running-status ··················································································································· 143
display mvrp state ·································································································································· 144
display mvrp statistics ···························································································································· 145
mrp timer join ········································································································································· 147
mrp timer leave ······································································································································ 148
mrp timer leaveall ··································································································································· 149
mrp timer periodic ·································································································································· 150
mvrp enable ··········································································································································· 151
mvrp global enable ································································································································· 151
mvrp gvrp-compliance enable ················································································································ 152
mvrp registration ···································································································································· 152
reset mvrp statistics ······························································································································· 153
VLAN mapping commands ········································································ 155
display vlan mapping ······························································································································ 155
vlan mapping ·········································································································································· 156
vlan mapping double-tagged ·················································································································· 158
vlan mapping untagged ·························································································································· 159
VLAN termination commands ···································································· 161
second-dot1q ········································································································································· 161
vlan-termination broadcast enable ········································································································· 162
vlan-termination broadcast ra ················································································································· 163
vlan-termination mode ···························································································································· 164
vlan-type dot1q untagged······················································································································· 165
vlan-type dot1q vid ································································································································· 165
vlan-type dot1q vid second-dot1q ·········································································································· 166
Loop detection commands ········································································· 169
display loopback-detection ····················································································································· 169
loopback-detection action ······················································································································ 169
loopback-detection enable ····················································································································· 171
loopback-detection global action ············································································································ 171
loopback-detection global enable··········································································································· 172
iv
loopback-detection interval-time ············································································································ 173
VXLAN loop detection commands ····························································· 174
display loopback-detection ····················································································································· 174
loopback-detection action ······················································································································ 174
loopback-detection enable ····················································································································· 175
loopback-detection interval-time ············································································································ 176
loopback-detection priority ····················································································································· 177
Spanning tree commands ·········································································· 179
active region-configuration ····················································································································· 179
bpdu-drop any ········································································································································ 179
check region-configuration ····················································································································· 180
display stp ·············································································································································· 181
display stp abnormal-port ······················································································································· 188
display stp bpdu-statistics ······················································································································ 189
display stp down-port ····························································································································· 192
display stp history ··································································································································· 192
display stp region-configuration ············································································································· 195
display stp root ······································································································································· 196
display stp tc ·········································································································································· 196
instance ·················································································································································· 197
region-name ··········································································································································· 199
reset stp ················································································································································· 199
revision-level ·········································································································································· 200
snmp-agent trap enable stp ··················································································································· 201
stp bpdu-protection ································································································································ 202
stp bridge-diameter ································································································································ 202
stp compliance ······································································································································· 203
stp config-digest-snooping ····················································································································· 204
stp cost ··················································································································································· 205
stp dispute-protection ····························································································································· 206
stp edged-port ········································································································································ 207
stp enable ··············································································································································· 208
stp global config-digest-snooping··········································································································· 209
stp global enable ···································································································································· 209
stp global mcheck ·································································································································· 210
stp ignore-pvid-inconsistency ················································································································· 211
stp log enable tc ····································································································································· 211
stp loop-protection ·································································································································· 212
stp max-hops ·········································································································································· 213
stp mcheck ············································································································································· 213
stp mode ················································································································································ 214
stp no-agreement-check ························································································································ 215
stp pathcost-standard ····························································································································· 216
stp point-to-point ···································································································································· 217
stp port bpdu-protection ························································································································· 218
stp port priority ······································································································································· 219
stp port shutdown permanent ················································································································· 220
stp port-log ············································································································································· 220
stp priority ··············································································································································· 221
stp pvst-bpdu-protection ························································································································· 222
stp region-configuration ·························································································································· 223
stp role-restriction ··································································································································· 223
stp root primary ······································································································································ 224
stp root secondary ·································································································································· 225
stp root-protection ·································································································································· 226
stp tc-protection ······································································································································ 226
stp tc-protection threshold ······················································································································ 227
stp tc-restriction ······································································································································ 228
stp tc-snooping ······································································································································· 228
stp timer forward-delay ··························································································································· 229
v
stp timer hello ········································································································································· 230
stp timer max-age ·································································································································· 231
stp timer-factor ······································································································································· 232
stp transmit-limit ····································································································································· 233
stp transparent enable ··························································································································· 233
stp vlan enable ······································································································································· 234
vlan-mapping modulo ····························································································································· 235
LLDP commands ······················································································· 237
display lldp local-information ·················································································································· 237
display lldp neighbor-information ··········································································································· 241
display lldp statistics ······························································································································· 247
display lldp status ··································································································································· 249
display lldp tlv-config ······························································································································ 252
lldp admin-status ···································································································································· 255
lldp check-change-interval ····················································································································· 256
lldp compliance admin-status cdp ·········································································································· 257
lldp compliance cdp ································································································································ 258
lldp enable ·············································································································································· 258
lldp encapsulation snap·························································································································· 259
lldp fast-count ········································································································································· 260
lldp global enable ··································································································································· 261
lldp global tlv-enable basic-tlv management-address-tlv ······································································· 261
lldp hold-multiplier ·································································································································· 263
lldp ignore-pvid-inconsistency ················································································································ 263
lldp management-address ······················································································································ 264
lldp management-address-format string ································································································ 265
lldp max-credit ········································································································································ 266
lldp mode ················································································································································ 267
lldp neighbor-identity chassis-id ············································································································· 268
lldp neighbor-identity port-id ··················································································································· 269
lldp neighbor-protection aging ················································································································ 270
lldp neighbor-protection validation ········································································································· 270
lldp notification med-topology-change enable ························································································ 271
lldp notification remote-change enable ·································································································· 272
lldp source-mac vlan ······························································································································ 273
lldp timer fast-interval ····························································································································· 274
lldp timer notification-interval ·················································································································· 274
lldp timer reinit-delay ······························································································································ 275
lldp timer tx-interval ································································································································ 275
lldp tlv-enable ········································································································································· 276
lldp transparent enable ··························································································································· 282
PFC commands ························································································· 284
display priority-flow-control ····················································································································· 284
priority-flow-control (Ethernet interface view) ························································································· 285
priority-flow-control (system view) ·········································································································· 286
priority-flow-control deadlock auto-recover action·················································································· 287
priority-flow-control deadlock auto-recover cos······················································································ 288
priority-flow-control deadlock cos ··········································································································· 289
priority-flow-control deadlock enable······································································································ 290
priority-flow-control deadlock precision ·································································································· 291
priority-flow-control deadlock recover ···································································································· 291
priority-flow-control deadlock recover-mode ·························································································· 292
priority-flow-control deadlock threshold·································································································· 293
priority-flow-control dot1p headroom ······································································································ 294
priority-flow-control dot1p ingress-buffer dynamic ················································································· 295
priority-flow-control dot1p ingress-buffer static ······················································································ 295
priority-flow-control dot1p ingress-threshold-offset ················································································ 296
priority-flow-control dot1p reserved-buffer ····························································································· 297
priority-flow-control early-warning inpps ································································································· 298
priority-flow-control early-warning outpps ······························································································ 299
vi
priority-flow-control no-drop dot1p (Ethernet interface view) ································································· 300
priority-flow-control no-drop dot1p (system view) ·················································································· 302
priority-flow-control config-style ·············································································································· 303
priority-flow-control poolid headroom ····································································································· 304
Service loopback group commands ··························································· 306
display service-loopback group ·············································································································· 306
port service-loopback group ··················································································································· 306
service-loopback group ·························································································································· 307
Cut-through Layer 2 forwarding commands ··············································· 309
cut-through enable ································································································································· 309
Document conventions and icons ······························································ 310
Conventions ··················································································································································· 310
Network topology icons ·································································································································· 311
Support and other resources ····································································· 312
Accessing Hewlett Packard Enterprise Support····························································································· 312
Accessing updates ········································································································································· 312
Websites ················································································································································ 313
Customer self repair ······························································································································· 313
Remote support ······································································································································ 313
Documentation feedback ······················································································································· 313
Index ·········································································································· 315
1
MAC address table commands
display mac-address
Use display mac-address to display MAC address entries.
Syntax
display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic | static ]
[ interface interface-type interface-number ] | blackhole ] [ vlan vlan-id ]
[ count ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
mac-address: Specifies a MAC address in the format of H-H-H. When entering a MAC address,
you can omit the leading zeros in each H section. For example, enter f-e2-1 for 000f-00e2-0001.
vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.
dynamic: Displays dynamic MAC address entries.
static: Displays static MAC address entries.
interface interface-type interface-number: Specifies an interface by its type and
number.
blackhole: Displays blackhole MAC address entries.
count: Displays only the number of MAC address entries that match all entry attributes you specify
in the command. Detailed information about MAC address entries is not displayed. For example, you
can use the display mac-address vlan 20 dynamic count command to display the number
of dynamic entries for VLAN 20. If you do not specify an entry attribute, the command displays the
number of entries in the MAC address table. If you do not specify this keyword, the command
displays detailed information about the specified MAC address entries.
Usage guidelines
A MAC address entry includes a destination MAC address, an outgoing interface, and a VLAN ID.
If you do not specify any parameters, the command displays all MAC address entries.
This command displays dynamic MAC address entries for an aggregate interface only when the
aggregate interface has a minimum of one Selected member port.
Examples
# Display MAC address entries for VLAN 100.
<Sysname> display mac-address vlan 100
MAC Address VLAN ID State Port/Nickname Aging
HGE1/0/2
0033-0033-0033 100 Blackhole N/A N
0000-0000-0002 100 Static HGE1/0/3 N
00e0-fc00-5829 100 Learned HGE1/0/4 Y
2
# Display the number of MAC address entries.
<Sysname> display mac-address count
1 mac address(es) found.
Table 1 Command output
Field Description
VLAN ID ID of the VLAN to which the outgoing interface of the MAC address entry
belongs.
State
MAC address entry state:
• Static—Static MAC address entry.
• Learned—Dynamic MAC address entry. Dynamic entries can be
learned or manually configured.
• Blackhole—Blackhole MAC address entry.
• OpenFlow—MAC address entry for an OpenFlow instance.
Port/Nickname When the field displays an interface name, the field indicates the outgoing
interface for packets that are destined for the MAC address. This field
displays N/A for a blackhole MAC address entry.
Aging Whether the entry can age out:
• Y—The entry can age out.
• N—The entry never ages out.
mac address(es) found Number of matching MAC address entries.
Related commands
mac-address
mac-address timer
display mac-address aging-time
Use display mac-address aging-time to display the aging timer for dynamic MAC address
entries.
Syntax
display mac-address aging-time
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the aging timer for dynamic MAC address entries.
<Sysname> display mac-address aging-time
MAC address aging time: 300s.
Related commands
mac-address timer
3
display mac-address mac-learning
Use display mac-address mac-learning to display the global MAC address learning status
and the MAC learning status of the specified interface or all interfaces.
Syntax
display mac-address mac-learning [ interface interface-type
interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and
number. If you do not specify an interface, the command displays the global MAC address learning
status and the MAC address learning status of all interfaces.
Examples
# Display the global MAC address learning status and the MAC learning status of all interfaces.
<Sysname> display mac-address mac-learning
Global MAC address learning status: Enabled.
Port Learning Status
HGE1/0/1 Enabled
HGE1/0/2 Enabled
Table 2 Command output
Field Description
Global MAC address learning status Global MAC address learning status:
• Enabled.
• Disabled.
Learning Status MAC address learning status of an interface:
• Enabled.
• Disabled.
Related commands
mac-address mac-learning enable
display mac-address mac-move
Use display mac-address mac-move to display the MAC address move records after the
device is started.
Syntax
display mac-address mac-move [ slot slot-number ]
4
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command
displays MAC address move records for all cards.
Usage guidelines
When a MAC address frequently moves between the specified two interfaces, Layer 2 loops might
occur in the network. To discover and locate loops, you can view the MAC address move records.
In the MAC address move records, records with the same MAC address, VLAN, source port, and
current port are considered to be one record.
A card can generate a maximum of 200 MAC address move records.
Examples
# Display the MAC address move records for a slot.
<Sysname> display mac-address mac-move slot 1
MAC address VLAN Current port Source port Last time Times
0000-0001-002c 1 HGE1/0/1 HGE1/0/2 2013-05-20 13:40:52 1
0000-0001-002c 1 HGE1/0/2 HGE1/0/1 2013-05-20 13:41:30 1
--- 2 MAC address moving records found ---
# Display the MAC address move records for all slots.
<Sysname> display mac-address mac-move
MAC address VLAN Current port Source port Last time Times
0000-0001-002c 1 HGE1/0/1 HGE1/0/2 2013-05-20 13:40:52 20
0000-0001-002c 1 HGE1/0/2 HGE1/0/1 2013-05-20 13:41:32 20
0000-0094-0001 1 HGE1/0/3 HGE1/0/4 2013-05-20 13:42:22 13
0000-0094-0001 1 HGE1/0/4 HGE1/0/3 2013-05-20 13:42:21 12
--- 4 MAC address moving records found ---
Table 3 Command output
Field
Description
VLAN VLAN to which the outgoing interface of the MAC address entry
belongs.
Current port Interface to which the MAC address was moved.
Source port Interface from which the MAC address was moved.
Last time Last time when the MAC address was moved.
Times
Number of MAC address moves after the device is started. For a MAC
address record, the number of MAC address moves is increased by 1
when a new MAC address move has the same MAC address, VLAN,
Current Port, and Source Port fields as the MAC address record.
Related commands
mac-address notification mac-move
5
display mac-address statistics
Use display mac-address statistics to display MAC address table statistics.
Syntax
display mac-address statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
This command displays the number of MAC address entries per type and the maximum number of
MAC address entries allowed for each type.
Examples
# Display MAC address table statistics.
<Sysname> display mac-address statistics
MAC Address Count:
Dynamic Unicast Address (Learned) Count: 3
Dynamic Unicast Address (Security-service-defined) Count: 4
Static Unicast Address (User-defined) Count: 0
Static Unicast Address (System-defined) Count: 3
Total Unicast MAC Addresses In Use: 10
Total Unicast MAC Addresses Available: 158720
Multicast and Multiport MAC Address Count: 0
Static Multicast and Multiport MAC Address (User-defined) Count: 0
Total Multicast and Multiport MAC Addresses Available: 256
Table 4 Command output
Field Description
Dynamic Unicast Address (Learned) Count Number of dynamic unicast MAC address entries
triggered by packets.
Dynamic Unicast Address
(Security-service-defined) Count Number of dynamic unicast MAC address entries
triggered by the security service.
Static Unicast Address (User-defined) Count Number of static unicast MAC address entries added
by users.
Static Unicast Address (System-defined) Count Number of static unicast MAC address entries added
by the system.
Total Unicast MAC Addresses In Use Number of unicast MAC address entries.
Total Unicast MAC Addresses Available Maximum number of unicast MAC address entries
allowed.
Multicast and Multiport MAC Address Count
This field is not supported in the current software
version.
Number of multicast and multiport unicast MAC
address entries.
6
Field Description
Static Multicast and Multiport MAC Address
(User-defined) Count
This field is not supported in the current software
version.
Number of static multicast and multiport unicast MAC
address entries added by users.
Total Multicast and Multiport MAC Addresses
Available
This field is not supported in the current software
version.
Maximum number of multicast and multiport unicast
MAC address entries allowed.
mac-address (interface view)
Use mac-address to add or modify a MAC address entry on an interface.
Use undo mac-address to delete a MAC address entry on an interface.
Syntax
mac-address { dynamic | static } mac-address vlan vlan-id
undo mac-address { dynamic | static } mac-address vlan vlan-id
Default
An interface is not configured with MAC address entries.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
dynamic: Specifies dynamic MAC address entries.
static: Specifies static MAC address entries.
mac-address: Specifies a MAC address in the format of H-H-H, excluding multicast, all-zero, and
all-F MAC addresses. When entering a MAC address, you can omit the leading zeros in each H
section. For example, enter f-e2-1 for 000f-00e2-0001.
vlan vlan-id: Specifies an existing VLAN to which the specified interface belongs. The value
range for the vlan-id argument is 1 to 4094.
Usage guidelines
Typically, the device automatically builds the MAC address table by learning the source MAC
addresses of incoming frames on each interface. However, you can manually configure static MAC
address entries. For a MAC address, a manually configured static entry takes precedence over a
dynamically learned entry. To improve the security for the user device connected to an interface,
manually configure a static entry to bind the user device to the interface. Then, the frames destined
for the user device (for example, Host A) are always sent out of the interface. Other hosts using the
forged MAC address of Host A cannot obtain the frames destined for Host A.
The MAC address entry configuration cannot survive a reboot unless you save it. The dynamic MAC
address entries, however, are lost upon reboot whether or not you save the configuration.
7
Examples
# Add a static entry for MAC address 000f-e201-0101 on HundredGigE 1/0/1 that belongs to VLAN
2.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] mac-address static 000f-e201-0101 vlan 2
# Add a static entry for MAC address 000f-e201-0101 on Bridge-Aggregation 1 that belongs to VLAN
1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] mac-address static 000f-e201-0102 vlan 1
Related commands
display mac-address
mac-address (system view)
mac-address (system view)
Use mac-address to add or modify a MAC address entry.
Use undo mac-address to delete one or all MAC address entries.
Syntax
mac-address { dynamic | static } mac-address interface interface-type
interface-number vlan vlan-id
mac-address blackhole mac-address vlan vlan-id
undo mac-address [ [ dynamic | static ] mac-address interface interface-type
interface-number vlan vlan-id ]
undo mac-address [ blackhole | dynamic | static ] [ mac-address ] vlan vlan-id
undo mac-address [ dynamic | static ] interface interface-type
interface-number
undo mac-address [ [ mac-address ] vlan vlan-id ]
Default
The system is not configured with MAC address entries.
Views
System view
Predefined user roles
network-admin
Parameters
dynamic: Specifies dynamic MAC address entries.
static: Specifies static MAC address entries.
blackhole: Specifies blackhole MAC address entries. Packets whose source or destination MAC
addresses match blackhole MAC address entries are dropped.
8
mac-address: Specifies a MAC address in the format of H-H-H, excluding multicast, all-zero, and
all-F MAC addresses. When entering a MAC address, you can omit the leading zeros in each H
section. For example, enter f-e2-1 for 000f-00e2-0001.
vlan vlan-id: Specifies an existing VLAN to which the interface belongs. The value range for the
vlan-id argument is 1 to 4094.
interface interface-type interface-number: Specifies an outgoing interface by its type
and number.
Usage guidelines
You can use this command to configure the following types of MAC address entries:
•
Dynamic entries.
Dynamic entries include manually configured dynamic entries and automatically learned
dynamic entries.
•
Static entries.
For a MAC address, a manually configured static entry takes precedence over a dynamic entry.
To improve the security for the user device connected to an interface, manually configure a
static entry to bind the user device to the interface. Then, the frames destined for the user
device (for example, Host A) are always sent out of the interface. Other hosts using the forged
MAC address of Host A cannot obtain the frames destined for Host A.
•
Blackhole entries.
To drop frames with the specified source MAC addresses or destination MAC addresses, you
can configure blackhole entries.
A static or blackhole entry can overwrite a dynamic entry, but not vice versa.
If you execute the undo mac-address command without specifying any parameters, this
command deletes all unicast MAC address entries and static multicast MAC address entries.
You can delete all the MAC address entries from the specified VLAN. You can also delete only one
type (dynamic, static, or blackhole) of MAC address entries. You can single out an interface and
delete the unicast MAC address entries on it.
The MAC address entry configuration cannot survive a reboot unless you save it. The dynamic MAC
address entries, however, are lost upon reboot whether or not you save the configuration.
Examples
# Add a static entry for MAC address 000f-e201-0101. Then, all frames that are destined for this
MAC address are sent out of HundredGigE 1/0/1, which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface hundredgige 1/0/1 vlan 2
Related commands
display mac-address
mac-address (interface view)
mac-address mac-learning enable
Use mac-address mac-learning enable to enable MAC address learning globally, on an
interface, or on a VLAN.
Use undo mac-address mac-learning enable to disable MAC address learning globally, on
an interface, or on a VLAN.
Syntax
mac-address mac-learning enable
9
undo mac-address mac-learning enable
Default
MAC address learning is enabled.
Views
System view
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
VLAN view
Predefined user roles
network-admin
Usage guidelines
To prevent the MAC address table from becoming saturated, you can disable MAC address learning.
For example, a number of packets with different source MAC addresses reaching a device can affect
the MAC address table update. To avoid such attacks, you can disable MAC address learning by
following these guidelines:
•
You can disable MAC address learning on a per-interface basis. If you disable MAC address
learning globally, MAC address learning is disabled for all interfaces. The device then stops
learning MAC addresses and cannot dynamically update the MAC address table.
•
Because disabling MAC address learning can result in broadcast storms, enable broadcast
storm suppression after you disable MAC address learning on an interface. For more
information about broadcast storm suppression, see Interface Configuration Guide.
•
With MAC address learning enabled globally, you can disable MAC address learning for an
interface or VLAN.
•
After MAC address learning is disabled, existing dynamic MAC address entries can age out.
This command does not take effect on VXLAN VSIs. For information about VXLAN VSIs, see VXLAN
Configuration Guide.
Examples
# Disable MAC address learning globally.
<Sysname> system-view
[Sysname] undo mac-address mac-learning enable
# Disable MAC address learning for VLAN 10.
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] undo mac-address mac-learning enable
# Disable MAC address learning on HundredGigE 1/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] undo mac-address mac-learning enable
# Disable MAC address learning on Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] undo mac-address mac-learning enable
Related commands
display mac-address mac-learning
10
mac-address mac-learning ingress
Use mac-address mac-learning ingress to configure the device to learn MAC addresses
at the ingress.
Use undo mac-address mac-learning ingress to restore the default.
Syntax
mac-address mac-learning ingress
undo mac-address mac-learning ingress
Default
The device learns MAC addresses at the egress.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The device can learn the source MAC address of a packet when it receives the packet or when it
sends out the packet. This command enables the device to learn the source MAC addresses of
packets before they are forwarded.
Examples
# Enable MAC address learning at the ingress.
<Sysname> system-view
[Sysname] mac-address mac-learning ingress
mac-address mac-move fast-update
Use mac-address mac-move fast-update to enable ARP fast update for MAC address
moves.
Use undo mac-address mac-move fast-update to disable ARP fast update for MAC address
moves.
Syntax
mac-address mac-move fast-update
undo mac-address mac-move fast-update
Default
ARP fast update is disabled for MAC address moves.
Views
System view
Predefined user roles
network-admin
Examples
# Enable ARP fast update for MAC address moves.
<Sysname> system-view
[Sysname] mac-address mac-move fast-update
11
mac-address notification mac-move
Use mac-address notification mac-move to enable MAC address move notifications and
optionally specify a MAC move detection interval.
Use undo mac-address notification mac-move to disable MAC address move
notifications.
Syntax
mac-address notification mac-move [ interval interval ]
undo mac-address notification mac-move
Default
MAC address move notifications are disabled.
Views
System view
Predefined user roles
network-admin
Parameters
interval interval: Specifies the interval for detecting MAC address moves, in the range of 1 to
60 minutes. If you do not specify this option, the default setting of 1 minute is used.
Usage guidelines
With MAC address move notifications enabled, the system records the MAC address move logs
every MAC move detection interval. Each record of the MAC address move logs contains the
following information:
•
MAC address.
•
VLAN ID of the MAC address entry.
•
Current port and source port of the MAC address moves.
•
Number of MAC address moves within a detection interval.
A MAC address can have only one MAC address move record. If a MAC address moves multiple
times, the new record overrides the old record.
Within a detection interval, each card can record MAC address move information for a maximum of
20 MAC addresses. The records are ranked in descending order of MAC move counts. When the
MAC move count of a new record is higher than the MAC move count of any existing record, the
device performs the following operations:
•
Discards the record that has the lowest MAC move count.
•
Ranks the MAC address move records in descending order of MAC move count.
Then in the next detection interval, the device discards all MAC address move records generated in
the previous detection interval and starts another round of MAC move record generation.
After you execute this command, the system sends only syslog messages to the information center
module. If the snmp-agent trap enable mac-address command is also executed, the
system also sends SNMP notifications to the SNMP module.
Examples
# Enable MAC address move notifications.
<Sysname> system-view
[Sysname] mac-address notification mac-move
[Sysname]
12
%May 14 17:16:45:688 2013 Sysname MAC/4/MAC_FLAPPING: MAC address 0000-0012-0034 in VLAN
500 has moved from port HGE1/0/1 to port HGE1/0/2 for 1 times
The output shows that:
•
The VLAN ID of MAC address 0000-0012-0034 is VLAN 500.
•
The MAC address moved from HundredGigE 1/0/1 to HundredGigE 1/0/2.
•
The MAC address has moved once within a MAC move detection interval.
Related commands
display mac-address mac-move
mac-address notification mac-move suppression (interface
view)
Use mac-address notification mac-move suppression to enable MAC address move
suppression on an interface.
Use undo mac-address notification mac-move suppression to disable MAC address
move suppression on an interface.
Syntax
mac-address notification mac-move suppression
undo mac-address notification mac-move suppression
Default
MAC address moves are not suppressed.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Usage guidelines
This feature shuts an interface down when a MAC address has been moved to or from the interface
more than the suppression threshold within a MAC move detection interval. The shutdown interface
automatically goes up after a suppression interval. Also, you can use the shutdown command and
then the undo shutdown command to bring up the interface.
When MAC address move suppression shuts an interface down, the system sends only syslog
messages to the information center module. If the snmp-agent trap enable mac-address
command is also executed, the system also sends SNMP notifications to the SNMP module.
Examples
# Enable MAC address move suppression on HundredGigE 1/0/1.
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] mac-address notification mac-move suppression
Related commands
mac-address notification mac-move suppression (system view)
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326

HPE R9F20A Reference guide

Category
Software
Type
Reference guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI