282
Quidway S2700 Series Ethernet Switches V100R006C00 Configuration Guide - Ethernet Issue 01 Date 2011-07-15 HUAWEI TECHNOLOGIES CO., LTD.

Configuration Guide - Ethernet(V100R006C00_01)

Embed Size (px)

DESCRIPTION

Configuration guide for Huawei switches

Citation preview

  • Quidway S2700 Series Ethernet SwitchesV100R006C00

    Configuration Guide - Ethernet

    Issue 01Date 2011-07-15

    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.comEmail: [email protected]

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    i

  • About This Document

    Intended AudienceThis document provides the basic concepts, configuration procedures, and configurationexamples in different application scenarios of the Ethernet feature supported by the S2700device.This document describes how to configure the Ethernet feature.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 S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet About This Document

    Issue 01 (2011-07-15) 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 DescriptionBoldface 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 vertical

    bars. One item is selected.[ x | y | ... ] Optional items are grouped in brackets and separated by vertical

    bars. One item is selected or no item is selected.{ x | y | ... }* Optional items are grouped in braces and separated by vertical

    bars. 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 01 (2011-07-15)Initial commercial release.

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet About This Document

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iii

  • Contents

    About This Document.....................................................................................................................ii1 Ethernet Interface Configuration...............................................................................................1

    1.1 Introduction to Ethernet Interfaces.....................................................................................................................21.2 Ethernet Interface Features Supported by the S2700.........................................................................................21.3 Configuring Basic Attributes of the Ethernet Interface......................................................................................3

    1.3.1 Establishing the Configuration Task.........................................................................................................31.3.2 (Optional) Configuring a Description for an Interface..............................................................................31.3.3 (Optional) Configuring the Cable Type on an Interface............................................................................41.3.4 (Optional) Setting the Duplex Mode.........................................................................................................51.3.5 (Optional) Setting the Rate of an Interface................................................................................................51.3.6 (Optional) Enabling Auto-Negotiation......................................................................................................61.3.7 (Optional) Switching Between Optical and Electrical Interfaces..............................................................61.3.8 Checking the Configuration.......................................................................................................................7

    1.4 Configuring Advanced Attributes of an Ethernet Interface................................................................................71.4.1 Establishing the Configuration Task.........................................................................................................71.4.2 (Optional) Configuring Loopback on the Ethernet Interface....................................................................81.4.3 (Optional) Configuring the Interface Group..............................................................................................81.4.4 (Optional) Enabling Flow Control.............................................................................................................91.4.5 (Optional) Enabling Auto-Negotiation of Flow Control...........................................................................91.4.6 (Optional) Enabling Port Isolation..........................................................................................................101.4.7 (Optional) Performing a Cable Test on an Interface...............................................................................101.4.8 (Optional) Configuring a Loopback Test on an Interface.......................................................................111.4.9 Checking the Configuration.....................................................................................................................12

    1.5 Maintaining Ethernet Interfaces.......................................................................................................................121.5.1 Debugging Ethernet Interfaces................................................................................................................12

    1.6 Configuration Examples...................................................................................................................................121.6.1 Example for Configuring Port Isolation..................................................................................................12

    2 Link Aggregation Configuration..............................................................................................152.1 Introduction to Link Aggregation.....................................................................................................................162.2 Link Aggregation Supported by the S2700......................................................................................................162.3 Configuring Link Aggregation in Manual Load Balancing Mode...................................................................17

    2.3.1 Establishing the Configuration Task.......................................................................................................17

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iv

  • 2.3.2 Configuring the Eth-Trunk to Work in Manual Load Balancing Mode..................................................182.3.3 Adding Member Interfaces to an Eth-Trunk...........................................................................................192.3.4 (Optional) Configuring the Load Balancing Mode.................................................................................202.3.5 (Optional) Limiting the Number of Active Interfaces.............................................................................212.3.6 Checking the Configuration.....................................................................................................................22

    2.4 Configuring Link Aggregation in Static LACP Mode.....................................................................................232.4.1 Establishing the Configuration Task.......................................................................................................232.4.2 Configuring the Eth-Trunk to Work in Static LACP Mode....................................................................232.4.3 Adding Member Interfaces to an Eth-Trunk...........................................................................................242.4.4 (Optional) Configuring the Load Balancing Mode.................................................................................252.4.5 (Optional) Limiting the Number of Active Interfaces.............................................................................272.4.6 (Optional) Setting the LACP Priority of the System...............................................................................282.4.7 (Optional) Setting the LACP Priority of an Interface..............................................................................282.4.8 (Optional) Enabling LACP Preemption and Setting the Delay for LACP Preemption...........................292.4.9 (Optional) Setting the Timeout Interval for Receiving LACP Packets...................................................302.4.10 Checking the Configuration...................................................................................................................30

    2.5 Maintaining Link Aggregation.........................................................................................................................312.5.1 Clearing Statistics of LACP Packets.......................................................................................................312.5.2 Debugging the Link Aggregation Group.................................................................................................312.5.3 Monitoring the Operation Status of the Link Aggregation Group..........................................................32

    2.6 Configuration Examples...................................................................................................................................322.6.1 Example for Configuring Link Aggregation in Manual Load Balancing Mode.....................................322.6.2 Example for Configuring Link Aggregation in Static LACP Mode.......................................................35

    3 VLAN Configuration..................................................................................................................393.1 Introduction......................................................................................................................................................413.2 VLAN Features Supported by the S2700.........................................................................................................483.3 Dividing a LAN into VLANs...........................................................................................................................50

    3.3.1 Establishing the Configuration Task.......................................................................................................503.3.2 Dividing a LAN into VLANs Based on Ports.........................................................................................523.3.3 Dividing a LAN into VLANs Based on MAC Addresses.......................................................................543.3.4 Checking the Configuration.....................................................................................................................55

    3.4 Creating a VLANIF Interface...........................................................................................................................553.4.1 Establishing the Configuration Task.......................................................................................................553.4.2 Creating a VLANIF Interface..................................................................................................................563.4.3 Assigning an IP Address to a VLANIF Interface....................................................................................573.4.4 (Optional) Setting a Delay After Which a VLANIF Interface Goes Down............................................573.4.5 (Optional) Setting the MTU of a VLANIF Interface...............................................................................583.4.6 Checking the Configuration.....................................................................................................................59

    3.5 Configuring Inter-VLAN Communication.......................................................................................................593.5.1 Establishing the Configuration Task.......................................................................................................593.5.2 Configuring VLANIF Interfaces for Inter-VLAN Communication........................................................603.5.3 Checking the Configuration.....................................................................................................................62

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    v

  • 3.6 Configuring VLAN Aggregation to Save IP Addresses...................................................................................623.6.1 Establishing the Configuration Task.......................................................................................................623.6.2 Creating a Sub-VLAN.............................................................................................................................633.6.3 Creating a Super-VLAN..........................................................................................................................643.6.4 Assigning an IP Address to the VLANIF Interface of a Super-VLAN...................................................653.6.5 (Optional) Enabling Proxy ARP on the VLANIF Interface of a Super-VLAN......................................653.6.6 Checking the Configuration.....................................................................................................................66

    3.7 Configuring a Voice VLAN to Transmit Voice Data.......................................................................................673.7.1 Establishing the Configuration Task.......................................................................................................673.7.2 Enabling the Voice VLAN Function.......................................................................................................693.7.3 Configuring an OUI for a Voice VLAN..................................................................................................693.7.4 (Optional) Setting an Aging Timer for a Voice VLAN...........................................................................703.7.5 (Optional) Configuring an 802.1p Priority and a DSCP Value for the Voice VLAN.............................713.7.6 (Optional) Configuring the Mode in Which Ports Are Added to a Voice VLAN...................................713.7.7 (Optional) Configuring the Working Mode for a Voice VLAN..............................................................723.7.8 (Optional) Configuring a Port to Communicate with a Voice Device of Another Vendor.....................733.7.9 Checking the Configuration.....................................................................................................................74

    3.8 Configuring an mVLAN to Implement Integrated Management.....................................................................743.8.1 Establishing the Configuration Task.......................................................................................................753.8.2 Configuring an mVLAN..........................................................................................................................753.8.3 Configuring a VLANIF Interface for an mVLAN..................................................................................763.8.4 Checking the Configuration.....................................................................................................................76

    3.9 Maintaining VLAN...........................................................................................................................................763.9.1 Clearing the Statistics of VLAN Packets................................................................................................77

    3.10 Configuration Examples.................................................................................................................................773.10.1 Example for Configuring Interface-based VLANs................................................................................773.10.2 Example for Configuring MAC Address-based VLAN Assignment....................................................803.10.3 Example for Implementing Communication Between VLANs by Using VLANIF Interfaces.............823.10.4 Example for Configuring VLAN Aggregation......................................................................................843.10.5 Example for Configuring a Voice VLAN in Auto Mode......................................................................873.10.6 Example for Configuring a Voice VLAN in Manual Mode..................................................................90

    4 VLAN Mapping Configuration................................................................................................944.1 Introduction to VLAN Mapping.......................................................................................................................954.2 VLAN Mapping Features Supported by the S2700..........................................................................................954.3 Configuring VLAN Mapping of Single VLAN Tag........................................................................................95

    4.3.1 Establishing the Configuration Task.......................................................................................................954.3.2 Replacing a Single Tag............................................................................................................................964.3.3 Checking the Configuration.....................................................................................................................97

    4.4 Configuring Global VLAN Mapping...............................................................................................................974.4.1 Establishing the Configuration Task.......................................................................................................974.4.2 Configuring Global VLAN Mapping......................................................................................................984.4.3 Checking the Configuration.....................................................................................................................98

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vi

  • 4.5 Configuration Examples...................................................................................................................................994.5.1 Example for Configuring Single-Tag VLAN Mapping..........................................................................994.5.2 Example for Configuring N:1 VLAN Mapping....................................................................................1024.5.3 Example for Configuring Global VLAN Mapping...............................................................................104

    5 QinQ Configuration..................................................................................................................1075.1 Concept of QinQ.............................................................................................................................................1085.2 QinQ Features Supported by the S2700.........................................................................................................1085.3 Configuring QinQ on an Interface..................................................................................................................108

    5.3.1 Establishing the Configuration Task.....................................................................................................1085.3.2 Setting the Link Type of an Interface....................................................................................................1095.3.3 Specifying the Outer VLAN ID.............................................................................................................1095.3.4 Checking the Configuration...................................................................................................................110

    5.4 Configuring QinQ Stacking on a VLANIF Interface.....................................................................................1105.4.1 Establishing the Configuration Task.....................................................................................................1105.4.2 Configuring QinQ Stacking on a VLANIF Interface............................................................................1125.4.3 Checking the Configuration...................................................................................................................112

    5.5 Setting the Protocol Type in the Outer VLAN Tag........................................................................................1135.5.1 Establishing the Configuration Task.....................................................................................................1135.5.2 Configuring the Type of an Interface....................................................................................................1135.5.3 Setting the Protocol Type in the Outer VLAN Tag...............................................................................1145.5.4 Checking the Configuration...................................................................................................................114

    5.6 Configuration Examples.................................................................................................................................1155.6.1 Example for Configuring QinQ on Interfaces.......................................................................................1155.6.2 Example for Configuring QinQ Stacking on the VLANIF Interface....................................................118

    6 GVRP Configuration................................................................................................................1216.1 GVRP Overview.............................................................................................................................................1226.2 GVRP Features Supported by the S2700.......................................................................................................1256.3 Configuring GVRP.........................................................................................................................................126

    6.3.1 Establishing the Configuration Task.....................................................................................................1266.3.2 Enabling GVRP.....................................................................................................................................1266.3.3 (Optional) Setting the Registration Mode of a GVRP Interface............................................................1276.3.4 (Optional) Setting the GARP Timers....................................................................................................1286.3.5 Checking the Configuration...................................................................................................................129

    6.4 Maintaining GVRP.........................................................................................................................................1296.4.1 Clearing GARP Statistics......................................................................................................................129

    6.5 Configuration Examples.................................................................................................................................1306.5.1 Example for Configuring GVRP...........................................................................................................130

    7 MAC Address Table Configuration.......................................................................................1347.1 MAC Address Table Overview......................................................................................................................1367.2 MAC Address Features Supported by the S2700...........................................................................................1377.3 Configuring a Static MAC Address Entry......................................................................................................138

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vii

  • 7.4 Configuring a Blackhole MAC Address Entry...............................................................................................1407.5 Setting the Aging Time of Dynamic MAC Address Entries..........................................................................1417.6 Disabling MAC Address Learning.................................................................................................................142

    7.6.1 Establishing the Configuration Task.....................................................................................................1427.6.2 Disabling MAC Address Learning on an Interface...............................................................................1437.6.3 Disabling MAC Address Learning in a VLAN.....................................................................................1447.6.4 Checking the Configuration...................................................................................................................144

    7.7 Limiting the Number of Learned MAC Addresses........................................................................................1447.7.1 Establishing the Configuration Task.....................................................................................................1447.7.2 Limiting the Number of MAC Addresses Learned on an Interface......................................................1467.7.3 Checking the Configuration...................................................................................................................146

    7.8 Configuring Port Security...............................................................................................................................1477.8.1 Establishing the Configuration Task.....................................................................................................1477.8.2 Configuring the Secure Dynamic MAC Function on an Interface........................................................1487.8.3 Configuring the Sticky MAC Function on an Interface........................................................................1497.8.4 Checking the Configuration...................................................................................................................150

    7.9 Configuring the S2700 to Discard Packets with an All-0 MAC Address......................................................1507.10 Configuration Examples...............................................................................................................................151

    7.10.1 Example for Configuring the MAC Address Table.............................................................................1517.10.2 Example for Configuring Interface Security.......................................................................................154

    8 STP/RSTP Configuration.........................................................................................................1578.1 STP/RSTP Overview......................................................................................................................................158

    8.1.1 STP/RSTP Overview.............................................................................................................................1588.1.2 STP/RSTP Features Supported by the S2700........................................................................................163

    8.2 Configuring Basic STP/RSTP Functions.......................................................................................................1658.2.1 Establishing the Configuration Task.....................................................................................................1658.2.2 Configuring the STP/RSTP Mode.........................................................................................................1678.2.3 (Optional) Configuring Switching Device Priorities.............................................................................1678.2.4 (Optional) Setting the Path Cost for a Port............................................................................................1688.2.5 (Optional) Configuring Port Priorities...................................................................................................1698.2.6 Enabling STP/RSTP..............................................................................................................................1708.2.7 Checking the Configuration...................................................................................................................170

    8.3 Configuring STP/RSTP Parameters on an Interface......................................................................................1718.3.1 Establishing the Configuration Task.....................................................................................................1738.3.2 Setting System Parameters....................................................................................................................1748.3.3 Setting Port Parameters.........................................................................................................................1758.3.4 Checking the Configuration...................................................................................................................177

    8.4 Configuring RSTP Protection Functions........................................................................................................1778.4.1 Establishing the Configuration Task.....................................................................................................1778.4.2 Configuring BPDU Protection on a Switching Device.........................................................................1798.4.3 Configuring TC Protection on a Switching Device...............................................................................1808.4.4 Configuring Root Protection on a Port..................................................................................................180

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    viii

  • 8.4.5 Configuring Loop Protection on a Port.................................................................................................1818.4.6 Checking the Configuration...................................................................................................................182

    8.5 Configuring STP/RSTP Interoperability Between Huawei Devices and Non-Huawei Devices....................1828.5.1 Establishing the Configuration Task.....................................................................................................1828.5.2 Configuring the Proposal/Agreement Mechanism................................................................................1838.5.3 Checking the Configuration...................................................................................................................184

    8.6 Maintaining STP/RSTP..................................................................................................................................1848.6.1 Clearing STP/RSTP Statistics...............................................................................................................185

    8.7 Configuration Examples.................................................................................................................................1858.7.1 Example for Configuring Basic STP Functions....................................................................................1858.7.2 Example for Configuring Basic RSTP Functions..................................................................................189

    9 MSTP Configuration.................................................................................................................1949.1 MSTP Overview.............................................................................................................................................195

    9.1.1 MSTP Introduction................................................................................................................................1959.1.2 MSTP Features Supported by the S2700...............................................................................................203

    9.2 Configuring Basic MSTP Functions...............................................................................................................2059.2.1 Establishing the Configuration Task.....................................................................................................2069.2.2 Configuring the MSTP Mode................................................................................................................2089.2.3 Configuring and Activating an MST Region........................................................................................2089.2.4 (Optional) Setting a Priority for a Switching Device in an MSTI.........................................................2109.2.5 (Optional) Setting a Path Cost of a Port in an MSTI.............................................................................2119.2.6 (Optional) Setting a Port Priority in an MSTI.......................................................................................2129.2.7 Enabling MSTP.....................................................................................................................................2139.2.8 Checking the Configuration...................................................................................................................213

    9.3 Configuring MSTP Parameters on an Interface.............................................................................................2139.3.1 Establishing the Configuration Task.....................................................................................................2149.3.2 Configuring System Parameters............................................................................................................2149.3.3 Configuring Port Parameters.................................................................................................................2169.3.4 Checking the Configuration...................................................................................................................218

    9.4 Configuring MSTP Protection Functions.......................................................................................................2189.4.1 Establishing the Configuration Task.....................................................................................................2189.4.2 Configuring BPDU Protection on a Switching Device.........................................................................2209.4.3 Configuring TC Protection on a Switching Device...............................................................................2209.4.4 Configuring Root Protection on an Interface........................................................................................2219.4.5 Configuring Loop Protection on an Interface........................................................................................2229.4.6 Checking the Configuration...................................................................................................................223

    9.5 Configuring MSTP Interoperability Between Huawei Devices and Non-Huawei Devices...........................2239.5.1 Establishing the Configuration Task.....................................................................................................2239.5.2 Configuring a Proposal/Agreement Mechanism...................................................................................2249.5.3 Configuring the MSTP Protocol Packet Format on an Interface...........................................................2259.5.4 Enabling the Digest Snooping Function................................................................................................2269.5.5 Checking the Configuration...................................................................................................................226

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    ix

  • 9.6 Maintaining MSTP.........................................................................................................................................2269.6.1 Clearing MSTP Statistics.......................................................................................................................227

    9.7 Configuration Examples.................................................................................................................................2279.7.1 Example for Configuring Basic MSTP Functions.................................................................................227

    10 Layer 2 Protocol Transparent Transmission Configuration............................................23510.1 Overview of Layer 2 Protocol Transparent Transmission............................................................................23610.2 Layer 2 Protocol Transparent Transmission Features Supported by the S2700...........................................23710.3 Configuring Interface-based Layer 2 Protocol Transparent Transmission...................................................241

    10.3.1 Establishing the Configuration Task...................................................................................................24110.3.2 (Optional) Defining Characteristic Information About a Layer 2 Protocol........................................24210.3.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................24210.3.4 Enabling Layer 2 Protocol Transparent Transmission on an Interface...............................................24310.3.5 Checking Configuration......................................................................................................................244

    10.4 Configuring VLAN-based Layer 2 Protocol Transparent Transmission......................................................24510.4.1 Establishing the Configuration Task...................................................................................................24510.4.2 (Optional) Defining Characteristic Information About a Layer 2 Protocol........................................24510.4.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................24610.4.4 Enabling VLAN-based Layer 2 Protocol Transparent Transmission on an Interface.........................24710.4.5 Checking the Configuration.................................................................................................................248

    10.5 Maintaining Layer 2 Protocol Transparent Transmission............................................................................24810.5.1 Debugging Layer 2 Protocol Transparent Transmission.....................................................................248

    10.6 Configuration Examples...............................................................................................................................24910.6.1 Example for Configuring Interface-based Layer 2 Protocol Transparent Transmission.....................24910.6.2 Example for Configuring VLAN-based Layer 2 Protocol Transparent Transmission........................256

    11 Loopback Detection Configuration.....................................................................................26311.1 Loopback Detection Overview.....................................................................................................................26411.2 Configuring Loopback Detection.................................................................................................................264

    11.2.1 Establishing the Configuration Task...................................................................................................26411.2.2 Enabling Loopback Detection.............................................................................................................26611.2.3 Specifying VLAN IDs of Loopback Detection Packets......................................................................26611.2.4 (Optional) Configuring an Action to Perform After a Loopback Is Detected.....................................26711.2.5 (Optional) Setting the Interface Recovery Time After a Loop Is Removed........................................26811.2.6 (Optional) Setting the Interval for Sending Loopback Detection Packets on an Interface.................26911.2.7 Checking the Configuration.................................................................................................................269

    11.3 Configuration Examples...............................................................................................................................26911.3.1 Example for Configuring Loopback Detection...................................................................................269

    Quidway S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet Contents

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    x

  • 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 Ethernet interfaces.1.2 Ethernet Interface Features Supported by the S2700This section describes the Ethernet interface features supported by the S2700.1.3 Configuring Basic Attributes of the Ethernet InterfaceThis section describes how to configure the description, cable type, duplex mode, rate, and auto-negotiation an Ethernet interface, and switch between the optical and electrical interfaces.1.4 Configuring Advanced Attributes of an Ethernet InterfaceThis section describes how to configure the loopback on the Ethernet Interface, port group,maximum frame size, flow control, flow control auto-negotiation, cable test, loopback test, andport isolation.1.5 Maintaining Ethernet InterfacesThis section describes how to maintain Ethernet interfaces.1.6 Configuration ExamplesThis section provides several configuration examples of Ethernet interfaces.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    1

  • 1.1 Introduction to Ethernet InterfacesThis section describes the Ethernet interfaces.The Ethernet is flexible, simple, and easy to implement; therefore, it becomes an important localarea network (LAN) networking technology.Ethernet interfaces are classified into Ethernet electrical interfaces and Ethernet opticalinterfaces.Table 1-1 shows the attributes of Ethernet electrical interfaces and Ethernet optical interfaces.

    Table 1-1 Attributes of Ethernet interfacesInterfaceType

    Rate (Mbit/s)

    Auto-negotiation Non-negotiationFullDuplex

    HalfDuplex

    FullDuplex

    HalfDuplex

    Ethernetelectricalinterface

    10 Yes Yes Yes Yes100 Yes Yes Yes Yes1000 Yes No Yes No

    Ethernetopticalinterface

    100 No No Yes No1000 Yes 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 may occur.

    1.2 Ethernet Interface Features Supported by the S2700This section describes the Ethernet interface features supported by the S2700.

    Port GroupThe port group function enables you to configure multiple interfaces at the same time. You canrun commands in the port group view to configure all the interfaces in the group.

    Auto-NegotiationThe auto-negotiation function allows interfaces on both ends of a link to select the same operatingparameters by exchanging capability information. Each interface sends its capability informationto the remote end and checks capabilities of the remote end. After both interfaces receive thecapability information from each other, they adopt the highest capability they support tocommunicate 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 S2700 Series Ethernet SwitchesConfiguration Guide - Ethernet 1 Ethernet Interface Configuration

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    2

  • Port IsolationThe port isolation function isolates Layer 2 and Layer 3 communication between ports in thesame VLAN. This function restricts packet transmission between ports flexibly, providing asecure and flexible network solution.

    1.3 Configuring Basic Attributes of the Ethernet InterfaceThis section describes how to configure the description, cable type, duplex mode, rate, and auto-negotiation an Ethernet interface, and switch between the optical and electrical interfaces.

    1.3.1 Establishing the Configuration Task

    Applicable EnvironmentThe configuration task is applicable to the following situations:l You can configure the description of interfaces to facilitate the identification, maintenance,

    and configuration of the interfaces.l By default, an FE electrical interface automatically identifies the network cable type. If the

    interface cannot identify the cable type properly, set the cable type for the interfacemanually.

    l By default, an FE electrical interface negotiates the duplex mode and rate with theequipment that is directly connected to the interface. If the connected equipment does nothave the auto-negotiation capability, set the duplex mode and rate for the FE interfacemanually so that the interface can work with the connected equipment.

    Pre-configuration TasksNone

    Data PreparationTo configure the basic functions of Ethernet interfaces, you need the following data.

    No. Data1 Number of an Ethernet interface2 (Optional) Description of an interface3 (Optional) Cable type of an ethernet electrical interface4 (Optional) Duplex mode of an ethernet electrical interface5 (Optional) Rate of an ethernet interface

    1.3.2 (Optional) Configuring a Description for an Interface

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    3

  • ContextPerform the following steps on the S2700.

    ProcedureStep 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, the description of an interface is "HUAWEI, Quidway Series, X interface". Xspecifies the interface type and number.----End

    1.3.3 (Optional) Configuring the Cable Type on an Interface

    ContextPerform the following steps on the S2700.

    ProcedureStep 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.An electrical interface can use a crossover cable or a straight through cable. If across is specified,the interface can use a crossover cable; if normal is specified, the interface can use a straightthrough cable; if auto is specified, the interface can use both types of network cables.----End

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    4

  • 1.3.4 (Optional) Setting the Duplex Mode

    ContextDo as follows on the S2700 where you need to set the duplex mode of interfaces.

    ProcedureStep 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

    The auto-negotiation mode 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, the duplex mode of an Ethernet electrical interface is full-duplex when auto-negotiation is disabled on the interface.----End

    1.3.5 (Optional) Setting the Rate of an Interface

    ContextDo as follows on the S2700 where you need to set the rate of interfaces.

    ProcedureStep 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:

    undo negotiation auto

    The auto-negotiation mode is disabled on the interface.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    5

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

    The rate is set for the interface.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

    ContextDo as follows on the S2700 where you want to enable auto-negotiation and on the switchconnected to this S2700.

    ProcedureStep 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.The local interface and peer interface must work in the same mode, that is, both in auto-negotiation mode or not.----End

    1.3.7 (Optional) Switching Between Optical and ElectricalInterfaces

    ContextDo as follows on the S2700 where you need to switch between optical and electrical interfaces.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    6

  • 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 port selects the working mode automatically.----End

    1.3.8 Checking the Configuration

    ProcedureStep 1 Run the display interface [ interface-type [ interface-number ] ] command to display the

    description, duplex mode, and rate of an Ethernet interface.----End

    1.4 Configuring Advanced Attributes of an EthernetInterface

    This section describes how to configure the loopback on the Ethernet Interface, port group,maximum frame size, flow control, flow control auto-negotiation, cable test, loopback test, andport isolation.

    1.4.1 Establishing the Configuration Task

    Applicable EnvironmentThe configuration task is applicable to the following situations:l The S2700 provides the interface group function, which enables you to configure multiple

    interfaces at the same time.l If the traffic volume received on an interface of the S2700 may exceed the processing

    capability of the interface and the directly connected interface supports traffic control,enable the traffic control function on the interface. When the rate of received traffic reachesthe threshold, the interface sends a Pause frame (in full duplex mode) or sends a backpressure signal (in half duplex mode) to notify the peer interface. If the peer interfacesupports traffic control, it decreases the rate of at which it sends traffic so that the localinterface can properly process received traffic.

    l Ports enabled with port isolation cannot communicate with each other so that ports on thesame VLAN can be isolated. Port isolation provides secure and flexible networkingschemes for customers.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    7

  • Pre-configuration TasksNone.

    Data PreparationTo configure the advanced functions of Ethernet interfaces, you need the following data.

    No. Data1 Interface number2 (Optional) Maximum frame length allowed on the interface

    1.4.2 (Optional) Configuring Loopback on the Ethernet Interface

    ContextDo as follows on the S2700 where you need to configure the loopback.

    ProcedureStep 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 is configured on the Ethernet interface.By default, loopback is not configured on an Ethernet interface.----End

    1.4.3 (Optional) Configuring the Interface Group

    ContextDo as follows on the S2700 where you need to configure interface groups.

    ProcedureStep 1 Run:

    system-view

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    8

  • The system view is displayed.Step 2 Run:

    port-group port-group-name

    The interface group view is displayed.Step 3 Run:

    group-member interface-type interface-number

    The Ethernet interface is added to the interface group.----End

    1.4.4 (Optional) Enabling Flow ControlContext

    Do as follows on the S2700 where you need to enable flow control.

    ProcedureStep 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:

    flow-control

    Flow control is enabled on the Ethernet interface.By default, flow control is disabled on an Ethernet interface.To implement flow control, you must enable this function on both the local interface and peerinterface.----End

    1.4.5 (Optional) Enabling Auto-Negotiation of Flow ControlContext

    Do as follows on the S2700 whose interface needs to be configured with auto-negotiation offlow control.GE interfaces support auto-negotiation of flow control, but FE interfaces do not support thisfunction.

    ProcedureStep 1 Run:

    system-view

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    9

  • 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 also need to configure auto-negotiation of flow control on the peer interface.----End

    1.4.6 (Optional) Enabling Port Isolation

    ContextDo as follows on the S2700 where you need to enable port isolation.

    ProcedureStep 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 (Optional) Run:

    am isolate interface-type interface-number [ to interface-number ]

    The Ethernet interface is isolated from another interface unidirectionally.NOTEAfter interface A is isolated from interface B unidirectionally, packets sent by interface A cannot reachinterface B, whereas packets sent from interface B can reach interface A.

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

    Port isolation is enabled.NOTEPorts in a port isolation group are isolated from each other, and ports in different port isolation groups cancommunicate with each other. If group-id is not specified, a port is added to port isolation group 1.

    ----End

    1.4.7 (Optional) Performing a Cable Test on an Interface

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    10

  • ContextA cable test detects faults on the cable connected to an interface. If the cable is working properly,the total length of the cable is displayed. If the cable cannot work properly, the distance betweenthe interface and the fault point is displayed.

    ProcedureStep 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.NOTE

    l The test result is only for reference.l Running the virtual-cable-test command may affect services on the interface in a short period of time.l Combo electrical interfaces support cable tests.l Before performing a cable test, shut down the remote interface or remove the network cable from the

    remote interface. Otherwise, signals from the remote interface may make the test result inaccurate.

    ----End

    1.4.8 (Optional) Configuring a Loopback Test on an Interface

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

    ProcedureStep 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.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    11

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

    1.4.9 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

    information about 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

    Context

    CAUTIONDebugging affects the performance of the system. So, after debugging, run the undo debuggingall command to disable it immediately.

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

    ProcedureStep 1 Run the debugging l2if [ error | event | msg | updown ] command to enable the debugging of

    link layer features.----End

    1.6 Configuration ExamplesThis section provides several configuration examples of Ethernet interfaces.

    1.6.1 Example for Configuring Port Isolation

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    12

  • 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 configuring port isolation

    Switch

    PC1 PC2 PC3

    Eth0/0/3Eth0/0/2

    Eth0/0/1

    10.10.10.1/24 10.10.10.2/24 10.10.10.3/24

    Configuration RoadmapThe configuration roadmap is as follows:1. Enable port isolation on the ports connected to PC1 and PC2 respectively to prevent PC1

    and 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 ID of the VLAN that the ports connected to PC1, PC2, and PC3 belong to (VLAN 1 by

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

    ProcedureStep 1 Enable port isolation.

    # Enable port isolation on Ethernet 0/0/1. system-view[Quidway] interface ethernet 0/0/1[Quidway-Ethernet0/0/1] port-isolate enable[Quidway-Ethernet0/0/1] quit

    # Enable port isolation on Ethernet 0/0/2. system-view[Quidway] interface ethernet 0/0/2

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    13

  • [Quidway-Ethernet0/0/2] port-isolate enable[Quidway-Ethernet0/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 Ethernet0/0/1 port-isolate enable group 1#interface Ethernet0/0/2 port-isolate enable group 1#interface Ethernet0/0/3#return

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    14

  • 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 concept of link aggregation.2.2 Link Aggregation Supported by the S2700This section describes link aggregation features supported by the S2700.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 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.6 Configuration ExamplesThis section provides several configuration examples of link aggregation in manual loadbalancing mode and in static LACP mode.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    15

  • 2.1 Introduction to Link AggregationThis section describes the concept of link aggregation.Link aggregation refers to a method of bundling a group of physical interfaces into a logicalinterface to increase bandwidth. It is also called multi-interface load sharing group or linkaggregation group. For details, 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 for communication amongdevices without upgrading the hardware.

    2.2 Link Aggregation Supported by the S2700This section describes link aggregation features supported by the S2700.

    Manual Load Balancing ModeIn load balancing mode, you can manually add member interfaces to the link aggregation group.All the interfaces configured with load balancing are in forwarding state. The S2700 can performload balancing based on destination MAC addresses, source MAC addresses, source MACaddress exclusive-or destination MAC address, source IP addresses, destination IP addresses,source address exclusive-or destination IP address.You must set up the Eth-Trunk and add an interface to the Eth-Trunk manually. The LinkAggregation Control Protocol (LACP) is not used.The manual load balancing mode is usually used when the peer device does not support LACP.

    Static LACP ModeThe static LACP mode is a link aggregation mode in which the two parties negotiate aggregationparameters by exchanging LACP packets. After the negotiation, the two parties determine theactive interface and the inactive interface. In static LACP mode, you need to create an Eth-Trunkmanually and add members to the Eth-Trunk. The active interfaces and inactive interfaces aredetermined by LACP negotiation.The static LACP mode is also called the M:N mode. In this mode, links can implement loadbalancing and redundancy at the same time. In a link aggregation group, M links are active andthey forward data in load balancing mode. N links are inactive and they function as backup links.The backup links do not forward data. When an active link fails, the backup link with the highestpriority replaces the failed link to forward data and its status changes to active.In static LACP mode, some links function as backup links. In manual load balancing mode, allmember interfaces work in forwarding state to share the traffic. This is the main differencebetween the two modes.Link aggregation can also be implemented in dynamic LACP mode. In dynamic LACP mode,LACP creates the Eth-Trunk and adds member interfaces automatically without humanintervention. This mode is easy for users, but is too flexible and hard for management; therefore,the S2700 does not support dynamic LACP mode.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    16

  • Active Interface and Inactive InterfaceActive interfaces refer to the interfaces that are in active state and are responsible for forwardingdata. The interfaces that do not forward data and are in inactive state are called inactive interfaces.According to the operation modes, active and inactive interfaces are classified as follows:l Manual load balancing mode: Generally, all member interfaces are active interfaces unless

    a fault occurs on these interfaces.l Static LACP mode: The interfaces connected to M links are active interfaces that are

    responsible for forwarding data; the interfaces connected to N links are inactive interfacesthat are used for redundancy backup.

    Actor and PartnerIn static LACP mode, the device in the link aggregation group with a higher LACP priority isthe Actor and the device with a lower LACP priority is the Partner.If the two devices have the same LACP priority, the Actor is selected based on the MACaddresses of the devices. The device with a smaller MAC address becomes the Actor.Differentiating the Actor and the Partner is to keep the active interfaces of devices at both endsconsistent. If the devices at both ends select active interfaces according to the priority of theirown interfaces, the active interfaces may be different and the active links cannot be set up.Therefore, the Actor is first determined. The Partner selects active interfaces according to thepriority of the interfaces of the Actor. Figure 2-1 shows the process of selecting active interfaces.

    Figure 2-1 Determining the active links in static LACP modeSwitchA SwitchB

    SwitchBSwitchAThe Actor determines

    the active link

    Device with highpriority

    Device with lowpriority

    Active interface selected by SwitchAActive interface selected by SwitchB

    2.3 Configuring Link Aggregation in Manual LoadBalancing Mode

    This section describes how to configure link aggregation in manual load balancing mode.

    2.3.1 Establishing the Configuration Task

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    17

  • Applicable EnvironmentWhen the bandwidth or the reliability of two devices should be increased and either of the twodevices does not support LACP, you should create an Eth-Trunk in manual load balancing modeon Switches and add member interfaces to the Eth-Trunk to increase the bandwidth and improvereliability of devices.As shown in Figure 2-2, Eth-Trunks are created between SwitchA and SwitchB.

    Figure 2-2 Networking diagram for configuring link aggregation in load balancing mode

    SwitchA SwitchBEth-Trunk

    Eth-Trunk 1 Eth-Trunk 1

    Pre-configuration TasksBefore configuring an Eth-Trunk in manual load balancing mode, complete the following tasks:l Powering on the S2700l Creating the Eth-Trunks

    Data PreparationTo configure an Eth-Trunk in manual load balancing mode, you need the following data.

    No. Data1 Number of the Eth-Trunk in manual load balancing mode2 Type and number of the member interface

    2.3.2 Configuring the Eth-Trunk to Work in Manual Load BalancingMode

    ContextNOTE

    Check whether the Eth-Trunk contains member interfaces before you configure the operation mode of theEth-Trunk. If the Eth-Trunk contains member interfaces, the operation mode of the Eth-Trunk cannot bechanged. To delete member interfaces from the Eth-Trunk, run the undo eth-trunk trunk-id command inthe interface view or run the undo trunkport interface-type interface-number command in the Eth-Trunkview.

    Do as follows on the S2700 where you need to configure an Eth-Trunk in manual load balancingmode.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    18

  • ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface eth-trunk trunk-id

    The Eth-Trunk view is displayed.Step 3 Run:

    mode manual [ load-balance ]

    The operation mode of the Eth-Trunk is set to load balancing.By default, an Eth-Trunk works in manual load balancing mode.If the local device is configured with the Eth-Trunk in manual load balancing mode, you needto configure the Eth-Trunk in manual load balancing mode on the peer device.----End

    2.3.3 Adding Member Interfaces to an Eth-Trunk

    ContextDo as follows on the S2700 where you need to configure member interfaces of an Eth-Trunk.

    Procedurel Configuration in the Eth-Trunk interface view

    1. Run:system-view

    The system view is displayed.2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.3. Run:

    trunkport interface-type { interface-number1 [ to interface-number2 ] } &

    Member interfaces are added to the Eth-Trunk.l Configuration in the member interface view

    1. Run:system-view

    The system view is displayed.2. Run:

    interface interface-type interface-number

    The interface view is displayed.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    19

  • 3. Run:eth-trunk trunk-id

    The interface is added to the Eth-Trunk.When adding an interface to an Eth-Trunk, pay attention to the following points: An Eth-Trunk of the S2700EI contains a maximum of eight member interfaces. An Eth-Trunk of the S2700SI contains a maximum of four member interfaces. A member interface cannot be configured with any service or static MAC address. When adding an interface to an Eth-Trunk, ensure that the interface is a hybrid interface,

    which is the default interface type. An Eth-Trunk cannot be nested, that is, its member interfaces cannot be Eth-Trunk. An Ethernet interface can be added to only one Eth-trunk interface. To add the Ethernet

    interface to another Eth-trunk, delete the Ethernet interface from the current Eth-Trunkfirst. The member interfaces of an Eth-trunk must be of the same type. For example, the FE

    interface and the GE interface cannot be added to the same Eth-trunk. Ethernet interfaces on different LPUs can be added to the same Eth-Trunk. The peer interface directly connected to the Eth-Trunk on the local end must also be

    added to an Eth-Trunk; otherwise, the two ends cannot communicate. When the rates of member interfaces are different, the interfaces with a smaller rate may

    be congested, and packets may be lost. After an interface is added to an Eth-Trunk, MAC address learning is performed by the

    Eth-Trunk rather than the member interfaces.----End

    2.3.4 (Optional) Configuring the Load Balancing Mode

    ContextDo as follows on the S2700 where the Eth-Trunk load balancing mode needs to be configured.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface eth-trunk trunk-id

    The Eth-Trunk view is displayed.Step 3 Run:

    load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dst-mac }

    The load balancing mode is configured for the Eth-Trunk.The default load balancing mode is src-dst-mac.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    20

  • The S2700 supports the following load balancing modes:l dst-ip: load balancing based on the destination IP address. In this mode, the system obtains

    the specified three bits from each of the destination IP address and the TCP or UDP portnumber in outgoing packets to perform the Exclusive-OR calculation, and then selects theoutgoing interface from the Eth-Trunk table according to the calculation result.

    l dst-mac: load balancing based on the destination MAC address. In this mode, the systemobtains the specified three bits from each of the destination MAC address, VLAN ID,Ethernet type, and incoming interface information to perform the Exclusive-OR calculation,and then selects the outgoing interface from the Eth-Trunk table according to the calculationresult.

    l src-ip: load balancing based on the source IP address. In this mode, the system obtains thespecified three bits from each of the source IP address and the TCP or UDP port number inincoming packets to perform the Exclusive-OR calculation, and then selects the outgoinginterface from the Eth-Trunk table according to the calculation result.

    l src-mac: load balancing based on the source MAC address. In this mode, the system obtainsthe specified three bits from each of the source MAC address, VLAN ID, Ethernet type, andincoming interface information to perform the Exclusive-OR calculation, and then selectsthe outgoing interface from the Eth-Trunk table according to the calculation result.

    l src-dst-ip: load balancing based on the Exclusive-OR result of the source IP address anddestination IP address. In this mode, the system performs the Exclusive-OR calculationbetween the Exclusive-OR results of the dip and dmac modes, and then selects the outgoinginterface from the Eth-Trunk table according to the calculation result.

    l src-dst-mac: load balancing based on the Exclusive-OR result of the source MAC addressand destination MAC address. In this mode, the system obtains three bits from each of thesource MAC address, destination MAC address, VLAN ID, Ethernet type, and incominginterface information to perform the Exclusive-OR calculation, and then selects the outgoinginterface from the Eth-Trunk table according to the calculation result.

    Member interfaces of an Eth-Trunk perform per-flow load balancing. The local end and theremote end can use different load balancing modes, and the load balancing mode on one enddoes not affect load balancing on the other end.----End

    2.3.5 (Optional) Limiting the Number of Active Interfaces

    ContextDo as follows on the S2700 where you need to limit the number of active interfaces.

    Procedurel Setting the upper threshold of the number of interfaces that determine bandwidth of the

    Eth-Trunk1. Run:

    system-view

    The system view is displayed.2. Run:

    interface eth-trunk trunk-id

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    21

  • The Eth-Trunk view is displayed.3. Run:

    max bandwidth-affected-linknumber link-number

    The maximum number of interfaces that determine bandwidth of the Eth-Trunk is set.By default, the maximum number of interfaces that determine bandwidth of the Eth-Trunk is 8 on the S2700EI.By default, the maximum number of interfaces that determine bandwidth of the Eth-Trunk is 4 on the S2700SI.

    NOTE

    l The upper threshold the number of interfaces that determine bandwidth of the Eth-Trunk of thelocal S2700 and that of the remote S2700 can be different. If the upper thresholds at two endsare different, the smaller one is used.

    l Setting the lower threshold of the number of active interfaces1. Run:

    system-view

    The system view is displayed.2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk view is displayed.3. Run:

    least active-linknumber link-number

    The lower threshold of the number of active interfaces is set.By default, the lower threshold of the number of active interfaces is 1.

    In manual load balancing mode, you can determine the minimum number of activeinterfaces in the Eth-Trunk by setting the lower threshold. If the number of active interfacesis smaller than the value in manual load balancing mode, the status the Eth-Trunk becomesDown.

    NOTE

    l The lower threshold of the number of active interfaces of the local S2700 and that of the remoteS2700 can be different. If the lower thresholds at two ends are different, the larger one is used.

    ----End

    2.3.6 Checking the Configuration

    Procedurel Run the display trunkmembership eth-trunk trunk-id command to display the member

    interfaces of the Eth-Trunk.l Run the display eth-trunk trunk-id command to display the load balancing status of the

    Eth-Trunk.----End

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    22

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

    2.4.1 Establishing the Configuration Task

    Applicable EnvironmentTo increase the bandwidth and improve the connection reliability, you can configure a linkaggregation group on two directly connected Switches. The requirements are as follows:l The links between two devices can implement redundancy backup. When a fault occurs on

    some links, the backup links replace the faulty ones to keep data transmission uninterrupted.l The active links have the load balancing capability.

    Figure 2-3 Typical networking of link aggregation in static LACP mode

    SwitchB

    Eth-Trunk 1

    SwitchA

    Eth-Trunk 1Eth-Trunk

    Active linkStandby link

    Pre-configuration TasksBefore configuring an Eth-Trunk in static LACP mode, complete the following tasks:l Powering on the S2700l Creating the Eth-Trunk

    Data PreparationTo configure an Eth-Trunk in static LACP mode, you need the following data.

    No. Data1 Number of the Eth-Trunk2 Type and number of the member interface3 Maximum number of active interfaces

    2.4.2 Configuring the Eth-Trunk to Work in Static LACP Mode

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    23

  • ContextNOTE

    Check whether the Eth-Trunk contains member interfaces before you configure the operation mode of theEth-Trunk. If the Eth-Trunk contains member interfaces, the operation mode of the Eth-Trunk cannot bechanged. To delete member interfaces from the Eth-Trunk, run the undo eth-trunk trunk-id command inthe interface view or run the undo trunkport interface-type interface-number command in the Eth-Trunkview.

    Do as follows on the S2700 where you need to configure an Eth-Trunk of static LACP mode.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface eth-trunk trunk-id

    The Eth-Trunk view is displayed.Step 3 Run:

    bpdu enable

    The Eth-Trunk member interfaces are configured to send received BPDUs to the CPU.Step 4 Run:

    mode lacp-static

    The Eth-Trunk is configured to work in static LACP mode.By default, an Eth-Trunk works in manual load balancing mode.If the local device is configured with an Eth-Trunk of static LACP mode, you must configurethe Eth-Trunk of static LACP mode on the peer device.----End

    2.4.3 Adding Member Interfaces to an Eth-Trunk

    ContextDo as follows on the S2700 where you need to configure member interfaces of an Eth-Trunk.

    Procedurel Configuration in the Eth-Trunk interface view

    1. Run:system-view

    The system view is displayed.2. Run:

    interface eth-trunk trunk-id

    The Eth-Trunk interface view is displayed.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    24

  • 3. Run:trunkport interface-type { interface-number1 [ to interface-number2 ] } &

    Member interfaces are added to the Eth-Trunk.l Configuration in the member interface view

    1. Run:system-view

    The system view is displayed.2. Run:

    interface interface-type interface-number

    The interface view is displayed.3. Run:

    eth-trunk trunk-id

    The interface is added to the Eth-Trunk.When adding an interface to an Eth-Trunk, pay attention to the following points: An Eth-Trunk of the S2700EI contains a maximum of eight member interfaces. An Eth-Trunk of the S2700SI contains a maximum of four member interfaces. A member interface cannot be configured with any service or static MAC address. When adding an interface to an Eth-Trunk, ensure that the interface is a hybrid interface,

    which is the default interface type. An Eth-Trunk cannot be nested, that is, its member interfaces cannot be Eth-Trunk. An Ethernet interface can be added to only one Eth-Trunk interface. To add the Ethernet

    interface to another Eth-Trunk, delete the Ethernet interface from the current Eth-Trunkfirst. The member interfaces of an Eth-Trunk must be of the same type. For example, the FE

    interface and the GE interface cannot be added to the same Eth-Trunk. Ethernet interfaces on different LPUs can be added to the same Eth-Trunk. The peer interface directly connected to the Eth-Trunk on the local end must also be

    added to an Eth-Trunk; otherwise, the two ends cannot communicate. When the rates of member interfaces are different, the interfaces with a smaller rate may

    be congested, and packets may be lost. After an interface is added to an Eth-Trunk, MAC address learning is performed by the

    Eth-Trunk rather than the member interfaces.----End

    2.4.4 (Optional) Configuring the Load Balancing Mode

    ContextDo as follows on the S2700 where you need to configure the Eth-Trunk load balancing mode.

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

    Issue 01 (2011-07-15) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    25

  • ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface eth-trunk trunk-id

    The Eth-Trunk view is displayed.Step 3 Run:

    load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dst-mac }

    The load balancing mode is configured for the Eth-Trunk.The default load balancing mode is src-dst-mac.The S2700 supports the following load balancing modes:l dst-ip: load balancing based on the destination IP address. In this mode, the system obtains

    the specified three bits from each of the destination IP address and the TCP or UDP portnumber in outgoing packets to perform the Exclusive-OR calculation, and then selects theoutgoing interface from the Eth-Trunk table according to the calculation result.

    l dst-mac: load balancing based on the destination MAC address. In this mode, the systemobta