H3C S5500-SI Series Configuration manual

Category
Networking
Type
Configuration manual

This manual is also suitable for

H3C S5500-SI/EI Series Ethernet Switches
Layer 2 - LAN Switching Configuration Guide
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 2208
Document version: 6W100-20101224
Copyright © 2010, Hangzhou H3C Technologies Co., Ltd. and its licensors
All rights reserved
No part of this manual may be reproduced or transmitted in any form or by any means
without prior written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C,
, Aolynk, , H
3
Care,
, TOP G, , IRF, NetPilot, Neocean,
NeoVTL, SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG,
V
2
G, V
n
G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou
H3C Technologies Co., Ltd.
All other trademarks that may be mentioned in this manual are the property of their
respective owners
Notice
The information in this document is subject to change without notice. Every effort has been
made in the preparation of this document to ensure accuracy of the contents, but all
statements, information, and recommendations in this document do not constitute the
warranty of any kind, express or implied.
Preface
The H3C S5500-SI/EI documentation set includes 10 configuration guides, which describe
the software features for the H3C S5500-SI and S5500-EI Series Ethernet Switches,
Release2208, and guide you through the software configuration procedures. These
configuration guides also provide configuration examples to help you apply software
features to different network scenarios.
The Layer 2—LAN Switching Configuration Guide describes LAN switching fundamentals
and configuration. It describes how to implement flow control and load sharing, isolate
uses in the same VLAN, eliminate Layer 2 loops, divide VLANs, transmit customer network
packets through the public network, and modify VLAN tags for packets.
This preface includes:
Audience
Added and modified features
Conventions
About the H3C S5500-SI/EI documentation set
Obtaining documentation
Technical support
Documentation feedback
Audience
This documentation is intended for:
Network planners
Field technical support and servicing engineers
Network administrators working with the S5500-SI/EI series
Added and modified features
Compared to Release2202, Release2208 adds the following features:
Configuration guide Added and modified features
Ethernet interface
configuration
Added features:
Configuring the link mode for an Ethernet interface, and
configuring flow control, the physical state change
suppression interval, loopback testing, the statistics polling
interval, and auto power-down for a Layer 3 Ethernet
interface (available only on the S5500-EI)
Configuring link down suppression
Configuring the MTU for a Layer 3 Ethernet interface
Configuring single-port loopback and multi-port loopback
detection
Enabling auto power-down on an Ethernet interface for
energy efficiency
Enabling bridging on a Layer 2 Ethernet interface
Configuration guide Added and modified features
Loopback and null interface
configuration
MAC address table
configuration
MAC Information configuration
Ethernet link aggregation
configuration
Added features:
Setting the LACP timeout interval
Enabling local-first load sharing for link aggregation
Enabling link aggregation traffic redirection
Port Isolation configuration
MSTP configuration Added features: Displaying the BPDU statistics on ports
BPDU tunneling configuration
VLAN configuration
Added features: Configuring dynamic MAC-based VLAN
assignment
Super VLAN configuration
(available only on the S5500-EI)
Added features: Super VLAN
Isolate-User-VLAN configuration
Added features:
Configuring the isolate-user-VLAN type for a port
Configuring Layer 2 isolation for ports in the same secondary
VLAN
Voice VLAN configuration
Added features: Configuring the QoS priority settings for voice
packets
GVRP configuration
QinQ configuration
Added features:
VLAN transparent transmission
Inner-outer VLAN 802.1p priority mapping
Inner VLAN ID substitution (available only on the S5500-EI)
VLAN mapping configuration
(available only on the S5500-EI)
LLDP configuration
Added features: Support of Layer 3 Ethernet interfaces for LLDP
(available only on the S5500-EI)
Service loopback group
configuration (available only
on the S5500-EI)
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention Description
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[ ]
Square brackets enclose syntax choices (keywords or arguments) that are
optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars,
from which you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical
bars, from which you select one or none.
{ x | y | ... } *
Asterisk marked braces enclose a set of required syntax choices separated by
vertical bars, from which you select at least one.
[ x | y | ... ] *
Asterisk marked square brackets enclose optional syntax choices separated
by vertical bars, from which you may select multiple choices or none.
&<1-n>
The argument or keyword and argument combination before the ampersand
(&) sign can be entered 1 to n times.
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Description
Boldface
Window names, button names, field names, and menu items are in Boldface.
For example, the New User window appears; click OK.
>
Multi-level menus are separated by angle brackets. For example, File > Create
> Folder.
Symbols
Convention Description
WARNING
An alert that calls attention to important information that if not understood or
followed can result in personal injury.
CAUTION
An alert that calls attention to important information that if not understood or
followed can result in data loss, data corruption, or damage to hardware or
software.
IMPORTANT
An alert that calls attention to essential information.
NOTE
An alert that contains additional or supplementary information.
TIP
An alert that provides helpful information.
Network topology icons
Represents a generic network device, such as a router, switch, or firewall.
Represents a routing-capable device, such as a router or Layer 3 switch.
Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router
that supports Layer 2 forwarding and other Layer 2 features.
About the H3C S5500-SI/EI documentation set
The H3C S5500-SI/EI documentation set includes:
Category Documents Purposes
Marketing brochures Describe product specifications and benefits.
Technology white papers
Provide an in-depth description of software
features and technologies.
PSR150-A [ PSR150-D ] Power
Modules User Manual
Describes the appearances, features,
specifications, installation, and removal of the
pluggable 150W power modules available for
the products.
RPS User Manual
Describes the appearances, features, and
specifications of the RPS units available for the
products.
RPS Ordering Information for
H3C Low-End Ethernet
Switches
Provides the RPS and switch compatibility matrix
and RPS cable specifications.
H3C Low End Series Ethernet
Switches Pluggable Modules
Manual
Describes the models, appearances, and
specifications of the pluggable modules
available for the products.
Product
description
and
specifications
Interface Card User Manual
Describes the appearance and specifications
of interface cards.
Quick Start
Provides regulatory information and the safety
instructions that must be followed during
installation.
Guides you through initial installation and setup
procedures to help you quickly set up and use
your device with the minimum configuration.
Installation Guide
Provides a complete guide to hardware
installation and hardware specifications.
Pluggable SFP[SFP+][XFP]
Transceiver Modules
Installation Guide
Guides you through installing SFP/SFP+/XFP
transceiver modules.
Hardware
installation
Interface Card User Manual Describes how to install an interface card.
Configuration guides
Describe software features and configuration
procedures.
Software
configuration
Command references
Provide a quick reference to all available
commands.
H3C Series Ethernet Switches
Login Password Recovery
Manual
Describes how to find or recover a lost
password.
Operations
and
maintenance
Release notes
Provide information about the product release,
including the version history, hardware and
software compatibility matrix, version upgrade
information, technical support information, and
software upgrading.
Obtaining documentation
You can access the most up-to-date H3C product documentation on the World Wide Web
at
http://www.h3c.com.
Click the links on the top navigation bar to obtain different categories of product
documentation:
[Technical Support & Documents > Technical Documents] – Provides hardware installation,
software upgrading, and software feature configuration and maintenance
documentation.
[Products & Solutions] – Provides information about products and technologies, as well as
solutions.
[Technical Support & Documents > Software Download] – Provides the documentation
released with the software version.
Technical support
http://www.h3c.com
Documentation feedback
You can e-mail your comments about product documentation to [email protected].
We appreciate your comments.
i
Contents
Ethernet interface configuration ·································································································································· 1
Ethernet interface overview··············································································································································1
Ethernet interface naming conventions ··················································································································1
Configuring a Combo interface······························································································································1
Switchable link mode of Ethernet interfaces (available only on the S5500-EI) ·················································2
General Ethernet interface configuration························································································································2
Configuring basic settings of an Ethernet interface ······························································································2
Configuring the link mode of an Ethernet interface (available only on the S5500-EI) ·····································3
Configuring generic flow control on an Ethernet interface··················································································4
Configuring link change suppression on an Ethernet interface···········································································4
Configuring loopback testing on an Ethernet interface························································································6
Setting the statistics polling interval························································································································7
Enabling the auto power-down function on an Ethernet interface ······································································7
Configuring jumbo frame support ··························································································································7
Configuring a Layer 2 Ethernet interface ·······················································································································8
Layer 2 Ethernet interface configuration task list ··································································································8
Configuring a port group ········································································································································8
Configuring a MAC Address for an Ethernet Port (available only on the S5500-EI) ·······································9
Setting speed options for auto negotiation on an Ethernet interface··································································9
Configuring traffic storm protection····················································································································· 10
Enabling single-port loopback detection on an Ethernet interface··································································· 13
Enabling multi-port loopback detection··············································································································· 14
Setting the MDI mode of an Ethernet interface ·································································································· 15
Enabling bridging on an Ethernet interface········································································································ 16
Testing the cable connection of an Ethernet interface······················································································· 17
Configuring a Layer 3 Ethernet interface (available only on the S5500-EI)···························································· 17
Setting the MTU for an Ethernet interface··········································································································· 17
Displaying and maintaining an Ethernet interface ····································································································· 17
Loopback and null interface configuration···············································································································19
Loopback interface························································································································································· 19
Introduction to loopback interface······················································································································· 19
Configuring a loopback interface ······················································································································· 19
Null interface ·································································································································································· 20
Introduction to null interface································································································································· 20
Configuring null 0 interface ································································································································· 20
Displaying and maintaining loopback and null interfaces························································································ 21
MAC address table configuration·····························································································································22
Overview········································································································································································· 22
How a MAC address table entry is created······································································································· 22
Types of MAC address table entries ··················································································································· 23
MAC address table-based frame forwarding ···································································································· 23
Configuring the MAC address table···························································································································· 23
Manually configuring MAC address table entries····························································································· 24
Disabling MAC address learning························································································································ 24
Configuring the aging timer for dynamic MAC address entries ······································································ 26
Configuring the MAC learning limit on ports····································································································· 26
Displaying and maintaining MAC address tables ····································································································· 27
MAC address table configuration example ················································································································ 27
ii
MAC Information configuration ································································································································29
Overview········································································································································································· 29
Introduction to MAC Information ························································································································· 29
How MAC Information works ······························································································································ 29
Configuring MAC Information······································································································································ 29
Enabling MAC Information globally ··················································································································· 29
Enabling MAC Information on an interface ······································································································· 30
Configuring MAC Information mode ·················································································································· 30
Configuring the interval for sending Syslog or trap messages········································································· 30
Configuring the MAC Information queue length································································································ 30
MAC Information configuration example···················································································································· 31
Ethernet link aggregation configuration···················································································································32
Overview········································································································································································· 32
Basic concepts ······················································································································································· 32
Aggregating links in static mode ························································································································· 36
Aggregating links in dynamic mode ··················································································································· 37
Load sharing criteria for link aggregation groups····························································································· 39
Ethernet link aggregation configuration task list········································································································· 39
Configuring an aggregation group ····························································································································· 39
Configuration guidelines ······································································································································ 39
Configuring a static aggregation group············································································································· 40
Configuring a dynamic aggregation group ······································································································· 40
Configuring an aggregate interface ···························································································································· 41
Configuring the description of an aggregate interface····················································································· 42
Enabling link state traps for an aggregate interface ························································································· 42
Configuring a MAC address for an aggregate interface (available only on the S5500-SI) ························ 42
Shutting down an aggregate interface ··············································································································· 43
Configuring load sharing for link aggregation groups······························································································ 44
Configuring load sharing criteria for link aggregation groups········································································ 44
Enabling local-first load sharing for link aggregation······················································································· 45
Enabling link-aggregation traffic redirection··············································································································· 46
Displaying and maintaining Ethernet link aggregation ····························································································· 47
Ethernet link aggregation configuration examples····································································································· 47
Layer 2 static aggregation configuration example···························································································· 48
Layer 2 dynamic aggregation configuration example······················································································ 50
Layer 2 aggregation load sharing configuration example··············································································· 52
Port isolation configuration········································································································································55
Introduction to port isolation ········································································································································· 55
Configuring the isolation group···································································································································· 55
Displaying and maintaining isolation groups ············································································································· 56
Port isolation configuration example···························································································································· 56
MSTP configuration····················································································································································58
Introduction to STP ························································································································································· 58
Why STP································································································································································· 58
Protocol packets of STP········································································································································· 58
Basic concepts in STP············································································································································ 59
How STP works······················································································································································ 60
Introduction to RSTP ······················································································································································· 66
Introduction to MSTP······················································································································································ 66
Why MSTP ····························································································································································· 66
Basic concepts in MSTP········································································································································ 67
How MSTP works ·················································································································································· 71
Implementation of MSTP on devices···················································································································· 71
iii
Protocols and standards ······································································································································· 72
MSTP configuration task list ·········································································································································· 72
Configuring MSTP ·························································································································································· 73
Configuring an MST region ································································································································· 73
Configuring the root bridge or a secondary root bridge·················································································· 74
Configuring the work mode of an MSTP device································································································ 75
Configuring the priority of a device ···················································································································· 76
Configuring the maximum hops of an MST region ··························································································· 76
Configuring the network diameter of a switched network················································································ 77
Configuring timers of MSTP·································································································································· 77
Configuring the timeout factor ····························································································································· 78
Configuring the maximum port rate ···················································································································· 79
Configuring ports as edge ports·························································································································· 79
Configuring path costs of ports···························································································································· 80
Configuring port priority······································································································································· 82
Configuring the link type of ports ························································································································ 83
Configuring the mode a port uses to recognize/send MSTP packets ····························································· 84
Enabling the output of port state transition information ···················································································· 84
Enabling the MSTP feature ··································································································································· 85
Performing mCheck··············································································································································· 85
Configuring Digest Snooping······························································································································· 86
Configuring No Agreement Check······················································································································ 88
Configuring protection functions·························································································································· 90
Displaying and maintaining MSTP······························································································································· 93
MSTP configuration example········································································································································ 94
BPDU tunneling configuration ···································································································································99
Introduction to BPDU tunneling ····································································································································· 99
Background···························································································································································· 99
BPDU tunneling implementation·························································································································100
Configuring BPDU tunneling ·······································································································································101
Configuration prerequisites ································································································································101
Enabling BPDU tunneling····································································································································102
Configuring destination multicast MAC address for BPDUs ···········································································102
BPDU tunneling configuration examples····················································································································103
BPDU tunneling for STP configuration example ·······························································································103
BPDU tunneling for PVST configuration example·····························································································104
VLAN configuration ················································································································································ 106
Introduction to VLAN ···················································································································································106
VLAN overview····················································································································································106
VLAN fundamentals·············································································································································107
Types of VLAN·····················································································································································108
Configuring basic VLAN settings································································································································108
Configuring basic settings of a VLAN interface ·······································································································109
Port-based VLAN configuration ··································································································································110
Introduction to port-based VLAN ·······················································································································110
Assigning an access port to a VLAN ················································································································111
Assigning a trunk port to a VLAN······················································································································112
Assigning a hybrid port to a VLAN···················································································································113
Port-based VLAN configuration example··········································································································114
MAC-based VLAN configuration································································································································116
Introduction to MAC-based VLAN ·····················································································································116
Configuring MAC-based VLAN ·························································································································117
MAC-based VLAN configuration example ·······································································································120
iv
Protocol-based VLAN configuration ···························································································································123
Introduction to protocol-based VLAN ················································································································123
Configuring a protocol-based VLAN·················································································································123
Protocol-based VLAN configuration example···································································································125
IP Subnet-based VLAN configuration ·························································································································127
Introduction ··························································································································································127
Configuring an IP subnet-based VLAN··············································································································128
Displaying and maintaining VLAN ····························································································································129
Super VLAN configuration (available only on the S5500-EI)·············································································· 130
Overview·······································································································································································130
Configuring a super VLAN··········································································································································130
Displaying and maintaining super VLAN··················································································································132
Super VLAN configuration example ··························································································································132
Isolate-user-VLAN configuration ····························································································································· 135
Overview·······································································································································································135
Configuring isolate-user-VLAN····································································································································135
Configuring an isolate-user-VLAN······················································································································136
Configuring secondary VLANs ··························································································································137
Associating secondary VLANs with an isolate-user-VLAN ··············································································138
Displaying and maintaining isolate-user-VLAN·········································································································138
Isolate-user-VLAN configuration example ··················································································································138
Voice VLAN configuration······································································································································ 146
Overview·······································································································································································146
OUI addresses ·····················································································································································146
Voice VLAN assignment modes·························································································································147
Security mode and normal mode of voice VLANs···························································································149
Configuring a voice VLAN··········································································································································150
Configuration prerequisites ································································································································150
Configuring QoS priority settings for voice traffic on an interface································································151
Configuring a port to operate in automatic voice VLAN assignment mode ·················································151
Configuring a port to operate in manual voice VLAN assignment mode ·····················································152
Displaying and maintaining voice VLAN ··················································································································153
Voice VLAN configuration examples ·························································································································153
Automatic voice VLAN mode configuration example ·····················································································153
Manual voice VLAN assignment mode configuration example ·····································································155
GVRP configuration················································································································································· 158
Introduction to GVRP····················································································································································158
GARP ····································································································································································158
GVRP·····································································································································································161
Protocols and standards ·····································································································································162
GVRP configuration task list········································································································································162
Configuring GVRP functions········································································································································162
Configuring GARP timers ············································································································································163
Displaying and maintaining GVRP·····························································································································164
GVRP configuration examples ····································································································································165
GVRP normal registration mode configuration example·················································································165
GVRP fixed registration mode configuration example ····················································································166
GVRP forbidden registration mode configuration example············································································167
QinQ configuration················································································································································· 170
Introduction to QinQ····················································································································································170
Background and benefits····································································································································170
How QinQ works················································································································································170
v
QinQ frame structure ··········································································································································171
Implementations of QinQ ···································································································································172
Modifying the TPID in a VLAN tag····················································································································172
Protocols and standards ·····································································································································173
QinQ configuration task list········································································································································174
Configuring basic QinQ ·············································································································································174
Enabling basic QinQ··········································································································································174
Configuring VLAN transparent transmission ····································································································174
Configuring selective QinQ ········································································································································175
Configuring an outer VLAN tagging policy ·····································································································175
Configuring an inner-outer VLAN 802.1p priority mapping··········································································177
Configuring inner VLAN ID substitution (available only on the S5500-EI)····················································179
Configuring the TPID value in VLAN tags··················································································································180
Configuring the TPID value on the S5500-EI····································································································180
Configuring the TPID value on the S5500-SI····································································································180
QinQ configuration examples ····································································································································180
Basic QinQ configuration example···················································································································180
Port-based selective QinQ configuration example ··························································································183
QoS policy-based selective QinQ configuration exampl (available only on the S5500-EI)·······················185
VLAN mapping configuration (available only on the S5500-EI)········································································· 189
VLAN mapping overview ············································································································································189
Application scenario of one-to-one and many-to-one VLAN mapping ··························································189
Application scenario of two-to-two VLAN mapping ························································································190
Concepts and terms ············································································································································191
VLAN mapping implementations ·······················································································································192
Configuring VLAN mapping ·······································································································································194
Configuring one-to-one VLAN mapping············································································································194
Configuring many-to-one VLAN mapping·········································································································196
Configuring two-to-two VLAN mapping············································································································199
VLAN mapping configuration examples ···················································································································202
One-to-one and many-to-one VLAN mapping configuration example···························································202
Two-to-two VLAN mapping configuration example·························································································208
LLDP configuration··················································································································································· 211
Overview·······································································································································································211
Background··························································································································································211
Basic concepts ·····················································································································································211
How LLDP works ··················································································································································215
Protocols and standards ·····································································································································216
LLDP configuration task list ··········································································································································216
Performing basic LLDP configuration··························································································································217
Enabling LLDP ······················································································································································217
Setting the LLDP operating mode ·······················································································································217
Setting the LLDP re-initialization delay···············································································································218
Enabling LLDP polling··········································································································································218
Configuring the advertisable TLVs ·····················································································································218
Configuring the management address and its encoding format····································································219
Setting other LLDP parameters····························································································································220
Setting an encapsulation format for LLDPDUs···································································································221
Configuring CDP compatibility···································································································································221
Configuration prerequisites ································································································································222
Configuring CDP compatibility ··························································································································222
Configuring LLDP trapping ··········································································································································222
Displaying and maintaining LLDP·······························································································································223
vi
LLDP configuration examples ······································································································································223
Basic LLDP configuration example·····················································································································223
CDP-compatible LLDP configuration example···································································································226
Service loopback group configuration (available only on the S5500-EI)··························································· 228
Overview·······································································································································································228
Functions of service loopback groups···············································································································228
Service types of service loopback groups ········································································································228
Requirements on service loopback ports···········································································································228
States of service loopback ports ························································································································229
Configuring a service loopback group······················································································································230
Displaying and maintaining service loopback groups·····························································································230
Service loopback group configuration example·······································································································230
Index ········································································································································································ 232
1
Ethernet interface configuration
This chapter includes these sections:
Ethernet interface overview
General Ethernet interface configuration
Configuring a Layer 2 Ethernet interface
Configuring a Layer 3 Ethernet interface (available only on the S5500-EI)
Displaying and maintaining an Ethernet interface
Ethernet interface overview
Ethernet interface naming conventions
The GE and 10-GE interfaces on the S5500-SI&S5500-EI series Ethernet switches are named in the
format of interface-type A/B/C, where the following definitions apply:
If the switch does not support Intelligent Resilient Framework (IRF), A takes 1. If the switch support IRF,
A represents the ID of the switch in an IRF virtual device. If the switch is not assigned to any IRF
virtual device, A takes 1.
B represents a slot number on the switch. It takes 0 for fixed interfaces, 1 for interfaces on interface
expansion card 1, and 2 for interfaces on interface expansion card 2.
C represents the number of an interface on a slot.
NOTE:
For more information about the expansion cards, see the
H3C S5500-EI Series Ethernet Switches
Installation Guide
and the
H3C S5500-SI Series Ethernet Switches Installation Guide
.
The GE ports of the GE interface expansion card are displayed as 10-GE ports on the switch
where the
expansion card is installed.
Configuring a Combo interface
Introduction to Combo interfaces
A Combo interface is a logical interface that comprises one optical (fiber) port and one electrical
(copper) port. The two ports share one forwarding interface and cannot work simultaneously. When you
enable the electrical port, the optical port is disabled automatically and vice versa.
The optical and electrical ports of a Combo interface are Layer 2 Ethernet interfaces and have their own
separate interface views, in which you can activate the optical or electrical port, and configure other port
attributes such as the interface rate and duplex mode.
Configuration prerequisites
Before you configure a Combo interface, complete the following tasks:
Use the display port combo command to find out the Combo interfaces on your device and identify
the two physical interfaces that comprise each Combo interface.
2
Use the display interface command to find out, of the two physical ports that comprise a Combo
interface, which is the optical port and which is the electrical port. If the output includes “Media
type is twisted pair, Port hardware type is 1000_BASE_T, the current port is the electrical port; if the
output includesMedia type is not sure, Port hardware type is No connector”, the current port is the
optical port.
Changing the active port of a Combo interface
Follow these steps to change the active port of a double Combo interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Activate the current interface undo shutdown
Optional
By default, of the two ports that
comprise a Combo interface, the
one with a smaller port ID is active.
Switchable link mode of Ethernet interfaces (available only on
the S5500-EI)
You can switch the link mode of an Ethernet interface from Layer 2 (bridge) to Layer 3 (route) and vice
versa as needed. When operating in Layer 2 mode, the Ethernet interface acts as a Layer 2 interface.
When operating in Layer 3 mode, the Ethernet interface acts as a Layer 3 interface. For more information,
see “
Configuring the link mode of an Ethernet interface (available only on the S5500-EI).”
General Ethernet interface configuration
This section describes the attributes and configurations common to Layer 2 and Layer 3 Ethernet
interfaces. For more information about the attributes, see “
Configuring a Layer 2 Ethernet interface” and
Configuring a Layer 3 Ethernet interface (available only on the S5500-EI).”
Configuring basic settings of an Ethernet interface
You can set an Ethernet interface to operate in one of the following duplex modes:
Full-duplex mode (full). Interfaces operating in this mode can send and receive packets
simultaneously.
Half-duplex mode (half). Interfaces operating in this mode cannot send and receive simultaneously.
Auto-negotiation mode (auto). Interfaces operating in this mode negotiate a duplex mode with their
peers.
Similarly, you can set the speed of an Ethernet interface or enable it to automatically negotiate a speed
with its peer. For a 100-Mbps or 1000-Mbps Layer 2 Ethernet interface, you can also set speed options
for auto negotiation. The two ends can pick a speed only from the available options. For more
information, see “
Setting speed options for auto negotiation on an Ethernet interface.”
Follow these steps to configure an Ethernet interface:
3
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Change the description of the
interface
description text
Optional
By default, the description of an
interface is the interface name
followed by the “Interface” string,
GigabitEthernet1/0/1 Interface for
example.
Set the duplex mode duplex { auto | full | half }
Optional
The optical port of an SFP port and the
electrical port of an Ethernet port
whose port rate is configured as
1000 Mbps do not support the half
keyword.
The default duplex mode of a port is
auto negotiation.
Set the interface speed speed { 10 | 100 | 1000 | auto }
Optional
The optical port of an SFP port does
not support the 10 and 100
keywords.
By default, the auto option is enabled.
Shut down the Ethernet interface shutdown
Optional
By default, an Ethernet interface is in
up state.
To bring up an Ethernet interface, use
the undo shutdown command.
Configuring the link mode of an Ethernet interface (available
only on the S5500-EI)
An Ethernet interface operates either in Layer 2 (bridge) or Layer 3 (route) mode. To meet networking
requirements, you can set the link mode of an Ethernet interface to bridge or route.
Follow these steps to change the link mode of an Ethernet interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view interface interface-type interface-number
Change the link mode of the Ethernet
interface
port link-mode { bridge | route }
Required
By default, Ethernet
interfaces operate in
bridge mode (as Layer 2
Ethernet interfaces).
4
CAUTION:
After you change the link mode of an Ethernet interface, all the settings of the Ethernet interface are
restored to their defaults under the new link mode.
If you set the link mode of the active port of a Combo interface to Layer 3, you cannot activate the other
port with the undo shutdown command. To chan
g
e the active port of the Combo interface, make sure
that the optical and electrical ports of the Combo interface operate in Layer 2 mode.
Configuring generic flow control on an Ethernet interface
An interface implements generic flow control by sending and receiving common pause frames. The
following generic flow control modes are available:
TxRx mode enables an interface to both send and receive common pause frames.
Rx mode enables an interface to receive but not send common pause frames.
In
Figure 1, when both Port A and Port B forward packets at 1000 Mbps, Port C is congested. To avoid
packet loss, enable flow control on Port A and Port B.
Figure 1 Flow control application scenario
Configure Port B to operate in TxRx mode, Port A in Rx mode.
When congestion occurs on Port C, Switch B buffers frames. When the amount of buffered frames
exceeds a certain value, Switch B sends a common pause frame out of Port B to ask Port A to
suspend sending packets. This pause frame also tells Port A for how long it is expected to pause.
Upon receiving the common pause frame from Port B, Port A suspends sending packets to Port B for
a period.
If congestion persists, Port B keeps sending common pause frames to Port A until the congestion
condition is removed.
Follow these steps to configure flow control on an interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Enable TxRx mode flow control flow-control
Enable Rx mode flow control flow-control receive enable
Required
Use either command.
By default, flow control is disabled
on an Ethernet interface.
Configuring link change suppression on an Ethernet interface
An Ethernet interface has two physical link states: up and down. Each time the physical link of an
interface goes up or comes down, the physical layer reports the change to the upper layers, and the
upper layers handle the change, resulting in increased overhead.
5
To prevent physical link flapping from affecting system performance, configure link change suppression
to delay the reporting of physical link state changes. When the delay expires, the interface reports any
detected change.
Link change suppression does not suppress administrative up or down events. When you shut down or
bring up an interface with the shutdown or undo shutdown command, the interface reports the event to
the upper layers immediately.
On an S5500-SI&S5500-EI switch, you can configure link down suppression or link up suppression, but
not both.
Link down suppression enables an interface to suppress link down events and start a delay timer each
time the physical link goes down. During this delay, the interface does not report the link down event, and
the display interface brief or display interface command displays the interface state as UP. If the physical
link is still down when the timer expires, the interface reports the link down event to the upper layers.
Link up suppression enables an interface to suppress link up events and start a delay timer each time the
physical link goes up. During this delay, the interface does not report the link up event, and the display
interface brief or display interface command displays the interface state as DOWN. If the physical link
is still up when the timer expires, the interface reports the link up event to the upper layers.
Configuring link down suppression
Follow these steps to enable an Ethernet interface to suppress link down events:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Set a link down suppression
interval
link-delay delay-time
Required
Link down suppression is disabled by
default.
Configuring link up suppression
Follow these steps to configure link up suppression on an Ethernet interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Set a link up suppression interval link-delay delay-time mode up
Required
Link up suppression is disabled by
default.
NOTE:
The link-delay mode up command and the link-delay
command supersedes each other, and whichever is
configured last takes effect.
6
Configuring loopback testing on an Ethernet interface
You can perform loopback testing on an Ethernet interface to check whether the interface functions
properly. The Ethernet interface cannot forward data packets during the testing. Loopback testing falls
into the following categories:
Internal loopback testing, which tests all on-chip functions related to Ethernet interfaces. As shown
in
Figure 2, internal loopback testing is performed on Port 1. During the internal loopback testing,
the interface sends out a certain number of test packets, which are looped back to the interface over
the self-loop created on the switching chip
Figure 2 Internal loopback testing
External loopback testing, which tests the hardware of Ethernet interfaces. As shown in Figure 3,
external loopback testing is performed on Port 1. To perform external loopback testing on an
Ethernet interface, insert a loopback plug into the interface. During the external loopback testing,
the interface sends out a certain number of test packets, which are looped over the plug and back
to the interface. If the interface fails to receive any test packet, the hardware of the interface is faulty.
Figure 3 External loopback testing
Follow these steps to perform loopback testing on an Ethernet interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface or ONU
interface view
interface interface-type
interface-number
Perform loopback testing
loopback { external | internal } Required
NOTE:
On an interface that is physically down, you can only perform internal loopback testing. On an interface
administratively shut down, you can perform neither internal nor external loopback testing.
The speed, duplex, mdi, and shutdown commands are unavailable during loopback testing.
During loopback testing, an Ethernet interface works in full duplex mode. When you disable loopback
testing, the original duplex setting of the interface restores.
7
Setting the statistics polling interval
Follow these steps to set the statistics polling interval on an Ethernet interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Set the statistics polling interval on
the Ethernet interface
flow-interval interval
Optional
The default interface statistics
polling interval is 300 seconds.
To display the interface statistics collected in the last polling interval, use the display interface command.
To clear interface statistics, use the reset counters interface command.
Enabling the auto power-down function on an Ethernet
interface
To save power, enable the auto power-down function on Ethernet interfaces. An interface enters the
power save mode if it has not received any packet for a certain period of time (this interval depends on
the specifications of the chip, and is not configurable). When a packet arrives later, the interface enters
its normal state.
Follow these steps to enable auto power-down on an Ethernet interface:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Enable auto power-down on an
Ethernet interface
port auto-power-down
Required
Disabled by default.
Configuring jumbo frame support
Ethernet frames longer than the standard Ethernet frame size (1536 bytes) are called "jumbo frames",
which are typical of file transfer.
If you set an Ethernet interface to accept jumbo frames, it allows frames up to 9216 bytes to
pass through.
If you disable an Ethernet interface to accept jumbo frames, it allows frames up to 1536 bytes to
pass through.
Follow these steps to configure jumbo frame support in Layer 3 Ethernet interface view:
To do… Use the command… Remarks
Enter system view 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

H3C S5500-SI Series Configuration manual

Category
Networking
Type
Configuration manual
This manual is also suitable for

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

Finding information in a document is now easier with AI