HPE Networking Comware 5120v3 Switch Series Layer 2—LAN Switching User guide

Category
Software
Type
User guide
HPE Networking Comware
5120v3 Switch
Series
LAN Switching 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
Ethernet interface commands ········································································ 1
Common Ethernet interface commands············································································································· 1
bandwidth ··················································································································································· 1
broadcast-suppression ······························································································································· 1
combo enable ············································································································································· 3
dampening ················································································································································· 4
default ························································································································································ 5
description ·················································································································································· 5
display counters ········································································································································· 6
display counters rate ·································································································································· 7
display ethernet statistics ··························································································································· 8
display interface ······································································································································· 10
display interface link-info ·························································································································· 19
display link-flap protection ························································································································ 21
duplex ······················································································································································· 22
eee enable ··············································································································································· 22
flow-control ··············································································································································· 23
flow-control receive enable ······················································································································ 24
flow-interval ·············································································································································· 24
ifmonitor crc-error ····································································································································· 25
ifmonitor input-error ·································································································································· 26
ifmonitor output-error ································································································································ 27
interface ··················································································································································· 28
jumboframe enable ·································································································································· 29
link-delay ·················································································································································· 30
link-flap protect enable ············································································································· 31
loopback ··················································································································································· 31
loopback-test ············································································································································ 32
multicast-suppression ······························································································································ 33
port auto-power-down ······························································································································ 34
port ifmonitor crc-error ······························································································································ 35
port ifmonitor input-error ··························································································································· 36
port ifmonitor output-error ························································································································ 37
port link-flap protect enable ········································································································ 38
port up-mode ············································································································································ 39
reset counters interface ···························································································································· 40
reset ethernet statistics ···························································································································· 40
shutdown ·················································································································································· 41
snmp-agent trap enable ifmonitor ············································································································ 42
speed ······················································································································································· 42
speed auto downgrade····························································································································· 43
unicast-suppression ································································································································· 44
Layer 2 Ethernet interface commands ············································································································· 45
display storm-constrain ···························································································································· 45
display virtual-cable-test ··························································································································· 47
mdix-mode ··············································································································································· 48
port bridge enable ···································································································································· 49
reset interface virtual-cable-test ··············································································································· 50
speed auto ··············································································································································· 50
storm-constrain ········································································································································ 51
storm-constrain control ····························································································································· 53
storm-constrain enable log ······················································································································· 53
storm-constrain enable trap ····················································································································· 54
storm-constrain interval ···························································································································· 54
virtual-cable-test ······································································································································· 55
ii
Loopback, null, and inloopback interface commands ··································· 58
bandwidth ················································································································································· 58
default ······················································································································································ 58
description ················································································································································ 59
display interface inloopback ····················································································································· 60
display interface loopback ························································································································ 62
display interface null ································································································································· 64
interface loopback ···································································································································· 66
interface null ············································································································································· 66
reset counters interface loopback ············································································································ 67
reset counters interface null ····················································································································· 67
shutdown ·················································································································································· 68
Bulk interface configuration commands ······················································· 69
display interface range ····························································································································· 69
interface range ········································································································································· 69
interface range name ······························································································································· 71
MAC address table commands ···································································· 73
display mac-address ································································································································ 73
display mac-address aging-time ·············································································································· 74
display mac-address hash-bucket-size ···································································································· 75
display mac-address hash-conflict-record································································································ 75
display mac-address mac-learning ·········································································································· 76
display mac-address mac-move ·············································································································· 77
display mac-address statistics ················································································································· 78
mac-address (interface view) ··················································································································· 79
mac-address (system view) ····················································································································· 81
mac-address hash-bucket-size ················································································································ 83
mac-address hash-conflict-record enable ································································································ 83
mac-address mac-learning enable ··········································································································· 84
mac-address mac-move fast-update········································································································ 85
mac-address mac-roaming enable··········································································································· 86
mac-address max-mac-count ··················································································································· 87
mac-address max-mac-count enable-forwarding ····················································································· 87
mac-address multicast-source packet-filter ······························································································ 88
mac-address notification mac-move ········································································································ 89
mac-address notification mac-move suppression (interface view) ··························································· 90
mac-address notification mac-move suppression (system view) ····························································· 91
mac-address timer ··································································································································· 91
snmp-agent trap enable mac-address ····································································································· 92
MAC Information commands ······································································· 94
mac-address information enable (interface view) ···················································································· 94
mac-address information enable (system view) ······················································································· 94
mac-address information interval ············································································································· 95
mac-address information mode ················································································································ 95
mac-address information queue-length ···································································································· 96
Ethernet link aggregation commands ··························································· 98
bandwidth ················································································································································· 98
default ······················································································································································ 98
description ················································································································································ 99
display interface ······································································································································· 99
display lacp system-id ···························································································································· 102
display link-aggregation load-sharing mode··························································································· 103
display link-aggregation member-port ···································································································· 104
display link-aggregation summary ·········································································································· 107
display link-aggregation verbose············································································································ 108
interface bridge-aggregation ·················································································································· 111
jumboframe enable ································································································································ 112
iii
lacp default-selected-port disable ·········································································································· 112
lacp edge-port ········································································································································ 113
lacp mode ··············································································································································· 113
lacp period short ····································································································································· 114
lacp select speed ··································································································································· 114
lacp system-mac ···································································································································· 115
lacp system-number ······························································································································· 116
lacp system-priority ································································································································ 117
link-aggregation bfd ipv4 ························································································································ 117
link-aggregation global load-sharing mode ···························································································· 118
link-aggregation lacp traffic-redirect-notification enable ········································································· 119
link-aggregation load-sharing mode local-first ······················································································· 120
link-aggregation mode ···························································································································· 121
link-aggregation port-priority ·················································································································· 122
link-aggregation selected-port maximum ······························································································· 122
link-aggregation selected-port minimum ································································································ 123
link-delay ················································································································································ 124
port link-aggregation group ···················································································································· 125
port s-mlag group ··································································································································· 126
reset counters interface ·························································································································· 127
reset lacp statistics ································································································································· 127
shutdown ················································································································································ 128
Port isolation commands············································································ 129
display port-isolate group ······················································································································· 129
port-isolate enable ·································································································································· 130
port-isolate group ··································································································································· 130
Spanning tree commands ·········································································· 132
active region-configuration ····················································································································· 132
bpdu-drop any ········································································································································ 132
check region-configuration ····················································································································· 133
display stp ·············································································································································· 134
display stp abnormal-port ······················································································································· 141
display stp bpdu-statistics ······················································································································ 142
display stp down-port ····························································································································· 144
display stp history ··································································································································· 145
display stp region-configuration ············································································································· 147
display stp root ······································································································································· 148
display stp tc ·········································································································································· 148
instance ·················································································································································· 149
region-name ··········································································································································· 151
reset stp ················································································································································· 151
revision-level ·········································································································································· 152
snmp-agent trap enable stp ··················································································································· 153
stp bpdu-protection ································································································································ 154
stp bridge-diameter ································································································································ 154
stp compliance ······································································································································· 155
stp config-digest-snooping ····················································································································· 156
stp cost ··················································································································································· 157
stp dispute-protection ····························································································································· 158
stp edged-port ········································································································································ 159
stp enable ··············································································································································· 160
stp global config-digest-snooping··········································································································· 161
stp global enable ···································································································································· 161
stp global mcheck ·································································································································· 162
stp ignore-pvid-inconsistency ················································································································· 163
stp log enable tc ····································································································································· 164
stp loop-protection ·································································································································· 164
stp max-hops ·········································································································································· 165
stp mcheck ············································································································································· 165
stp mode ················································································································································ 166
iv
stp no-agreement-check ························································································································ 167
stp pathcost-standard ····························································································································· 168
stp point-to-point ···································································································································· 169
stp port bpdu-protection ························································································································· 170
stp port priority ······································································································································· 171
stp port shutdown permanent ················································································································· 172
stp port-log ············································································································································· 172
stp priority ··············································································································································· 173
stp pvst-bpdu-protection ························································································································· 174
stp region-configuration ·························································································································· 175
stp role-restriction ··································································································································· 175
stp root primary ······································································································································ 176
stp root secondary ·································································································································· 177
stp root-protection ·································································································································· 178
stp tc-protection ······································································································································ 179
stp tc-protection threshold ······················································································································ 179
stp tc-restriction ······································································································································ 180
stp tc-snooping ······································································································································· 180
stp timer forward-delay ··························································································································· 181
stp timer hello ········································································································································· 182
stp timer max-age ·································································································································· 183
stp timer-factor ······································································································································· 184
stp transmit-limit ····································································································································· 185
stp vlan enable ······································································································································· 186
vlan-mapping modulo ····························································································································· 186
Loop detection commands ········································································· 188
display loopback-detection ····················································································································· 188
loopback-detection action ······················································································································ 189
loopback-detection enable ····················································································································· 190
loopback-detection global action ············································································································ 190
loopback-detection global enable··········································································································· 191
loopback-detection interval-time ············································································································ 192
VLAN commands ······················································································· 193
Basic VLAN commands ································································································································· 193
bandwidth ··············································································································································· 193
default ···················································································································································· 193
description ·············································································································································· 194
display interface vlan-interface··············································································································· 195
display vlan ············································································································································ 197
display vlan brief ···································································································································· 198
interface vlan-interface ··························································································································· 199
mtu ························································································································································· 200
name ······················································································································································ 201
reset counters interface vlan-interface ··································································································· 202
shutdown ················································································································································ 202
vlan ························································································································································· 203
Port-based VLAN commands ························································································································ 204
display port ············································································································································· 204
port ························································································································································· 205
port access vlan ····································································································································· 206
port hybrid pvid ······································································································································· 206
port hybrid vlan ······································································································································· 207
port link-type ··········································································································································· 208
port trunk permit vlan ····························································································································· 209
port trunk pvid ········································································································································ 210
MAC-based VLAN commands ······················································································································· 210
display mac-vlan ···································································································································· 210
display mac-vlan interface ······················································································································ 212
mac-vlan enable ····································································································································· 212
mac-vlan mac-address ··························································································································· 213
v
mac-vlan trigger enable ·························································································································· 214
port pvid forbidden ································································································································· 214
vlan precedence ····································································································································· 215
IP subnet-based VLAN commands ················································································································ 216
display ip-subnet-vlan interface·············································································································· 216
display ip-subnet-vlan vlan ····················································································································· 217
ip-subnet-vlan ········································································································································· 218
port hybrid ip-subnet-vlan ······················································································································· 219
Protocol-based VLAN commands ·················································································································· 220
display protocol-vlan interface ················································································································ 220
display protocol-vlan vlan ······················································································································· 221
port hybrid protocol-vlan ························································································································· 222
protocol-vlan ··········································································································································· 223
VLAN group commands ································································································································· 225
display vlan-group ·································································································································· 225
vlan-group ·············································································································································· 226
vlan-list ··················································································································································· 226
Private VLAN commands ··········································································· 228
display private-vlan ································································································································ 228
port private-vlan host ······························································································································ 230
port private-vlan promiscuous ················································································································ 231
port private-vlan trunk promiscuous ······································································································· 234
port private-vlan trunk secondary ··········································································································· 236
private-vlan (VLAN interface view) ········································································································· 239
private-vlan (VLAN view) ························································································································ 241
private-vlan community ·························································································································· 242
private-vlan isolated ······························································································································· 243
private-vlan primary ································································································································ 245
Voice VLAN commands ············································································· 246
display voice-vlan mac-address ············································································································· 246
display voice-vlan state ·························································································································· 246
voice-vlan aging ····································································································································· 247
voice-vlan enable ··································································································································· 248
voice-vlan mac-address ························································································································· 249
voice-vlan mode auto ····························································································································· 250
voice-vlan security enable ······················································································································ 251
voice-vlan track lldp ································································································································ 251
MVRP commands ······················································································ 253
display mvrp running-status ··················································································································· 253
display mvrp state ·································································································································· 254
display mvrp statistics ···························································································································· 255
mrp timer join ········································································································································· 257
mrp timer leave ······································································································································ 258
mrp timer leaveall ··································································································································· 259
mrp timer periodic ·································································································································· 260
mvrp enable ··········································································································································· 261
mvrp global enable ································································································································· 261
mvrp gvrp-compliance enable ················································································································ 262
mvrp registration ···································································································································· 262
reset mvrp statistics ······························································································································· 263
QinQ commands ························································································ 265
display qinq ············································································································································ 265
qinq enable ············································································································································· 266
qinq ethernet-type (interface view) ········································································································· 266
qinq ethernet-type (system view) ··········································································································· 267
qinq transparent-vlan ····························································································································· 268
vi
VLAN mapping commands ········································································ 270
display vlan mapping ······························································································································ 270
vlan mapping ·········································································································································· 271
LLDP commands ······················································································· 274
cdp voice-vlan ········································································································································ 274
display lldp local-information ·················································································································· 274
display lldp neighbor-information ··········································································································· 279
display lldp statistics ······························································································································· 284
display lldp status ··································································································································· 286
display lldp tlv-config ······························································································································ 288
lldp admin-status ···································································································································· 291
lldp check-change-interval ····················································································································· 292
lldp compliance admin-status cdp ·········································································································· 293
lldp compliance cdp ································································································································ 294
lldp enable ·············································································································································· 295
lldp encapsulation snap·························································································································· 295
lldp fast-count ········································································································································· 296
lldp global enable ··································································································································· 297
lldp global tlv-config basic-tlv port-id ······································································································ 297
lldp global tlv-enable basic-tlv management-address-tlv ······································································· 298
lldp hold-multiplier ·································································································································· 300
lldp ignore-pvid-inconsistency ················································································································ 300
lldp local-information all-interface··········································································································· 301
lldp management-address ······················································································································ 302
lldp management-address-format string ································································································ 303
lldp max-credit ········································································································································ 304
lldp mode ················································································································································ 304
lldp notification med-topology-change enable ························································································ 305
lldp notification remote-change enable ·································································································· 305
lldp source-mac vlan ······························································································································ 306
lldp timer fast-interval ····························································································································· 307
lldp timer notification-interval ·················································································································· 308
lldp timer reinit-delay ······························································································································ 308
lldp timer tx-interval ································································································································ 309
lldp tlv-config basic-tlv port-id ················································································································· 309
lldp tlv-enable ········································································································································· 310
lldp tlv-enable private-tlv ························································································································ 315
reset lldp statistics ·································································································································· 316
L2PT commands ······················································································· 318
display l2protocol statistics ····················································································································· 318
l2protocol tunnel dot1q ··························································································································· 319
l2protocol tunnel-dmac ··························································································································· 321
l2protocol type tunnel-dmac ··················································································································· 321
reset l2protocol statistics ························································································································ 323
PPPoE relay commands ············································································ 324
PPPoE relay commands ································································································································ 324
display pppoe-relay client-information ···································································································· 324
display pppoe-relay statistics ················································································································· 325
pppoe-relay client-information format ····································································································· 326
pppoe-relay client-information strategy ·································································································· 328
pppoe-relay enable ································································································································ 329
pppoe-relay server-information vendor-specific strip ············································································· 330
pppoe-relay trust ···································································································································· 330
reset pppoe-relay statistics ···················································································································· 331
Document conventions and icons ······························································ 333
Conventions ··················································································································································· 333
Network topology icons ·································································································································· 334
vii
Support and other resources ····································································· 335
Accessing Hewlett Packard Enterprise Support····························································································· 335
Accessing updates ········································································································································· 335
Websites ················································································································································ 336
Customer self repair ······························································································································· 336
Remote support ······································································································································ 336
Documentation feedback ······················································································································· 336
Index ·········································································································· 338
1
Ethernet interface commands
Common Ethernet interface commands
bandwidth
Use bandwidth to set the expected bandwidth of an interface.
Use undo bandwidth to restore the default.
Syntax
bandwidth bandwidth-value
undo bandwidth
Default
The expected bandwidth (in kbps) is the interface baud rate divided by 1000.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.
Usage guidelines
The expected bandwidth is an informational parameter used only by higher-layer protocols for
calculation. You cannot adjust the actual bandwidth of an interface by using this command.
Examples
# Set the expected bandwidth of GigabitEthernet 1/0/1 to 1000 kbps.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] bandwidth 1000
Related commands
speed
broadcast-suppression
Use broadcast-suppression to enable broadcast suppression and set the broadcast
suppression threshold.
Use undo broadcast-suppression to disable broadcast suppression.
Syntax
broadcast-suppression { ratio | pps max-pps | kbps max-kbps }
undo broadcast-suppression
2
Default
Ethernet interfaces do not suppress broadcast traffic.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
ratio: Sets the broadcast suppression threshold as a percentage of the interface bandwidth. The
value range for this argument is 0 to 100. A smaller value means that less broadcast traffic is allowed
to pass through.
pps max-pps: Specifies the maximum number of broadcast packets that the interface can forward
per second. The value range for the max-pps argument (in pps) is 0 to 1.4881 Ă— the interface
bandwidth.
kbps max-kbps: Specifies the maximum number of kilobits of broadcast traffic that the Ethernet
interface can forward per second. The value range for this argument (in kbps) is 0 to the interface
bandwidth.
Usage guidelines
The broadcast storm suppression features limits the size of broadcast traffic to a threshold on an
interface. When the broadcast traffic on the interface exceeds this threshold, the system drops
packets until the traffic drops below this threshold.
Both the storm-constrain command and the broadcast-suppression command can
suppress broadcast storms on a port. The broadcast-suppression command uses the chip to
physically suppress broadcast traffic. It has less influence on the device performance than the
storm-constrain command, which uses software to suppress broadcast traffic.
For the traffic suppression result to be determined, do not configure both the storm-constrain
broadcast command and the broadcast-suppression command on an interface.
When you configure the suppression threshold in kbps, the actual suppression threshold might be
different from the configured one as follows:
•
If the configured value is smaller than 64, the value of 64 takes effect.
•
If the configured value is greater than 64 but not an integer multiple of 64, the integer multiple of
64 that is greater than and closest to the configured value takes effect.
For the suppression threshold that takes effect, see the prompt on the device.
Examples
# Set the broadcast suppression threshold to 10000 kbps on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] broadcast-suppression kbps 10000
The actual value is 10048 on port GigabitEthernet1/0/1 currently.
The output shows that the value that takes effect is 10048 kbps (157 times of 64), because the chip
only supports step 64.
Related commands
multicast-suppression
unicast-suppression
3
combo enable
Use combo enable to activate the copper or fiber combo port of a combo interface.
Syntax
combo enable { auto | copper | fiber }
Default
The copper or fiber combo port is automatically activated depending on the medium inserted in the
combo interface.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
auto: Automatically identifies the media inserted and activates the corresponding combo port.
copper: Activates the copper combo port. In this case, use twisted pairs to connect the port.
fiber: Activates the fiber combo port. In this case, use optical fibers to connect the port.
Usage guidelines
A combo interface is a logical interface that physically contains one fiber combo port and one copper
combo port on the device panel. The two ports share one forwarding interface. As a result, they
cannot work simultaneously. When you activate either port, the other port is automatically disabled.
You can select to activate the copper combo port or fiber combo port.
This command is available only on devices that support combo interfaces.
If you execute the combo enable auto command on a combo interface and the combo interface
is connected to cables or optical fibers, you can use the display interface command to display
the interface information.
•
If the display interface command output contains "Media type is twisted pair," the copper
combo port is activated.
•
Otherwise, the fiber combo port is activated.
Before using this command, perform the following tasks according to the marks on the device panel:
•
Determine the combo interfaces on your device.
•
Identify the two physical interfaces that belong to each combo interface.
Examples
# Activate the copper combo port of combo interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] combo enable copper
# Activate the fiber combo port of combo interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] combo enable fiber
4
dampening
Use dampening to enable the device to dampen an interface when the interface is flapping.
Use undo dampening to restore the default.
Syntax
dampening [ half-life reuse suppress max-suppress-time ]
undo dampening
Default
Interface dampening is disabled on Ethernet interfaces.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
half-life: Specifies the amount of time after which a penalty is decreased, in the range of 1 to
120 seconds. The default value is 54 seconds.
reuse: Specifies the reuse threshold in the range of 200 to 20000. The default value is 750. The
reuse threshold must be less than the suppression threshold.
suppress: Specifies the suppression threshold in the range of 200 to 20000. The default value is
2000.
max-suppress-time: Specifies the maximum amount of time the interface can be dampened, in
the range of 1 to 255 seconds. The default value is 162 seconds (three times the half-life timer).
Usage guidelines
When configuring the dampening command, follow these rules to set the values mentioned above:
•
The ceiling is equal to 2 (Max-suppress-time/Decay) Ă— reuse-limits. It is not user configurable.
•
The configured suppress limit is lower than or equal to the ceiling.
•
The ceiling is lower than or equal to the maximum suppress limit supported.
This command, the link-delay command, and the port link-flap protect enable
command are mutually exclusive on an interface.
This command does not take effect on the administratively down events. When you execute the
shutdown command, the penalty restores to 0, and the interface reports the down event to the
higher layer protocols.
After an interface in down state is dampened, the interface state displayed through the display
interface command is always down.
Examples
# Enable interface dampening on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] dampening
# Enable interface dampening on GigabitEthernet 1/0/1, and set the following parameters:
•
Half life time to 2 seconds.
•
Reuse value to 800.
5
•
Suppression threshold to 3000.
•
Maximum suppression interval to 5 seconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] dampening 2 800 3000 5
Related commands
display interface
link-delay
port link-flap protect enable
default
Use default to restore the default settings for an interface.
Syntax
default
Views
Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
CAUTION:
The
default command might interrupt ongoing network services. Make sure you are fully aware of
the impacts of this command when you use it in a live network.
This command might fail to restore the default settings for some commands because of command
dependencies or system restrictions. You can use the display this command in interface view to
identify these commands, and use their undo forms or follow the command reference to restore their
default settings. If your restoration attempt still fails, follow the error message instructions to solve
the problem.
Examples
# Restore the default settings for GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] default
description
Use description to configure the description of an interface.
Use undo description to restore the default.
Syntax
description text
undo description
6
Default
The description of an interface is the interface name plus Interface (for example,
GigabitEthernet1/0/1 Interface).
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
text: Specifies the interface description, a case-sensitive string of 1 to 255 characters.
Examples
# Set the description of GigabitEthernet 1/0/1 to lan-interface.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] description lan-interface
display counters
Use display counters to display interface traffic statistics.
Syntax
display counters { inbound | outbound } interface [ interface-type
[ interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
inbound: Displays inbound traffic statistics.
outbound: Displays outbound traffic statistics.
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Usage guidelines
To clear the Ethernet interface traffic statistics, use the reset counters interface command.
If you do not specify an interface type, this command displays traffic statistics for all interfaces that
have traffic counters.
If you specify an interface type but do not specify an interface number, this command displays traffic
statistics for all interfaces of the specified type.
If you specify an interface type and number, this command displays traffic statistics for the specified
interface.
Examples
# Display inbound traffic statistics for all interfaces.
7
<Sysname> display counters inbound interface
Interface Total (pkts) Broadcast (pkts) Multicast (pkts) Err (pkts)
GE1/0/1 100 100 0 0
GE1/0/2 Overflow Overflow Overflow Overflow
Overflow: More than 14 digits (7 digits for column "Err").
--: Not supported.
Table 1 Command output
Field
Description
Interface Abbreviated interface name.
Total (pkts) Total number of packets received or sent through the interface.
Broadcast (pkts) Total number of broadcast packets received or sent through the interface.
Multicast (pkts) Total number of multicast packets received or sent through the interface.
Err (pkts) Total number of error packets received or sent through the interface.
Overflow: More than 14
digits (7 digits for column
"Err")
The command displays Overflow when any of the following conditions exist:
• The data length of an Err field value is greater than 7 decimal digits.
• The data length of a non-Err field value is greater than 14 decimal digits.
--: Not supported The statistical item is not supported.
Related commands
reset counters interface
display counters rate
Use display counters rate to display traffic rate statistics for interfaces in up state for the most
recent statistics polling interval.
Syntax
display counters rate { inbound | outbound } interface [ interface-type
[ interface-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
inbound: Displays inbound traffic rate statistics.
outbound: Displays outbound traffic rate statistics.
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Usage guidelines
If you do not specify an interface type, this command displays traffic rate statistics for all up
interfaces that have traffic counters.
8
If you specify an interface type but do not specify an interface number, this command displays traffic
rate statistics for all up interfaces of the specified type.
If you specify an interface type and an interface, this command displays traffic rate statistics for the
specified interface.
If an interface that you specify is always down for the most recent statistics polling interval, the
system prompts that the interface does not support the command.
To set the statistics polling interval, use the flow-interval command.
Examples
# Display the inbound traffic rate statistics for all interfaces.
<Sysname> display counters rate inbound interface
Usage: Bandwidth utilization in percentage
Interface Usage (%) Total (pps) Broadcast (pps) Multicast (pps)
GE1/0/1 0 0 -- --
Overflow: More than 14 digits.
--: Not supported.
Table 2 Command output
Field
Description
Interface Abbreviated interface name.
Usage (%) Bandwidth usage (in percentage) of the interface for the last statistics polling
interval.
Total (pps) Average receiving or sending rate (in pps) for unicast packets for the last
statistics polling interval.
Broadcast (pps) Average receiving or sending rate (in pps) for broadcast packets for the last
statistics polling interval.
Multicast (pps) Average receiving or sending rate (in pps) for multicast packets for the last
statistics polling interval. .
Overflow: more than 14
decimal digits The command displays Overflow if the data length of a statistical item is
greater than 14 decimal digits.
--: not supported The statistical item is not supported.
Related commands
flow-interval
reset counters interface
display ethernet statistics
Use display ethernet statistics to display the Ethernet module statistics.
Syntax
display ethernet statistics slot slot-number
Views
Any view
Predefined user roles
network-admin
9
network-operator
Parameters
slot slot-number: Specifies an IRF member device by its member ID.
Examples
# Display the Ethernet module statistics for the specified slot.
<Sysname> display ethernet statistics slot 1
ETH receive packet statistics:
Totalnum : 10447 ETHIINum : 4459
SNAPNum : 0 RAWNum : 0
LLCNum : 0 UnknownNum : 0
ForwardNum : 4459 ARP : 0
MPLS : 0 ISIS : 0
ISIS2 : 0 IP : 0
IPV6 : 0
ETH receive error statistics:
NullPoint : 0 ErrIfindex : 0
ErrIfcb : 0 IfShut : 0
ErrAnalyse : 5988 ErrSrcMAC : 5988
ErrHdrLen : 0
ETH send packet statistics:
L3OutNum : 211 VLANOutNum : 0
FastOutNum : 155 L2OutNum : 0
ETH send error statistics:
MbufRelayNum : 0 NullMbuf : 0
ErrAdjFwd : 0 ErrPrepend : 0
ErrHdrLen : 0 ErrPad : 0
ErrQoSTrs : 0 ErrVLANTrs : 0
ErrEncap : 0 ErrTagVLAN : 0
IfShut : 0 IfErr : 0
Table 3 Output description
Field
Description
ETH receive packet
statistics
Statistics about the Ethernet packets received by the Ethernet module:
• Totalnum—Total number of received packets.
• ETHIINum—Number of packets encapsulated by using Ethernet II.
• SNAPNum—Number of packets encapsulated by using SNAP.
• RAWNum—Number of packets encapsulated by using RAW.
• ISISNum—Number of packets encapsulated by using ISIS. This field is
not supported in the current software version.
• LLCNum—Number of packets encapsulated by using LLC.
• UnknownNum—Number of packets encapsulated by using unknown
methods.
• ForwardNum—Number of packets forwarded at Layer 2 or sent to the
CPU.
• ARP—Number of ARP packets.
• MPLS—Number of MPLS packets. This field is not supported in the
current software version.
• ISIS—Number of IS-IS packets. This field is not supported in the current
10
Field
Description
software version.
• ISIS2—Number of large 802.3/802.2 frames encapsulated by using
IS-IS. This field is not supported in the current software version.
• IP—Number of IP packets.
• IPv6—Number of IPv6 packets.
ETH receive error statistics
Statistics about the error Ethernet packets in the inbound direction on the
Ethernet module. Errors might be included in packets or occur during the
receiving process. The items include:
• NullPoint—Number of packets that include null pointers.
• ErrIfindex—Number of packets that include incorrect interface indexes.
• ErrIfcb—Number of packets that include incorrect interface control
blocks.
• IfShut—
Number of packets that are being received when the interface is
shut down.
• ErrAnalyse—Number of packets that include packet parsing errors.
• ErrSrcMAC—Number of packets that include incorrect source MAC
addresses.
•
ErrHdrLen
—Number of packets that include header length errors.
ETH send packet statistics
Statistics about the Ethernet packets sent by the Ethernet module:
• L3OutNum—Number of packets sent out of Layer 3 Ethernet interfaces.
This field is not supported in the current software version.
• VLANOutNum—Number of packets sent out of VLAN interfaces.
• FastOutNum—Number of packets fast forwarded.
• L2OutNum—Number of packets sent out of Layer 2 Ethernet interfaces.
•
MbufRelayNum
—Number of packets transparently sent.
ETH send error statistics
Statistics about the error Ethernet packets in the outbound direction on the
Ethernet module:
• NullMbuf—Number of packets with null pointers.
• ErrAdjFwd—Number of packets with adjacency table errors.
• ErrPrepend—Number of packets with extension errors.
• ErrHdrLen—Number of packets with header length errors.
• ErrPad—Number of packets with padding errors.
• ErrQoSTrs—Number of packets that failed to be sent by QoS.
• ErrVLANTrs—Number of packets that failed to be sent in VLANs.
• ErrEncap—Number of packets that failed to be sent due to link header
encapsulation failures.
• ErrTagVLAN—
Number of packets that failed to be sent due to VLAN tag
encapsulation failures.
• IfShut—Number of packets that are being sent when the interface is shut
down.
• IfErr—Number of packets with incorrect outgoing interfaces.
Related commands
reset ethernet statistics
display interface
Use display interface to display interface information.
11
Syntax
display interface [ interface-type [ interface-number ] ] [ brief
[ description | down ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
brief: Displays brief interface information. If you do not specify this keyword, the command
displays detailed interface information.
description: Displays complete interface descriptions. If you do not specify this keyword, the
command displays only the first 27 characters of each interface description.
down: Displays information about interfaces in down state and the causes. If you do not specify this
keyword, the command displays information about interfaces in all states.
Usage guidelines
If you do not specify an interface type, this command displays information about all interfaces.
If you specify an interface type but do not specify an interface number, this command displays
information about all interfaces of the specified type.
Examples
# Display detailed information about Layer 2 interface GigabitEthernet 1/0/1.
<Sysname> display interface gigabitethernet 1/0/1
GigabitEthernet1/0/1
Current state: DOWN
Line protocol state: DOWN
IP packet frame type: Ethernet II, hardware address: 000c-2963-b767
Description: GigabitEthernet1/0/1 Interface
Bandwidth: 100000 kbps
Loopback is not set
Media type is twisted pair, port hardware type is 1000_BASE_T_AN_SFP
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
Maximum frame length: 9216
Allow jumbo frame to pass
Broadcast max-ratio: 100%
Multicast max-ratio: 100%
Unicast max-ratio: 100%
PVID: 1
MDI type: Automdix
Port link-type: Access
Tagged VLANs: None
  • 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
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350

HPE Networking Comware 5120v3 Switch Series Layer 2—LAN Switching User guide

Category
Software
Type
User guide

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

Finding information in a document is now easier with AI