455
Quidway S5700 Series Ethernet Switches V100R006C01 Configuration Guide - Ethernet Issue 02 Date 2011-11-21 HUAWEI TECHNOLOGIES CO., LTD.

Configuration guide ethernet(v100 r006c01-02)

Embed Size (px)

Citation preview

  • Quidway S5700 Series Ethernet SwitchesV100R006C01

    Configuration Guide - Ethernet

    Issue 02

    Date 2011-11-21

    HUAWEI TECHNOLOGIES CO., LTD.

  • Copyright Huawei Technologies Co., Ltd. 2011. All rights reserved.No part of this document may be reproduced or transmitted in any form or by any means without prior writtenconsent of Huawei Technologies Co., Ltd. Trademarks and Permissions

    and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.All other trademarks and trade names mentioned in this document are the property of their respective holders. NoticeThe purchased products, services and features are stipulated by the contract made between Huawei and thecustomer. All or part of the products, services and features described in this document may not be within thepurchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,and recommendations in this document are provided "AS IS" without warranties, guarantees or representationsof any kind, either express or implied.

    The information in this document is subject to change without notice. Every effort has been made in thepreparation of this document to ensure accuracy of the contents, but all statements, information, andrecommendations in this document do not constitute the warranty of any kind, express or implied.

    Huawei Technologies Co., Ltd.Address: Huawei Industrial Base

    Bantian, LonggangShenzhen 518129People's Republic of China

    Website: http://www.huawei.com

    Email: [email protected]

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    i

    http://www.huawei.commailto:[email protected]

  • About This Document

    Intended AudienceThis document provides the basic concepts, configuration procedures, and configurationexamples in different application scenarios of the Ethernet features supported by the S5700switch.

    This document is intended for:

    l Data configuration engineersl Commissioning engineersl Network monitoring engineersl System maintenance engineers

    Symbol ConventionsThe symbols that may be found in this document are defined as follows.

    Symbol Description

    DANGERIndicates a hazard with a high level of risk, which if notavoided, will result in death or serious injury.

    WARNINGIndicates a hazard with a medium or low level of risk, whichif not avoided, could result in minor or moderate injury.

    CAUTIONIndicates a potentially hazardous situation, which if notavoided, could result in equipment damage, data loss,performance degradation, or unexpected results.

    TIP Indicates a tip that may help you solve a problem or savetime.

    NOTE Provides additional information to emphasize or supplementimportant points of the main text.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet About This Document

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    ii

  • Command ConventionsThe command conventions that may be found in this document are defined as follows.

    Convention Description

    Boldface The keywords of a command line are in boldface.

    Italic Command arguments are in italics.

    [ ] Items (keywords or arguments) in brackets [ ] are optional.

    { x | y | ... } Optional items are grouped in braces and separated by verticalbars. One item is selected.

    [ x | y | ... ] Optional items are grouped in brackets and separated by verticalbars. One item is selected or no item is selected.

    { x | y | ... }* Optional items are grouped in braces and separated by verticalbars. A minimum of one item or a maximum of all items can beselected.

    [ x | y | ... ]* Optional items are grouped in brackets and separated by verticalbars. Several items or no item can be selected.

    & The parameter before the & sign can be repeated 1 to n times.

    # A line starting with the # sign is comments.

    Change HistoryUpdates between document issues are cumulative. Therefore, the latest document issue containsall updates made in previous issues.

    Changes in Issue 02 (2011-11-21)The second commercial release has the following updates:

    l Some contents are modified according to updates in the product such as features andcommands.

    Changes in Issue 01 (2011-10-26)Initial commercial release.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet About This Document

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iii

  • Contents

    About This Document.....................................................................................................................ii

    1 Ethernet Interface Configuration...............................................................................................11.1 Introduction to Ethernet Interfaces.....................................................................................................................21.2 Ethernet Interface Features Supported by the S5700.........................................................................................21.3 Configuring Basic Attributes of an Ethernet Interface.......................................................................................3

    1.3.1 Establishing the Configuration Task.........................................................................................................31.3.2 (Optional) Configuring an Interface Description......................................................................................41.3.3 (Optional) Configuring the Cable Type on an Interface............................................................................41.3.4 (Optional) Setting the Duplex Mode.........................................................................................................51.3.5 (Optional) Setting the Interface Rate.........................................................................................................51.3.6 (Optional) Enabling Auto-Negotiation......................................................................................................61.3.7 (Optional) Switching Between Optical and Electrical Interfaces..............................................................61.3.8 (Optional) Configuring an Interface to Work at Layer 2 or Layer 3.........................................................71.3.9 Checking the Configuration.......................................................................................................................8

    1.4 Configuring Advanced Attributes of an Ethernet Interface................................................................................81.4.1 Establishing the Configuration Task.........................................................................................................81.4.2 (Optional) Configuring the Loopback Function........................................................................................91.4.3 (Optional) Configuring a Port Group........................................................................................................91.4.4 (Optional) Setting the Maximum Frame Length.....................................................................................101.4.5 (Optional) Enabling Flow Control...........................................................................................................101.4.6 (Optional) Enabling Auto-Negotiation of Flow Control.........................................................................111.4.7 (Optional) Enabling Port Isolation..........................................................................................................111.4.8 (Optional) Performing a Cable Test........................................................................................................121.4.9 (Optional) Configuring a Loopback Test on an Interface.......................................................................131.4.10 Checking the Configuration...................................................................................................................13

    1.5 Maintaining Ethernet Interfaces.......................................................................................................................131.5.1 Debugging Ethernet Interfaces................................................................................................................13

    1.6 Configuration Examples...................................................................................................................................141.6.1 Example for Configuring Port Isolation..................................................................................................14

    2 Link Aggregation Configuration..............................................................................................172.1 Introduction to Link Aggregation.....................................................................................................................182.2 Link Aggregation Supported by the S5700......................................................................................................18

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iv

  • 2.3 Configuring Link Aggregation in Manual Load Balancing Mode...................................................................192.3.1 Establishing the Configuration Task.......................................................................................................192.3.2 Configuring an Eth-Trunk Interface to Work in Manual Load Balancing Mode....................................202.3.3 Adding Member Interfaces to an Eth-Trunk Interface............................................................................212.3.4 (Optional) Configuring the Load Balancing Mode.................................................................................222.3.5 (Optional) Limiting the Number of Active Interfaces.............................................................................232.3.6 (Optional) Configuring the Load Balancing Mode for Unknown Unicast Traffic..................................242.3.7 Checking the Configuration.....................................................................................................................25

    2.4 Configuring Link Aggregation in Static LACP Mode.....................................................................................252.4.1 Establishing the Configuration Task.......................................................................................................252.4.2 Configuring an Eth-Trunk Interface to Work in Static LACP Mode......................................................262.4.3 Adding Member Interfaces to an Eth-Trunk Interface............................................................................272.4.4 (Optional) Configuring the Load Balancing Mode.................................................................................282.4.5 (Optional) Limiting the Number of Active Interfaces.............................................................................292.4.6 (Optional) Setting the System LACP Priority.........................................................................................302.4.7 (Optional) Setting the LACP Priority for an Interface............................................................................312.4.8 (Optional) Enabling LACP Preemption and Setting the Preemption Delay...........................................312.4.9 (Optional) Setting the Timeout Interval for Receiving LACP Packets...................................................322.4.10 (Optional) Configuring the Load Balancing Mode for Unknown Unicast Traffic................................332.4.11 Checking the Configuration...................................................................................................................33

    2.5 Configuring an E-Trunk...................................................................................................................................342.5.1 Establishing the Configuration Task.......................................................................................................342.5.2 Setting the LACP System ID and LACP Priority of an E-Trunk............................................................352.5.3 Creating an E-Trunk and Setting the E-Trunk Priority...........................................................................352.5.4 Configuring Local and Peer IP Addresses of an E-Trunk.......................................................................362.5.5 Binding an E-Trunk to a BFD Session....................................................................................................372.5.6 Adding an Eth-Trunk Interface to an E-Trunk........................................................................................372.5.7 (Optional) Configuring the Working Mode of an Eth-Trunk Interface in an E-Trunk...........................382.5.8 (Optional) Setting the Password for Encrypting Packets........................................................................392.5.9 (Optional) Setting the Timeout Interval of Hello Packets.......................................................................402.5.10 (Optional) Setting the Revertive Switching Delay................................................................................412.5.11 Checking the Configuration...................................................................................................................41

    2.6 Maintaining Link Aggregation.........................................................................................................................422.6.1 Clearing LACP Packet Statistics.............................................................................................................422.6.2 Debugging a Link Aggregation Group....................................................................................................422.6.3 Monitoring the Operating Status of a Link Aggregation Group.............................................................43

    2.7 Configuration Examples...................................................................................................................................432.7.1 Example for Configuring Link Aggregation in Manual Load Balancing Mode.....................................432.7.2 Example for Configuring Link Aggregation in Static LACP Mode.......................................................46

    3 VLAN Configuration..................................................................................................................503.1 Introduction......................................................................................................................................................523.2 VLAN Features Supported by the S5700.........................................................................................................59

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    v

  • 3.3 Dividing a LAN into VLANs...........................................................................................................................633.3.1 Establishing the Configuration Task.......................................................................................................633.3.2 Dividing a LAN into VLANs Based on Ports.........................................................................................653.3.3 Dividing a LAN into VLANs Based on MAC Addresses.......................................................................673.3.4 Dividing a LAN into VLANs Based on IP Subnets................................................................................693.3.5 Dividing a LAN into VLANs Based on Protocols..................................................................................703.3.6 Dividing a LAN into VLANs Based on Policies.....................................................................................723.3.7 Checking the Configuration.....................................................................................................................73

    3.4 Creating a VLANIF Interface...........................................................................................................................743.4.1 Establishing the Configuration Task.......................................................................................................743.4.2 Creating a VLANIF Interface..................................................................................................................753.4.3 Assigning an IP Address to a VLANIF Interface....................................................................................753.4.4 (Optional) Setting a Delay After Which a VLANIF Interface Goes Down............................................763.4.5 (Optional) Setting the MTU of a VLANIF Interface...............................................................................773.4.6 Checking the Configuration.....................................................................................................................77

    3.5 Configuring Inter-VLAN Communication.......................................................................................................783.5.1 Establishing the Configuration Task.......................................................................................................783.5.2 Configuring VLANIF Interfaces for Inter-VLAN Communication........................................................793.5.3 Checking the Configuration.....................................................................................................................80

    3.6 Configuring VLAN Aggregation to Save IP Addresses...................................................................................803.6.1 Establishing the Configuration Task.......................................................................................................813.6.2 Creating a Sub-VLAN.............................................................................................................................823.6.3 Creating a Super-VLAN..........................................................................................................................833.6.4 Assigning an IP Address to the VLANIF Interface of a Super-VLAN...................................................833.6.5 (Optional) Enabling Proxy ARP on the VLANIF Interface of a Super-VLAN......................................843.6.6 Checking the Configuration.....................................................................................................................85

    3.7 Configuring a MUX VLAN to Separate Layer 2 Traffic.................................................................................853.7.1 Establishing the Configuration Task.......................................................................................................853.7.2 Configuring a Principal VLAN for a MUX VLAN................................................................................873.7.3 Configuring a Group VLAN for a Subordinate VLAN...........................................................................873.7.4 Configuring a Separate VLAN for a Subordinate VLAN.......................................................................883.7.5 Enabling the MUX VLAN Function on a Port........................................................................................893.7.6 Checking the Configuration.....................................................................................................................89

    3.8 Configuring a Voice VLAN to Transmit Voice Data.......................................................................................903.8.1 Establishing the Configuration Task.......................................................................................................903.8.2 Enabling the Voice VLAN Function.......................................................................................................923.8.3 Configuring an OUI for a Voice VLAN..................................................................................................923.8.4 (Optional) Setting an Aging Timer for a Voice VLAN...........................................................................933.8.5 (Optional) Configuring an 802.1p Priority and a DSCP Value for the Voice VLAN.............................943.8.6 (Optional) Configuring the Mode in Which Ports Are Added to a Voice VLAN...................................943.8.7 (Optional) Configuring the Working Mode for a Voice VLAN..............................................................953.8.8 (Optional) Configuring a Port to Communicate with a Voice Device of Another Vendor.....................96

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vi

  • 3.8.9 Checking the Configuration.....................................................................................................................973.9 Configuring an mVLAN to Implement Integrated Management.....................................................................97

    3.9.1 Establishing the Configuration Task.......................................................................................................983.9.2 Configuring an mVLAN..........................................................................................................................983.9.3 Configuring a VLANIF Interface for an mVLAN..................................................................................993.9.4 Checking the Configuration.....................................................................................................................99

    3.10 Maintaining VLAN.........................................................................................................................................993.10.1 Clearing the Statistics of VLAN Packets............................................................................................100

    3.11 Configuration Examples...............................................................................................................................1003.11.1 Example for Assigning VLANs Based on Ports.................................................................................1003.11.2 Example for Assigning VLANs based on MAC Addresses................................................................1033.11.3 Example for Assigning VLANs Based on IP Subnets........................................................................1053.11.4 Example for Assigning VLANs Based on Protocols...........................................................................1083.11.5 Example for Implementing Inter-VLAN Communication Using VLANIF Interfaces.......................1113.11.6 Example for Configuring VLAN Aggregation....................................................................................1143.11.7 Example for Configuring MUX VLAN..............................................................................................1173.11.8 Example for Configuring a Voice VLAN in Auto Mode....................................................................1203.11.9 Example for Configuring a Voice VLAN in Manual Mode................................................................122

    4 VLAN Mapping Configuration..............................................................................................1264.1 Introduction to VLAN Mapping.....................................................................................................................1274.2 VLAN Mapping Features Supported by the S5700........................................................................................1274.3 Configuring VLAN Mapping for Single-tagged Packets...............................................................................127

    4.3.1 Establishing the Configuration Task.....................................................................................................1274.3.2 Replacing a Single Tag..........................................................................................................................1284.3.3 Checking the Configuration...................................................................................................................129

    4.4 Configuring VLAN Mapping for Double-tagged Packets.............................................................................1294.4.1 Establishing the Configuration Task.....................................................................................................1294.4.2 Replacing the Outer VLAN Tag............................................................................................................1304.4.3 Checking the Configuration...................................................................................................................130

    4.5 Configuration Examples.................................................................................................................................1314.5.1 Example for Configuring Single-Tag VLAN Mapping........................................................................1314.5.2 Example for Configuring N:1 VLAN Mapping....................................................................................134

    5 QinQ Configuration..................................................................................................................1375.1 QinQ Overview...............................................................................................................................................1385.2 QinQ Features Supported by the S5700.........................................................................................................1385.3 Configuring QinQ on an Interface..................................................................................................................138

    5.3.1 Establishing the Configuration Task.....................................................................................................1385.3.2 Setting the Link Type of an Interface....................................................................................................1395.3.3 Specifying the Outer VLAN ID.............................................................................................................1395.3.4 Checking the Configuration...................................................................................................................140

    5.4 Configuring Selective QinQ...........................................................................................................................1405.4.1 Establishing the Configuration Task.....................................................................................................140

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vii

  • 5.4.2 Setting the Link Type of an Interface....................................................................................................1415.4.3 Adding the Interface to the Stacked VLAN..........................................................................................1415.4.4 Configuring Selective QinQ..................................................................................................................1425.4.5 Checking the Configuration...................................................................................................................142

    5.5 Configuring QinQ Stacking on a VLANIF Interface.....................................................................................1435.5.1 Establishing the Configuration Task.....................................................................................................1435.5.2 Configuring QinQ Stacking on a VLANIF Interface............................................................................1445.5.3 Checking the Configuration...................................................................................................................145

    5.6 Setting the Protocol Type in the Outer VLAN Tag........................................................................................1455.6.1 Establishing the Configuration Task.....................................................................................................1455.6.2 Configuring the Link Type of an Interface............................................................................................1465.6.3 Setting the Protocol Type in the Outer VLAN Tag...............................................................................1465.6.4 Checking the Configuration...................................................................................................................147

    5.7 Configuration Examples.................................................................................................................................1475.7.1 Example for Configuring QinQ on Interfaces.......................................................................................1475.7.2 Example for Configuring Selective QinQ.............................................................................................1505.7.3 Example for Configuring Selective QinQ with VLAN Mapping..........................................................1535.7.4 Example for Configuring QinQ Stacking on a VLANIF Interface.......................................................156

    6 GVRP Configuration................................................................................................................1606.1 GVRP Overview.............................................................................................................................................1616.2 GVRP Features Supported by the S5700.......................................................................................................1646.3 Configuring GVRP.........................................................................................................................................165

    6.3.1 Establishing the Configuration Task.....................................................................................................1656.3.2 Enabling GVRP.....................................................................................................................................1656.3.3 (Optional) Setting the Registration Mode for a GVRP Interface..........................................................1666.3.4 (Optional) Setting the GARP Timers....................................................................................................1676.3.5 Checking the Configuration...................................................................................................................168

    6.4 Maintaining GVRP.........................................................................................................................................1686.4.1 Clearing GARP Statistics......................................................................................................................168

    6.5 Configuration Examples.................................................................................................................................1696.5.1 Example for Configuring GVRP...........................................................................................................169

    7 MAC Address Table Configuration.......................................................................................1737.1 MAC Address Table Overview......................................................................................................................1757.2 MAC Address Features Supported by the S5700...........................................................................................1767.3 Configuring a Static MAC Address Entry......................................................................................................1787.4 Configuring a Blackhole MAC Address Entry...............................................................................................1797.5 Setting the Aging Time of Dynamic MAC Address Entries..........................................................................1807.6 Disabling MAC Address Learning.................................................................................................................181

    7.6.1 Establishing the Configuration Task.....................................................................................................1817.6.2 Disabling MAC Address Learning on an Interface...............................................................................1827.6.3 Disabling MAC Address Learning in a VLAN.....................................................................................1837.6.4 Checking the Configuration...................................................................................................................183

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    viii

  • 7.7 Limiting the Number of Learned MAC Addresses........................................................................................1837.7.1 Establishing the Configuration Task.....................................................................................................1847.7.2 Limiting the Number of MAC Addresses Learned on an Interface......................................................1857.7.3 Limiting the Number of MAC Addresses Learned in a VLAN............................................................1857.7.4 Checking the Configuration...................................................................................................................186

    7.8 Configuring Port Security...............................................................................................................................1867.8.1 Establishing the Configuration Task.....................................................................................................1877.8.2 Configuring the Secure Dynamic MAC Function on an Interface........................................................1877.8.3 Configuring the Sticky MAC Function on an Interface........................................................................1897.8.4 Checking the Configuration...................................................................................................................190

    7.9 Configuring MAC Address Anti-Flapping.....................................................................................................1907.9.1 Establishing the Configuration Task.....................................................................................................1907.9.2 Setting the MAC Address Learning Priority for an Interface................................................................1917.9.3 Prohibiting MAC Address Flapping Between Interfaces with the Same Priority.................................1927.9.4 Checking the Configuration...................................................................................................................192

    7.10 Configuring MAC Address Flapping Detection...........................................................................................1937.10.1 Establishing the Configuration Task...................................................................................................1937.10.2 Configuring MAC Address Flapping Detection..................................................................................1947.10.3 (Optional) Unblocking a Blocked Interface or MAC Address............................................................1947.10.4 Checking the Configuration.................................................................................................................195

    7.11 Enabling MAC Spoofing Defense................................................................................................................1957.12 Configuring the Switch to Discard Packets with an All-Zero MAC Address..............................................1967.13 Enabling MAC Address-triggered ARP Entry Update.................................................................................1977.14 Enabling Port Bridge....................................................................................................................................1987.15 Configuration Examples...............................................................................................................................199

    7.15.1 Example for Configuring the MAC Address Table.............................................................................1997.15.2 Example for Configuring MAC Address Limiting in a VLAN...........................................................2027.15.3 Example for Configuring Port Security...............................................................................................2047.15.4 Example for Configuring MAC Address Anti-Flapping.....................................................................206

    8 STP/RSTP Configuration.........................................................................................................2098.1 STP/RSTP Overview......................................................................................................................................210

    8.1.1 STP/RSTP Overview.............................................................................................................................2108.1.2 STP/RSTP Features Supported by the S5700........................................................................................215

    8.2 Configuring Basic STP/RSTP Functions.......................................................................................................2178.2.1 Establishing the Configuration Task.....................................................................................................2178.2.2 Configuring the STP/RSTP Mode.........................................................................................................2198.2.3 (Optional) Configuring Switching Device Priorities.............................................................................2198.2.4 (Optional) Setting the Path Cost for a Port............................................................................................2208.2.5 (Optional) Configuring Port Priorities...................................................................................................2218.2.6 Enabling STP/RSTP..............................................................................................................................2228.2.7 Checking the Configuration...................................................................................................................222

    8.3 Configuring STP/RSTP Parameters on an Interface......................................................................................223

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    ix

  • 8.3.1 Establishing the Configuration Task.....................................................................................................2258.3.2 Setting System Parameters....................................................................................................................2268.3.3 Setting Port Parameters.........................................................................................................................2278.3.4 Checking the Configuration...................................................................................................................229

    8.4 Configuring RSTP Protection Functions........................................................................................................2298.4.1 Establishing the Configuration Task.....................................................................................................2298.4.2 Configuring BPDU Protection on a Switching Device.........................................................................2318.4.3 Configuring TC Protection on a Switching Device...............................................................................2328.4.4 Configuring Root Protection on a Port..................................................................................................2328.4.5 Configuring Loop Protection on a Port.................................................................................................2338.4.6 Checking the Configuration...................................................................................................................234

    8.5 Configuring STP/RSTP Interoperability Between Huawei Devices and Non-Huawei Devices....................2348.5.1 Establishing the Configuration Task.....................................................................................................2348.5.2 Configuring the Proposal/Agreement Mechanism................................................................................2358.5.3 Checking the Configuration...................................................................................................................236

    8.6 Maintaining STP/RSTP..................................................................................................................................2368.6.1 Clearing STP/RSTP Statistics...............................................................................................................237

    8.7 Configuration Examples.................................................................................................................................2378.7.1 Example for Configuring Basic STP Functions....................................................................................2378.7.2 Example for Configuring Basic RSTP Functions..................................................................................242

    9 MSTP Configuration.................................................................................................................2479.1 MSTP Overview.............................................................................................................................................249

    9.1.1 MSTP Introduction................................................................................................................................2499.1.2 MSTP Features Supported by the S5700...............................................................................................257

    9.2 Configuring Basic MSTP Functions...............................................................................................................2619.2.1 Establishing the Configuration Task.....................................................................................................2619.2.2 Configuring the MSTP Mode................................................................................................................2639.2.3 Configuring and Activating an MST Region........................................................................................2649.2.4 (Optional) Setting a Priority for a Switching Device in an MSTI.........................................................2659.2.5 (Optional) Setting a Path Cost of a Port in an MSTI.............................................................................2669.2.6 (Optional) Setting a Port Priority in an MSTI.......................................................................................2679.2.7 Enabling MSTP.....................................................................................................................................2689.2.8 Checking the Configuration...................................................................................................................268

    9.3 Configuring MSTP Multi-process..................................................................................................................2699.3.1 Establishing the Configuration Task.....................................................................................................2699.3.2 Creating an MSTP Process....................................................................................................................2709.3.3 Adding an Interface to an MSTP Process - Access Links.....................................................................2719.3.4 Adding an Interface to an MSTP Process - Share Link.........................................................................2719.3.5 Configuring Priorities and Root Protection in MSTP Multi-process....................................................2729.3.6 Configuring TC Notification in MSTP Multi-process..........................................................................2729.3.7 Checking the Configuration...................................................................................................................273

    9.4 Configuring MSTP Parameters on an Interface.............................................................................................273

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    x

  • 9.4.1 Establishing the Configuration Task.....................................................................................................2739.4.2 Configuring System Parameters............................................................................................................2749.4.3 Configuring Port Parameters.................................................................................................................2769.4.4 Checking the Configuration...................................................................................................................277

    9.5 Configuring MSTP Protection Functions.......................................................................................................2789.5.1 Establishing the Configuration Task.....................................................................................................2789.5.2 Configuring BPDU Protection on a Switching Device.........................................................................2809.5.3 Configuring TC Protection on a Switching Device...............................................................................2819.5.4 Configuring Root Protection on an Interface........................................................................................2829.5.5 Configuring Loop Protection on an Interface........................................................................................2829.5.6 Configuring Share-Link Protection on a Switching Device..................................................................2839.5.7 Checking the Configuration...................................................................................................................284

    9.6 Configuring MSTP Interoperability Between Huawei Devices and Non-Huawei Devices...........................2849.6.1 Establishing the Configuration Task.....................................................................................................2849.6.2 Configuring a Proposal/Agreement Mechanism...................................................................................2859.6.3 Configuring the MSTP Protocol Packet Format on an Interface...........................................................2869.6.4 Enabling the Digest Snooping Function................................................................................................2879.6.5 Checking the Configuration...................................................................................................................288

    9.7 Maintaining MSTP.........................................................................................................................................2889.7.1 Clearing MSTP Statistics.......................................................................................................................288

    9.8 Configuration Examples.................................................................................................................................2899.8.1 Example for Configuring Basic MSTP Functions.................................................................................2899.8.2 Example for Configuring MSTP Multi-Process for Layer 2 Single-Access Rings and Layer 2 Multi-AccessRings...............................................................................................................................................................296

    10 SEP Configuration...................................................................................................................30410.1 SEP Overview...............................................................................................................................................306

    10.1.1 SEP Overview......................................................................................................................................30610.1.2 SEP Features Supported by the S5700................................................................................................319

    10.2 Configuring Basic SEP Functions................................................................................................................32510.2.1 Establishing the Configuration Task...................................................................................................32510.2.2 Configuring an SEP Segment..............................................................................................................32610.2.3 Configuring a Control VLAN..............................................................................................................32610.2.4 Creating a Protected Instance..............................................................................................................32710.2.5 Adding a Layer 2 Interface to a SEP Segment and Configuring a Role for the Interface...................32810.2.6 Checking the Configuration.................................................................................................................330

    10.3 Specifying an Interface to Block..................................................................................................................33010.3.1 Establishing the Configuration Task...................................................................................................33010.3.2 Setting an Interface Blocking Mode....................................................................................................33110.3.3 Configuring the Preemption Mode......................................................................................................33310.3.4 Checking the Configuration.................................................................................................................334

    10.4 Configuring SEP Multi-Instance..................................................................................................................33510.4.1 Establishing the Configuration Task...................................................................................................335

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xi

  • 10.4.2 Configuring and Activating Mappings Between Protected Instances and VLANs.............................33710.4.3 Checking the Configuration.................................................................................................................337

    10.5 Configuring the Topology Change Notification Function...........................................................................33810.5.1 Establishing the Configuration Task...................................................................................................33810.5.2 Reporting Topology Changes of a Lower-Layer Network - SEP Topology Change Notification........................................................................................................................................................................34010.5.3 Reporting Topology Changes of a Lower-Layer Network - Enabling the Edge Devices in a SEP Segmentto Process SmartLink Flush Packets...............................................................................................................34110.5.4 Reporting Topology Changes of an Upper-Layer Network - Configuring Association Between SEP andCFM................................................................................................................................................................34210.5.5 Checking the Configuration.................................................................................................................343

    10.6 Maintaining SEP...........................................................................................................................................34310.6.1 Clearing SEP Statistics........................................................................................................................34310.6.2 Debugging SEP....................................................................................................................................343

    10.7 Configuration Examples...............................................................................................................................34410.7.1 Example for Configuring SEP on a Closed Ring Network.................................................................34410.7.2 Example for Configuring SEP on a Multi-ring Network....................................................................35010.7.3 Example for Configuring SEP on a Hybrid-ring Network..................................................................36110.7.4 Example for Configuring a Hybrid SEP+RRPP Ring Network (Reporting the Topology Changes of aLower-Layer Network)...................................................................................................................................37010.7.5 Example for Configuring SEP Multi-Instance on a Closed Ring Network.........................................382

    11 Layer 2 Protocol Transparent Transmission Configuration............................................39111.1 Layer 2 Protocol Transparent Transmission Overview................................................................................39311.2 Layer 2 Protocol Transparent Transmission Features Supported by the S5700...........................................39411.3 Configuring Interface-based Layer 2 Protocol Transparent Transmission...................................................400

    11.3.1 Establishing the Configuration Task...................................................................................................40011.3.2 (Optional) Defining Characteristics of a Layer 2 Protocol..................................................................40111.3.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................40211.3.4 Enabling Layer 2 Protocol Transparent Transmission on an Interface...............................................40311.3.5 Checking Configuration......................................................................................................................404

    11.4 Configuring VLAN-based Layer 2 Protocol Transparent Transmission......................................................40411.4.1 Establishing the Configuration Task...................................................................................................40411.4.2 (Optional) Defining Characteristics of a Layer 2 Protocol..................................................................40511.4.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................40511.4.4 Enabling VLAN-based Layer 2 Protocol Transparent Transmission on an Interface.........................40611.4.5 Checking the Configuration.................................................................................................................407

    11.5 Configuring QinQ-based Layer 2 Protocol Transparent Transmission........................................................40811.5.1 Establishing the Configuration Task...................................................................................................40811.5.2 (Optional) Defining Characteristics of a Layer 2 Protocol..................................................................40811.5.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................40911.5.4 Enabling QinQ-based Layer 2 Transparent Transmission on an Interface..........................................41011.5.5 Checking the Configuration.................................................................................................................411

    11.6 Maintaining Layer 2 Protocol Transparent Transmission............................................................................411

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xii

  • 11.6.1 Debugging Layer 2 Protocol Transparent Transmission.....................................................................41211.7 Configuration Examples...............................................................................................................................412

    11.7.1 Example for Configuring Interface-based Layer 2 Protocol Transparent Transmission.....................41211.7.2 Example for Configuring VLAN-based Layer 2 Protocol Transparent Transmission........................41911.7.3 Example for Configuring QinQ-based Layer 2 Protocol Transparent Transmission..........................426

    12 Loopback Detection Configuration.....................................................................................43312.1 Loopback Detection Overview.....................................................................................................................43412.2 Configuring Loopback Detection.................................................................................................................434

    12.2.1 Establishing the Configuration Task...................................................................................................43412.2.2 Enabling Loopback Detection.............................................................................................................43612.2.3 Specifying VLAN IDs of Loopback Detection Packets......................................................................43612.2.4 (Optional) Configuring an Action to Perform After a Loopback Is Detected.....................................43712.2.5 (Optional) Setting the Interface Recovery Time After a Loop Is Removed........................................43812.2.6 (Optional) Setting the Interval for Sending Loopback Detection Packets on an Interface.................43912.2.7 Checking the Configuration.................................................................................................................439

    12.3 Configuration Examples...............................................................................................................................43912.3.1 Example for Configuring Loopback Detection...................................................................................439

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xiii

  • 1 Ethernet Interface ConfigurationAbout This Chapter

    This chapter describes the basic knowledge, methods, and examples for configuring the Ethernetinterface.

    1.1 Introduction to Ethernet InterfacesThis section describes the types and attributes of Ethernet interfaces.

    1.2 Ethernet Interface Features Supported by the S5700The S5700 supports the following features that you can configure for Ethernet interfaces: portgrouping, auto-negotiation, and port isolation.

    1.3 Configuring Basic Attributes of an Ethernet InterfaceThis section describes how to configure the description, cable type, duplex mode, rate, and auto-negotiation for an Ethernet interface. The section also explains how to change the interface type(optical or electrical) of combo interfaces and configure an interface to work at Layer 2 or Layer3.

    1.4 Configuring Advanced Attributes of an Ethernet InterfaceThis section describes how to configure the advanced attributes of an Ethernet interface,including loopback test, port group, maximum frame size, flow control, flow control auto-negotiation, cable test, loopback test, and port isolation.

    1.5 Maintaining Ethernet InterfacesThis section describes how to maintain Ethernet interfaces.

    1.6 Configuration ExamplesThis section provides a configuration example of port isolation.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    1

  • 1.1 Introduction to Ethernet InterfacesThis section describes the types and attributes of Ethernet interfaces.

    Ethernet is an important local area network (LAN) networking technology because it is flexible,simple, and easy to implement.

    Ethernet interfaces are classified into Ethernet electrical interfaces and optical interfaces.

    Table 1-1 shows the attributes of Ethernet electrical interfaces and optical interfaces.

    Table 1-1 Attributes of Ethernet interfaces

    InterfaceType

    Rate (Mbit/s)

    Auto-negotiation Non-negotiation

    FullDuplex

    HalfDuplex

    FullDuplex

    HalfDuplex

    Electrical 10 Yes Yes Yes Yes

    100 Yes Yes Yes Yes

    1000 Yes No Yes No

    Optical 100 No No Yes No

    1000 Yes No Yes No

    10000 No No Yes No

    If the local interface works in auto-negotiation mode, the peer interface must also work in auto-negotiation mode; otherwise, packet loss occurs.

    1.2 Ethernet Interface Features Supported by the S5700The S5700 supports the following features that you can configure for Ethernet interfaces: portgrouping, auto-negotiation, and port isolation.

    Port GroupA port group allows you to configure multiple interfaces at the same time. After you run acommand in the port group view, the configuration applies to all the interfaces in the group.

    Auto-NegotiationThe auto-negotiation function allows interfaces on both ends of a link to select the same operatingparameters. Each interface sends its capability information to the remote end and checks thecapabilities of the remote end. After both interfaces receive capability information from eachother, they adopt the highest capability they both support to communicate with each other.

    The interfaces negotiate the duplex mode, speed, and flow control parameters. After a successfulnegotiation, the interfaces use the same duplex mode, speed, and flow control parameters.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    2

  • Port Isolation

    The port isolation function isolates Layer 2 and Layer 3 communication between ports in thesame VLAN. This function restricts packet transmission between ports flexibly, to provide asecure and flexible network solution.

    1.3 Configuring Basic Attributes of an Ethernet InterfaceThis section describes how to configure the description, cable type, duplex mode, rate, and auto-negotiation for an Ethernet interface. The section also explains how to change the interface type(optical or electrical) of combo interfaces and configure an interface to work at Layer 2 or Layer3.

    1.3.1 Establishing the Configuration Task

    Applicable Environment

    The task to configure basic attributes includes setting the following parameters:

    l Interface description. You can configure interface descriptions to facilitate interfaceidentification, maintenance, and configuration.

    l Cable type. By default, a fast Ethernet (FE) electrical interface automatically identifies thenetwork cable type. If the interface cannot identify the cable type, set the cable type for theinterface.

    l Duplex mode. By default, an FE electrical interface negotiates the duplex mode and ratewith the equipment that is directly connected to the interface. If the connected device doesnot have auto-negotiation capability, set the duplex mode and rate for the FE interface sothat the interface can communicate with the connected device.

    Pre-configuration Tasks

    None.

    Data Preparation

    To configure the basic attributes of an Ethernet interface, you need the following data.

    No. Data

    1 Number of the Ethernet interface

    2 (Optional) Description of the interface

    3 (Optional) Cable type of the Ethernet electrical interface

    4 (Optional) Duplex mode of the Ethernet electrical interface

    5 (Optional) Rate of the Ethernet interface

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    3

  • 1.3.2 (Optional) Configuring an Interface Description

    ContextPerform the following steps on the switch to configure the description of an interface.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Step 3 Run:description description

    A description is configured for the interface.

    By default, an interface description is "HUAWEI, Quidway Series, X interface", where Xspecifies the interface type and number.

    ----End

    1.3.3 (Optional) Configuring the Cable Type on an Interface

    ContextPerform the following steps on the switch to configure the cable type on an interface.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The Ethernet electrical interface view is displayed.

    Step 3 Run:mdi { across | auto | normal }

    The cable type is configured for the Ethernet electrical interface.

    By default, an Ethernet electrical interface automatically identifies the cable type. Use thiscommand when the actual cable type does not match the cable type supported by the interface.

    An electrical interface can use a crossover cable or a straight-through cable. If across is specified,the interface can only use a crossover cable. If normal is specified, the interface can only use a

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    4

  • straight-through cable. If auto is specified, the interface can use either a straight-through cableor a crossover cable.

    ----End

    1.3.4 (Optional) Setting the Duplex Mode

    ContextPerform the following steps on the switch to set the duplex mode for an Ethernet interface.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The Ethernet electrical interface view is displayed.

    Step 3 Run:undo negotiation auto

    Auto-negotiation is disabled on the Ethernet electrical interface.

    Step 4 Run:duplex { full | half }

    The duplex mode is set for the Ethernet electrical interface.

    By default, an Ethernet electrical interface works in full-duplex mode when auto-negotiation isdisabled on the interface.

    ----End

    1.3.5 (Optional) Setting the Interface Rate

    ContextPerform the following steps on the switch to set the interface rate.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    5

  • Step 3 Run:undo negotiation auto

    Auto-negotiation is disabled on the interface.

    Step 4 Run:speed { 10 | 100 | 1000 }

    The interface rate is set.

    By default, an Ethernet interface works at its maximum rate when auto-negotiation is disabledon the interface.

    ----End

    1.3.6 (Optional) Enabling Auto-Negotiation

    ContextPerform the following steps on the switch to enable auto-negotiation on an Ethernet interface.The local interface and remote interface must work in the same mode, that is, both or neitherwork in auto-negotiation mode.

    NOTE

    10G optical interfaces do not support auto-negotiation.

    The negotiation auto command cannot enable rate negotiation for 1000M optical interfaces. On theS5700HI, you can use the speed auto-negotiation command to enable rate negotiation for 1000M opticalinterfaces.

    When the S5700SI switch connects to another device through a GE optical interface on the InterfaceSubcards, configure the GE optical interface to work in non-auto negotiation mode.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Step 3 Run:negotiation auto

    Auto-negotiation is enabled on the interface.

    By default, an interface works in auto-negotiation mode.

    ----End

    1.3.7 (Optional) Switching Between Optical and ElectricalInterfaces

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    6

  • ContextPerform the following steps on the switch to change the combo interface type.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface gigabitethernet interface-number

    The GigabitEthernet interface view is displayed.

    Step 3 Run:combo-port { auto | copper | fiber }

    The interface is changed to an optical interface or an electrical interface.

    By default, a combo interface automatically selects the working mode according to thetransmission media.

    ----End

    1.3.8 (Optional) Configuring an Interface to Work at Layer 2 or Layer3

    ContextNOTE

    Only the S5700HI supports the portswitch command.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Step 3 Run:portswitch

    The interface is configured to work at Layer 2.

    Step 4 Run:undo portswitch

    The interface is configured to work at Layer 3.

    By default, an Ethernet interface works at Layer 2.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    7

  • When you change an Ethernet interface from Layer 3 to Layer 2, the Layer 3 functions andidentifier are disabled on the interface, and the interface uses the MAC address of the system.

    ----End

    1.3.9 Checking the Configuration

    Procedure

    Step 1 Run the display interface [ interface-type [ interface-number ] ] command to check thedescription, duplex mode, and rate of an Ethernet interface.

    ----End

    1.4 Configuring Advanced Attributes of an EthernetInterface

    This section describes how to configure the advanced attributes of an Ethernet interface,including loopback test, port group, maximum frame size, flow control, flow control auto-negotiation, cable test, loopback test, and port isolation.

    1.4.1 Establishing the Configuration Task

    Applicable Environment

    Advanced attributes of an Ethernet interface include:

    l Port group. The S5700 provides the interface group function, which enables you toconfigure multiple interfaces at the same time.

    l Flow control. If the rate of traffic received on an interface is likely to exceed the interfaceprocessing capability, and the directly connected interface supports flow control, enableflow control on the local interface. When the rate of received traffic reaches the threshold,the interface sends a Pause frame (in full duplex mode) or a back pressure signal (in halfduplex mode) to notify the remote interface. If the remote interface supports flow control,it sends traffic at a lower rate so that the local interface can process received traffic.

    l Port isolation. The port isolation function prevents interfaces in the same VLAN fromcommunicating with each other. Interfaces with port isolation enabled cannot communicatewith each other. This function provides secure and flexible networking solutions forcustomers.

    Pre-configuration Tasks

    None.

    Data Preparation

    To configure the advanced functions of an Ethernet interface, you need the following data.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    8

  • No. Data

    1 Interface number

    2 (Optional) Maximum frame length allowed on the interface

    1.4.2 (Optional) Configuring the Loopback Function

    ContextPerform the following steps on the switch to configure the loopback function on an Ethernetinterface.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Step 3 Run:loopback internal

    The loopback function is configured on the Ethernet interface.

    By default, the loopback function is disabled on an Ethernet interface.

    ----End

    1.4.3 (Optional) Configuring a Port Group

    ContextPerform the following steps on the switch to configure a port group.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:port-group port-group-name

    The port group view is displayed.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    9

  • Step 3 Run:group-member interface-type interface-number

    An Ethernet interface is added to the port group.

    ----End

    1.4.4 (Optional) Setting the Maximum Frame Length

    ContextPerform the following steps on the switch to set the maximum frame length on an Ethernetinterface.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The Ethernet interface view is displayed.

    Step 3 Run:jumboframe enable [ value ]

    The maximum frame length is set on the Ethernet interface.

    By default, the maximum frame length allowed by interfaces of the S5700EI and S5700SI is1600 bytes. The maximum frame length allowed by interfaces of the S5700HI and S5706 is9216 bytes.

    ----End

    1.4.5 (Optional) Enabling Flow Control

    ContextTo implement flow control, you must enable this function on both the local interface and peerinterface. Perform the following steps on the switch to enable flow control.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    10

  • Step 3 Run:flow-control

    Flow control is enabled on the interface.

    By default, flow control is disabled on an Ethernet interface.

    ----End

    1.4.6 (Optional) Enabling Auto-Negotiation of Flow Control

    ContextPerform the following steps on the switch to configure auto-negotiation of flow control.

    GE interfaces support auto-negotiation of flow control, but FE interfaces do not.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface gigabitethernet interface-number

    The GE interface view is displayed.

    Step 3 Run:flow-control negotiation

    Auto-negotiation of flow control is enabled on the GE interface.

    By default, auto-negotiation of flow control is disabled on a GE interface.

    You must also configure auto-negotiation of flow control on the peer interface.

    ----End

    1.4.7 (Optional) Enabling Port Isolation

    ContextPerform the following steps on the switch to enable port isolation.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:port-isolate mode { l2 | all }

    The port isolation mode is set.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    11

  • By default, ports are isolated on Layer 2 but can communicate on Layer 3.

    Step 3 Run:interface interface-type interface-number

    The Ethernet interface view is displayed.

    Step 4 (Optional) Run:am isolate interface-type interface-number [ to interface-number ]

    The Ethernet interface is unidirectionally isolated from the specified interface.

    NOTE

    After interface A is unidirectionally isolated from interface B, packets sent by interface A cannot reachinterface B, whereas packets sent from interface B can reach interface A.

    Step 5 Run:port-isolate enable [ group group-id ]

    Port isolation is enabled.

    NOTE

    Interfaces in a port isolation group are isolated from each other, and interfaces in different port isolationgroups can communicate with each other. If group-id is not specified, an interface is added to port isolationgroup 1.

    ----End

    1.4.8 (Optional) Performing a Cable Test

    ContextA cable test detects faults on the cable connected to an interface. If the cable is working properly,the test result displays the total length of the cable. If the cable cannot work properly, he testresult displays the distance between the interface and the failure point.

    NOTE

    l Before performing a cable test, shut down the remote interface or remove the network cable from theremote interface. Otherwise, signals from the remote interface may make the test result inaccurate.

    l Running the virtual-cable-test command affect services on the interface in a short period of time.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Step 3 Run:virtual-cable-test

    A cable test is performed on the interface.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    12

  • NOTEThe test result is for reference only.

    ----End

    1.4.9 (Optional) Configuring a Loopback Test on an Interface

    ContextPerform the following steps on the S5700 where a loopback test needs to be performed.

    Procedure

    Step 1 Run:system-view

    The system view is displayed.

    Step 2 Run:interface interface-type interface-number

    The interface view is displayed.

    Step 3 Run:loopbacktest internal

    A loopback test is configured on the interface.

    By default, no loopback test is configured on an interface.

    ----End

    1.4.10 Checking the Configuration

    Procedurel Run the display port-group [ all | port-group-name ] command to check information about

    a port group.l Run the display interface [ interface-type [ interface-number ] ] command to check auto-

    negotiation capability on an Ethernet interface.l Run the display virtual-cable-test interface-type interface-number command to check the

    cable test result on an Ethernet interface.

    ----End

    1.5 Maintaining Ethernet InterfacesThis section describes how to maintain Ethernet interfaces.

    1.5.1 Debugging Ethernet Interfaces

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    13

  • Context

    CAUTIONDebugging affects the performance of the system. Therefore, run the undo debugging allcommand to disable debugging immediately after the debugging is complete.

    When an Ethernet interface or Eth-Trunk fault occurs, run the following debugging commandin the user view to locate the fault.

    Procedure

    Step 1 Run the debugging l2if [ error | event | msg | updown ] command to enable the debugging oflink layer features.

    ----End

    1.6 Configuration ExamplesThis section provides a configuration example of port isolation.

    1.6.1 Example for Configuring Port Isolation

    Networking RequirementsAs shown in Figure 1-1, it is required that PC1 and PC2 cannot communicate with each other,but they can communicate with PC3.

    Figure 1-1 Networking diagram for port isolation configuration

    Switch

    PC1 PC2 PC3

    GE0/0/3GE0/0/2

    GE0/0/1

    10.10.10.1/24 10.10.10.2/24 10.10.10.3/24

    Configuration RoadmapThe configuration roadmap is as follows:

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    14

  • 1. Enable port isolation on the ports connected to PC1 and PC2 respectively to prevent PC1and PC2 from communicating with each other.

    Data PreparationTo complete the configuration, you need the following data:

    l Number of the port connected to PC1l Number of the port connected to PC2l Port isolation mode: Layer 2 isolation and Layer 3 communication (default configuration)l ID of the VLAN to which the ports connected to PC1, PC2, and PC3 belong (VLAN 1 by

    default)l Port isolation group to which the ports connected to PC1 and PC2 belong (group 1 by

    default)

    Procedure

    Step 1 Enable port isolation.

    # Isolate ports on Layer 2 and allow them to communicate on Layer 3.

    system-view[Quidway] port-isolate mode l2

    # Enable port isolation on GigabitEthernet 0/0/1.

    system-view[Quidway] interface gigabitethernet 0/0/1[Quidway-GigabitEthernet0/0/1] port-isolate enable[Quidway-GigabitEthernet0/0/1] quit

    # Enable port isolation on GigabitEthernet 0/0/2.

    system-view[Quidway] interface gigabitethernet 0/0/2[Quidway-GigabitEthernet0/0/2] port-isolate enable[Quidway-GigabitEthernet0/0/2] quit

    Step 2 Verify the configuration.

    PC1 and PC2 cannot ping each other.

    PC1 and PC3 can ping each other.

    PC2 and PC3 can ping each other.

    ----End

    Configuration FilesConfiguration file of the Switch

    # sysname Quidway#interface GigabitEthernet0/0/1 port-isolate enable group 1#interface GigabitEthernet0/0/2 port-isolate enable group 1#

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    15

  • interface GigabitEthernet0/0/3#return

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    16

  • 2 Link Aggregation ConfigurationAbout This Chapter

    This chapter describes the concepts, configuration procedures, and configuration examples oflink aggregation.

    2.1 Introduction to Link AggregationThis section describes the definition and function of link aggregation.

    2.2 Link Aggregation Supported by the S5700This S5700 supports link aggregation in manual load balancing mode and static LinkAggregation Control Protocol (LACP) mode.

    2.3 Configuring Link Aggregation in Manual Load Balancing ModeThis section describes how to configure link aggregation in manual load balancing mode.

    2.4 Configuring Link Aggregation in Static LACP ModeThis section describes how to configure link aggregation in static LACP mode.

    2.5 Configuring an E-TrunkAs an extension to the Link Aggregation Protocol (LACP) that implements link aggregation ona single device, the Enhanced Trunk (E-Trunk) protocol implements link aggregation betweendevices to improve link reliability between devices.

    2.6 Maintaining Link AggregationThis section describes how to clear the statistics of received and sent LACP packets, debug thelink aggregation group, and monitor the running status of the link aggregation group.

    2.7 Configuration ExamplesThis section provides several configuration examples of link aggregation in manual loadbalancing mode and static LACP mode.

    Quidway S5700 Series Ethernet SwitchesConfiguration Guide - Ethernet 2 Link Aggregation Configuration

    Issue 02 (2011-11-21) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    17

  • 2.1 Introduction to Link AggregationThis section describes the definition and function of link aggregation.

    Link aggregation is a method of bundling a group of physical interfaces into a logical interfaceto increase link bandwidth. It is also called load sharing group or link aggregation group. Fordetails, refer to IEEE802.3ad.

    By setting up a link aggregation group between two devices, you can obtain higher bandwidthand reliability. Link aggregation provides redundancy protection without the need for upgradingthe hardware.

    2.2 Link Aggregation Supported by the S5700This S5700 supports link aggregation in manual load balancing mode and static LinkAggregation Control Protocol (LACP) mode.

    Manual Load Balancing ModeIn load balancing mode, you can add member interfaces to the link aggregation group. All theinterfaces in the link aggregation group are in forwarding state. The S5700 can perform loadbalancing based on destination MAC addresses, source MAC addresses, source MAC addressExclusive-Or destination MAC address, source IP addresses, destination IP addresses, sourceaddress Exclusive-Or destination IP address.

    In manual load balancing mode, you must create an Eth-Trunk interface and add memberinterfaces to the Eth-Trunk. The Link Aggregation Control Protocol (LACP) is not used in thismode.

    The manual load balancing mode is usually used when the peer device does not support LACP.

    Static LACP ModeIn static LACP mode, two devices exchange LACP packets to negotiate aggregation parametersand determine the active interfaces and inactive interfaces. In this mode, you must create an Eth-Trunk interface and add member interfaces to the Eth-Trunk interface. The active interfaces andinactive interfaces are determined by LACP negotiation.

    The static LACP mode is also called the M:N mode, w