quidway s7700

Huawei quidway s7700, Quidway S9300 Configuration Manual - Ethernet

  • Hello! I am an AI chatbot trained to assist you with the Huawei quidway s7700 Configuration Manual - Ethernet. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
Quidway S7700 Smart Routing Switch
V100R006C00
Configuration Guide - Ethernet
Issue 01
Date 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 written
consent 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.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase 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 representations
of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Huawei Technologies Co., Ltd.
Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China
Website: http://www.huawei.com
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i
About This Document
Intended Audience
This document provides the basic concepts, configuration procedures, and configuration
examples in different application scenarios of the Ethernet feature supported by the S7700
device.
This document describes how to configure the Ethernet feature.
This document is intended for:
l Data configuration engineers
l Commissioning engineers
l Network monitoring engineers
l System maintenance engineers
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol
Description
DANGER
Indicates a hazard with a high level of risk, which if not
avoided, will result in death or serious injury.
WARNING
Indicates a hazard with a medium or low level of risk, which
if not avoided, could result in minor or moderate injury.
CAUTION
Indicates a potentially hazardous situation, which if not
avoided, could result in equipment damage, data loss,
performance degradation, or unexpected results.
TIP
Indicates a tip that may help you solve a problem or save
time.
NOTE
Provides additional information to emphasize or supplement
important points of the main text.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet About This Document
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
ii
Command Conventions
The 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 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 be
selected.
[ x | y | ... ]
*
Optional items are grouped in brackets and separated by vertical
bars. Several items or no item can be selected.
&<1-n> The parameter before the & sign can be repeated 1 to n times.
# A line starting with the # sign is comments.
Change History
Updates between document issues are cumulative. Therefore, the latest document issue contains
all updates made in previous issues.
Changes in Issue 01 (2011-07-15)
Initial commercial release.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet About This Document
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
iii
Contents
About This Document.....................................................................................................................ii
1 Ethernet Interface Configuration...............................................................................................1
1.1 Introduction to Ethernet Interfaces.....................................................................................................................2
1.2 Ethernet Interface Features Supported by the S7700.........................................................................................2
1.3 Configuring Basic Attributes of the Ethernet Interface......................................................................................3
1.3.1 Establishing the Configuration Task.........................................................................................................3
1.3.2 (Optional) Configuring a Description for an Interface..............................................................................3
1.3.3 (Optional) Configuring the Cable Type on an Interface............................................................................4
1.3.4 (Optional) Setting the Duplex Mode.........................................................................................................5
1.3.5 (Optional) Setting the Rate of an Interface................................................................................................5
1.3.6 (Optional) Enabling Auto-Negotiation......................................................................................................6
1.3.7 (Optional) Switching Between Optical and Electrical Interfaces..............................................................6
1.3.8 (Optional) Configuring an Interface to Work at Layer 2 or Layer 3.........................................................7
1.3.9 Checking the Configuration.......................................................................................................................7
1.4 Configuring Advanced Attributes of an Ethernet Interface................................................................................8
1.4.1 Establishing the Configuration Task.........................................................................................................8
1.4.2 (Optional) Configuring Loopback on the Ethernet Interface....................................................................9
1.4.3 (Optional) Setting the Minimum Interval for Re-enabling an Interface....................................................9
1.4.4 (Optional) Configuring the Interface Group..............................................................................................9
1.4.5 (Optional) Setting the Maximum Frame Length on the Ethernet Interface.............................................10
1.4.6 (Optional) Enabling Flow Control...........................................................................................................10
1.4.7 (Optional) Enabling Auto-Negotiation of Flow Control.........................................................................11
1.4.8 (Optional) Enabling Port Isolation..........................................................................................................11
1.4.9 (Optional) Performing a Cable Test on an Interface...............................................................................12
1.4.10 (Optional) Assigning an IP Address to an Ethernet Sub-interface........................................................13
1.4.11 Checking the Configuration...................................................................................................................13
1.5 Maintaining Ethernet Interfaces.......................................................................................................................14
1.5.1 Debugging Ethernet Interfaces................................................................................................................14
1.6 Configuration Examples...................................................................................................................................14
1.6.1 Example for Configuring Port Isolation..................................................................................................14
2 Link Aggregation Configuration..............................................................................................17
2.1 Introduction to Link Aggregation.....................................................................................................................18
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
iv
2.2 Link Aggregation Supported by the S7700......................................................................................................18
2.3 Configuring Link Aggregation in Manual Load Balancing Mode...................................................................19
2.3.1 Establishing the Configuration Task.......................................................................................................19
2.3.2 Configuring the Eth-Trunk to Work in Manual Load Balancing Mode..................................................20
2.3.3 Adding Member Interfaces to an Eth-Trunk...........................................................................................21
2.3.4 (Optional) Configuring the Load Balancing Mode.................................................................................22
2.3.5 (Optional) Limiting the Number of Active Interfaces.............................................................................23
2.3.6 (Optional) Configuring a Profile of Enhanced Eth-Trunks in Load Balancing Mode............................24
2.3.7 (Optional) Configuring the Load Balancing Mode for Unknown Unicast Traffic..................................25
2.3.8 Checking the Configuration.....................................................................................................................26
2.4 Configuring Link Aggregation in Static LACP Mode.....................................................................................26
2.4.1 Establishing the Configuration Task.......................................................................................................26
2.4.2 Configuring the Eth-Trunk to Work in Static LACP Mode....................................................................27
2.4.3 Adding Member Interfaces to an Eth-Trunk...........................................................................................27
2.4.4 (Optional) Configuring the Load Balancing Mode.................................................................................29
2.4.5 (Optional) Limiting the Number of Active Interfaces.............................................................................30
2.4.6 (Optional) Setting the LACP Priority of the System...............................................................................31
2.4.7 (Optional) Setting the LACP Priority of an Interface..............................................................................31
2.4.8 (Optional) Enabling LACP Preemption and Setting the Delay for LACP Preemption...........................32
2.4.9 (Optional) Setting the Timeout Interval for Receiving LACP Packets...................................................33
2.4.10 (Optional) Configuring a Profile of Enhanced Eth-Trunks in Load Balancing Mode..........................33
2.4.11 (Optional) Configuring the Load Balancing Mode for Unknown Unicast Traffic................................34
2.4.12 Checking the Configuration...................................................................................................................35
2.5 Configuring an Eth-Trunk Sub-interface..........................................................................................................35
2.5.1 Establishing the Configuration Task.......................................................................................................35
2.5.2 Creating an Eth-Trunk Sub-interface.......................................................................................................36
2.5.3 Setting the IP Address of an Eth-Trunk Sub-interface............................................................................36
2.5.4 Checking the Configuration.....................................................................................................................37
2.6 Configuring an E-Trunk...................................................................................................................................37
2.6.1 Establishing the Configuration Task.......................................................................................................37
2.6.2 Setting the LACP System ID and LACP Priority of an E-Trunk............................................................38
2.6.3 Creating an E-Trunk and Setting Its Priority...........................................................................................39
2.6.4 Configuring Local and Peer IP Addresses of an E-Trunk.......................................................................39
2.6.5 Binding an E-Trunk to a BFD Session....................................................................................................40
2.6.6 Adding an Eth-Trunk to an E-Trunk.......................................................................................................41
2.6.7 (Optional) Configuring the Working Mode of an Eth-Trunk in an E-Trunk..........................................41
2.6.8 (Optional) Setting the Password..............................................................................................................42
2.6.9 (Optional) Setting the Timeout of Hello Packets....................................................................................43
2.6.10 (Optional) Setting the Revertive Switching Delay................................................................................44
2.6.11 Checking the Configuration...................................................................................................................44
2.7 Maintaining Link Aggregation.........................................................................................................................45
2.7.1 Clearing Statistics of LACP Packets.......................................................................................................45
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
v
2.7.2 Debugging the Link Aggregation Group.................................................................................................45
2.7.3 Monitoring the Operation Status of the Link Aggregation Group..........................................................46
2.8 Configuration Examples...................................................................................................................................46
2.8.1 Example for Configuring Link Aggregation in Manual Load Balancing Mode.....................................46
2.8.2 Example for Configuring Link Aggregation in Static LACP Mode.......................................................49
2.8.3 Example for Connecting an E-Trunk to a VPLS Network......................................................................52
3 VLAN Configuration..................................................................................................................62
3.1 Introduction......................................................................................................................................................64
3.2 VLAN Features Supported by the S7700.........................................................................................................71
3.3 Dividing a LAN into VLANs...........................................................................................................................75
3.3.1 Establishing the Configuration Task.......................................................................................................75
3.3.2 Dividing a LAN into VLANs Based on Ports.........................................................................................78
3.3.3 Dividing a LAN into VLANs Based on MAC Addresses.......................................................................80
3.3.4 Dividing a LAN into VLANs Based on IP Subnets................................................................................81
3.3.5 Dividing a LAN into VLANs Based on Protocols..................................................................................83
3.3.6 Dividing a LAN into VLANs Based on Policies.....................................................................................85
3.3.7 Checking the Configuration.....................................................................................................................86
3.4 Creating a VLANIF Interface...........................................................................................................................87
3.4.1 Establishing the Configuration Task.......................................................................................................87
3.4.2 Creating a VLANIF Interface..................................................................................................................87
3.4.3 Assigning an IP Address to a VLANIF Interface....................................................................................88
3.4.4 (Optional) Setting a Delay After Which a VLANIF Interface Goes Down............................................88
3.4.5 (Optional) Setting the MTU of a VLANIF Interface...............................................................................89
3.4.6 Checking the Configuration.....................................................................................................................90
3.5 Configuring Inter-VLAN Communication.......................................................................................................90
3.5.1 Establishing the Configuration Task.......................................................................................................90
3.5.2 Configuring VLANIF Interfaces for Inter-VLAN Communication........................................................92
3.5.3 Configuring Sub-interface for Inter-VLAN Communication..................................................................93
3.5.4 Configuring VLAN Switch for Inter-VLAN Communication................................................................94
3.5.5 Checking the Configuration.....................................................................................................................95
3.6 Configuring VLAN Aggregation to Save IP Addresses...................................................................................96
3.6.1 Establishing the Configuration Task.......................................................................................................96
3.6.2 Creating a Sub-VLAN.............................................................................................................................97
3.6.3 Creating a Super-VLAN..........................................................................................................................98
3.6.4 Assigning an IP Address to the VLANIF Interface of a Super-VLAN...................................................99
3.6.5 (Optional) Enabling Proxy ARP on the VLANIF Interface of a Super-VLAN......................................99
3.6.6 Checking the Configuration...................................................................................................................100
3.7 Configuring a MUX VLAN to Separate Layer 2 Traffic...............................................................................100
3.7.1 Establishing the Configuration Task.....................................................................................................101
3.7.2 Configuring a Principal VLAN for a MUX VLAN..............................................................................102
3.7.3 Configuring a Group VLAN for a Subordinate VLAN.........................................................................103
3.7.4 Configuring a Separate VLAN for a Subordinate VLAN.....................................................................103
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
vi
3.7.5 Enabling the MUX VLAN Function on a Port......................................................................................104
3.7.6 Checking the Configuration...................................................................................................................105
3.8 Configuring a Voice VLAN to Transmit Voice Data.....................................................................................105
3.8.1 Establishing the Configuration Task.....................................................................................................105
3.8.2 Enabling the Voice VLAN Function.....................................................................................................107
3.8.3 Configuring an OUI for a Voice VLAN................................................................................................107
3.8.4 (Optional) Setting an Aging Timer for a Voice VLAN.........................................................................108
3.8.5 (Optional) Configuring an 802.1p Priority and a DSCP Value for the Voice VLAN...........................109
3.8.6 (Optional) Configuring the Mode in Which Ports Are Added to a Voice VLAN.................................109
3.8.7 (Optional) Configuring the Working Mode for a Voice VLAN............................................................111
3.8.8 (Optional) Configuring a Port to Communicate with a Voice Device of Another Vendor...................112
3.8.9 Checking the Configuration...................................................................................................................112
3.9 Configuring an mVLAN to Implement Integrated Management...................................................................113
3.9.1 Establishing the Configuration Task.....................................................................................................113
3.9.2 Configuring an mVLAN........................................................................................................................113
3.9.3 Configuring a VLANIF Interface for an mVLAN................................................................................114
3.9.4 Checking the Configuration...................................................................................................................115
3.10 Configuring VLAN Transparent Transport..................................................................................................115
3.10.1 Establishing the Configuration Task...................................................................................................115
3.10.2 Enabling VLAN Transparent Transport..............................................................................................116
3.10.3 Checking the Configuration.................................................................................................................117
3.11 Maintaining VLAN.......................................................................................................................................117
3.11.1 Clearing the Statistics of VLAN Packets............................................................................................117
3.12 Configuration Examples...............................................................................................................................118
3.12.1 Example for Configuring Interface-based VLANs..............................................................................118
3.12.2 Example for Configuring MAC Address-based VLAN Assignment..................................................120
3.12.3 Example for Configuring IP Subnet-based VLAN Assignment.........................................................122
3.12.4 Example for Configuring Protocol-based VLAN Assignment............................................................126
3.12.5 Example for Implementing Communication Between VLANs by Using VLANIF Interfaces...........129
3.12.6 Example for Configuring Communication Across a Layer 3 Network Through VLANIF Interfaces
........................................................................................................................................................................131
3.12.7 Example for Implementing Communication Between VLANs Through Sub-interfaces....................135
3.12.8 Example for Configuring Communication Across a Layer 3 Network Through the Sub-interface
........................................................................................................................................................................137
3.12.9 Example for Implementing Communication Between VLANs Through VLAN Switching..............140
3.12.10 Example for Configuring VLAN Aggregation..................................................................................142
3.12.11 Example for Configuring the MUX VLAN......................................................................................145
3.12.12 Example for Configuring a Voice VLAN in Auto Mode..................................................................147
3.12.13 Example for Configuring a Voice VLAN in Manual Mode..............................................................150
3.12.14 Example for Configuring VLAN Transparent Transmission............................................................153
4 VLAN Mapping Configuration..............................................................................................158
4.1 Introduction to VLAN Mapping.....................................................................................................................159
4.2 VLAN Mapping Features Supported by the S7700........................................................................................159
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
vii
4.3 Configuring VLAN Mapping of Single VLAN Tag......................................................................................159
4.3.1 Establishing the Configuration Task.....................................................................................................159
4.3.2 Replacing a Single Tag..........................................................................................................................160
4.3.3 Checking the Configuration...................................................................................................................161
4.4 Configuring VLAN Mapping of Double VLAN Tags...................................................................................161
4.4.1 Establishing the Configuration Task.....................................................................................................161
4.4.2 Replacing Double Tags.........................................................................................................................162
4.4.3 Replacing the Outer VLAN Tag............................................................................................................162
4.4.4 Checking the Configuration...................................................................................................................163
4.5 Configuring Flow-based VLAN Mapping.....................................................................................................163
4.5.1 Establishing the Configuration Task.....................................................................................................163
4.5.2 Replacing a Single Tag..........................................................................................................................164
4.5.3 Replacing Double Tags.........................................................................................................................166
4.5.4 Replacing the Outer VLAN Tag............................................................................................................169
4.5.5 Checking the Configuration...................................................................................................................171
4.6 Configuring VLAN Mapping Based On the VLAN Priority.........................................................................172
4.6.1 Establishing the Configuration Task.....................................................................................................172
4.6.2 Configuring VLAN Mapping Based on the VLAN Priority on the Incoming Interface.......................172
4.6.3 (Optional) Configuring VLAN Priority Mapping on the Outbound Interface......................................173
4.6.4 Checking the Configuration...................................................................................................................174
4.7 Configuration Examples.................................................................................................................................174
4.7.1 Example for Configuring Mapping of Single VLAN Tag....................................................................174
4.7.2 Example for Configuring N:1 VLAN Mapping....................................................................................178
4.7.3 Example for Configuring Mapping of Double VLAN Tags (2 to 2).....................................................180
4.7.4 Example for Configuring Flow-based VLAN Mapping........................................................................183
5 QinQ Configuration..................................................................................................................188
5.1 Concept of QinQ.............................................................................................................................................190
5.2 QinQ Features Supported by the S7700.........................................................................................................190
5.3 Configuring QinQ on an Interface..................................................................................................................190
5.3.1 Establishing the Configuration Task.....................................................................................................190
5.3.2 Setting the Link Type of an Interface....................................................................................................191
5.3.3 Specifying the Outer VLAN ID.............................................................................................................192
5.3.4 Checking the Configuration...................................................................................................................192
5.4 Configuring Selective QinQ...........................................................................................................................192
5.4.1 Establishing the Configuration Task.....................................................................................................192
5.4.2 Setting the Link Type of an Interface....................................................................................................193
5.4.3 Adding an Outer VLAN Tag.................................................................................................................193
5.4.4 Configuring Selective QinQ..................................................................................................................194
5.4.5 Checking the Configuration...................................................................................................................195
5.5 Configuring Flow-based Selective QinQ.......................................................................................................195
5.5.1 Establishing the Configuration Task.....................................................................................................195
5.5.2 Setting the Link Type of an Interface....................................................................................................195
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
viii
5.5.3 Setting the Packet Matching Rule.........................................................................................................196
5.5.4 Adding an Outer VLAN Tag.................................................................................................................196
5.5.5 Configuring a Traffic Policy..................................................................................................................197
5.5.6 Applying the Traffic Policy...................................................................................................................197
5.5.7 Checking the Configuration...................................................................................................................198
5.6 Configuring VLAN Stacking Based On the VLAN Priority..........................................................................198
5.6.1 Establishing the Configuration Task.....................................................................................................198
5.6.2 Configuring VLAN Stacking Based on the VLAN Priority on the Incoming Interface.......................199
5.6.3 (Optional) Configuring VLAN Priority Mapping on the Outbound Interface......................................199
5.6.4 Checking the Configuration...................................................................................................................200
5.7 Setting the Protocol Type in the Outer VLAN Tag........................................................................................200
5.7.1 Establishing the Configuration Task.....................................................................................................200
5.7.2 Configuring the Type of an Interface....................................................................................................201
5.7.3 Setting the Protocol Type in the Outer VLAN Tag...............................................................................201
5.7.4 Checking the Configuration...................................................................................................................202
5.8 Adding Double VLAN Tags to Untagged Packets.........................................................................................202
5.8.1 Establishing the Configuration Task.....................................................................................................202
5.8.2 Setting the Interface Type......................................................................................................................203
5.8.3 Adding an Interface to the Outer VLAN...............................................................................................203
5.8.4 Adding Double VLAN Tags to Untagged Packets................................................................................204
5.8.5 Checking the Configuration...................................................................................................................205
5.9 Connecting Sub-interfaces to a VLL Network...............................................................................................205
5.9.1 Establishing the Configuration Task.....................................................................................................205
5.9.2 Configuring a Dot1q Sub-interface.......................................................................................................206
5.9.3 Configuring a QinQ Sub-interface........................................................................................................206
5.9.4 Configuring VLAN Mapping of a Single Tag on a Sub-interface........................................................207
5.9.5 Configuring VLAN Mapping of Double Tags on a Sub-interface........................................................207
5.9.6 Configuring VLAN Stacking on a Sub-interface..................................................................................207
5.9.7 Creating a VLL Connection..................................................................................................................208
5.9.8 Checking the Configuration...................................................................................................................208
5.10 Connecting Sub-interfaces to a VPLS Network...........................................................................................208
5.10.1 Establishing the Configuration Task...................................................................................................209
5.10.2 Configuring a Dot1q Sub-interface.....................................................................................................209
5.10.3 Configuring a QinQ Sub-interface......................................................................................................210
5.10.4 Configuring VLAN Mapping of a Single Tag on a Sub-interface......................................................210
5.10.5 Configuring VLAN Mapping of Double Tags on a Sub-interface......................................................211
5.10.6 Configuring VLAN Stacking on a Sub-interface................................................................................211
5.10.7 Configuring VPLS...............................................................................................................................211
5.10.8 Checking the Configuration.................................................................................................................212
5.11 Configuring a Sub-interface to Access an L3VPN.......................................................................................212
5.11.1 Establishing the Configuration Task...................................................................................................212
5.11.2 Configuring a Dot1q Sub-interface.....................................................................................................213
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
ix
5.11.3 Configuring a QinQ Sub-interface......................................................................................................214
5.11.4 Configuring L3VPN............................................................................................................................215
5.11.5 Checking the Configuration.................................................................................................................215
5.12 Configuration Examples...............................................................................................................................215
5.12.1 Example for Configuring QinQ on Interfaces.....................................................................................215
5.12.2 Example for Configuring Selective QinQ...........................................................................................218
5.12.3 Example for Configuring Selective QinQ with VLAN Mapping........................................................221
5.12.4 Example for Configuring Selective QinQ with a Traffic Policy.........................................................224
5.12.5 Example for Configuring Flow-based Selective QinQ........................................................................227
5.12.6 Example for Configuring the Dot1q Sub-interfaces to Access VLL...................................................232
5.12.7 Example for Connecting QinQ Sub-interfaces to a VLL Network.....................................................238
5.12.8 Example for Connecting a Sub-interface Enabled with the Single-Tag VLAN Mapping to a VLL Network
........................................................................................................................................................................245
5.12.9 Example for Connecting a Sub-interface Enabled with Double-Tag VLAN Mapping to a VLL Network
........................................................................................................................................................................251
5.12.10 Example for Connecting a Sub-interface Enabled with VLAN Stacking to a VLL Network...........259
5.12.11 Example for Connecting Dot1q Sub-interfaces to a VPLS Network................................................266
5.12.12 Example for Connecting QinQ Sub-interfaces to a VPLS Network.................................................273
5.12.13 Example for Connecting a Sub-interface Enabled with Single-Tag VLAN Mapping to a VPLS Network
........................................................................................................................................................................280
5.12.14 Example for Connecting a Sub-interface Enabled with Double-Tag VLAN Mapping to a VPLS
Network..........................................................................................................................................................286
5.12.15 Example for Connecting a Sub-interface Enabled with VLAN Stacking to a VPLS Network.........294
5.12.16 Example for Configuring the Dot1q Sub-interface to Access an L3VPN.........................................301
5.12.17 Example for Configuring the QinQ Sub-interface to Access an L3VPN..........................................314
6 GVRP Configuration................................................................................................................329
6.1 GVRP Overview.............................................................................................................................................330
6.2 GVRP Features Supported by the S7700.......................................................................................................333
6.3 Configuring GVRP.........................................................................................................................................334
6.3.1 Establishing the Configuration Task.....................................................................................................334
6.3.2 Enabling GVRP.....................................................................................................................................334
6.3.3 (Optional) Setting the Registration Mode of a GVRP Interface............................................................335
6.3.4 (Optional) Setting the GARP Timers....................................................................................................336
6.3.5 Checking the Configuration...................................................................................................................337
6.4 Maintaining GVRP.........................................................................................................................................337
6.4.1 Clearing GARP Statistics......................................................................................................................337
6.5 Configuration Examples.................................................................................................................................338
6.5.1 Example for Configuring GVRP...........................................................................................................338
7 MAC Address Table Configuration.......................................................................................342
7.1 MAC Address Table Overview......................................................................................................................344
7.2 MAC Address Features Supported by the S7700...........................................................................................345
7.3 Configuring a Static MAC Address Entry......................................................................................................347
7.4 Configuring a Blackhole MAC Address Entry...............................................................................................348
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
x
7.5 Setting the Aging Time of Dynamic MAC Address Entries..........................................................................349
7.6 Disabling MAC Address Learning.................................................................................................................350
7.6.1 Establishing the Configuration Task.....................................................................................................350
7.6.2 Disabling MAC Address Learning on an Interface...............................................................................351
7.6.3 Disabling MAC Address Learning in a VLAN.....................................................................................352
7.6.4 Checking the Configuration...................................................................................................................352
7.7 Limiting the Number of Learned MAC Addresses........................................................................................352
7.7.1 Establishing the Configuration Task.....................................................................................................353
7.7.2 Limiting the Number of MAC Addresses Learned on an Interface......................................................354
7.7.3 Limiting the Number of MAC Addresses Learned in a VLAN............................................................355
7.7.4 Limiting the Number of MAC Addresses Learned in a VSI.................................................................356
7.7.5 Limiting the Number of MAC Addresses Learned in a Slot.................................................................357
7.7.6 Checking the Configuration...................................................................................................................357
7.8 Configuring Port Security...............................................................................................................................358
7.8.1 Establishing the Configuration Task.....................................................................................................358
7.8.2 Configuring the Secure Dynamic MAC Function on an Interface........................................................359
7.8.3 Configuring the Sticky MAC Function on an Interface........................................................................360
7.8.4 Checking the Configuration...................................................................................................................361
7.9 Configuring MAC Address Anti-Flapping.....................................................................................................361
7.9.1 Establishing the Configuration Task.....................................................................................................361
7.9.2 Setting the MAC Address Learning Priority of an Interface.................................................................362
7.9.3 Prohibiting MAC Address Flapping Between Interfaces with the Same Priority.................................363
7.9.4 Checking the Configuration...................................................................................................................363
7.10 Configuring MAC Address Flapping Detection...........................................................................................364
7.10.1 Establishing the Configuration Task...................................................................................................364
7.10.2 Configuring MAC Address Flapping Detection..................................................................................365
7.10.3 (Optional) Unblocking a Blocked Interface or MAC Address............................................................365
7.10.4 Checking the Configuration.................................................................................................................366
7.11 Configuring the S7700 to Discard Packets with an All-0 MAC Address....................................................366
7.12 Enabling MAC Address Triggered ARP Entry Update................................................................................367
7.13 Enabling Port Bridge....................................................................................................................................368
7.14 Configuration Examples...............................................................................................................................369
7.14.1 Example for Configuring the MAC Address Table.............................................................................369
7.14.2 Example for Configuring the Limitation on MAC Address Learning Based on VLANs...................372
7.14.3 Example for Configuring the Limitation on MAC Address Learning Based on VSIs........................374
7.14.4 Example for Configuring Interface Security.......................................................................................375
7.14.5 Example for Configuring MAC Address Anti-Flapping.....................................................................377
8 STP/RSTP Configuration.........................................................................................................380
8.1 STP/RSTP Overview......................................................................................................................................381
8.1.1 STP/RSTP Overview.............................................................................................................................381
8.1.2 STP/RSTP Features Supported by the S7700........................................................................................386
8.2 Configuring Basic STP/RSTP Functions.......................................................................................................388
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
xi
8.2.1 Establishing the Configuration Task.....................................................................................................388
8.2.2 Configuring the STP/RSTP Mode.........................................................................................................390
8.2.3 (Optional) Configuring Switching Device Priorities.............................................................................390
8.2.4 (Optional) Setting the Path Cost for a Port............................................................................................391
8.2.5 (Optional) Configuring Port Priorities...................................................................................................392
8.2.6 Enabling STP/RSTP..............................................................................................................................393
8.2.7 Checking the Configuration...................................................................................................................393
8.3 Configuring STP/RSTP Parameters on an Interface......................................................................................394
8.3.1 Establishing the Configuration Task.....................................................................................................396
8.3.2 Setting System Parameters....................................................................................................................397
8.3.3 Setting Port Parameters.........................................................................................................................398
8.3.4 Checking the Configuration...................................................................................................................400
8.4 Configuring RSTP Protection Functions........................................................................................................400
8.4.1 Establishing the Configuration Task.....................................................................................................400
8.4.2 Configuring BPDU Protection on a Switching Device.........................................................................402
8.4.3 Configuring TC Protection on a Switching Device...............................................................................403
8.4.4 Configuring Root Protection on a Port..................................................................................................403
8.4.5 Configuring Loop Protection on a Port.................................................................................................404
8.4.6 Checking the Configuration...................................................................................................................405
8.5 Configuring STP/RSTP Interoperability Between Huawei Devices and Non-Huawei Devices....................405
8.5.1 Establishing the Configuration Task.....................................................................................................405
8.5.2 Configuring the Proposal/Agreement Mechanism................................................................................406
8.5.3 Checking the Configuration...................................................................................................................407
8.6 Maintaining STP/RSTP..................................................................................................................................407
8.6.1 Clearing STP/RSTP Statistics...............................................................................................................408
8.7 Configuration Examples.................................................................................................................................408
8.7.1 Example for Configuring Basic STP Functions....................................................................................408
8.7.2 Example for Configuring Basic RSTP Functions..................................................................................412
9 MSTP Configuration.................................................................................................................417
9.1 MSTP Overview.............................................................................................................................................419
9.1.1 MSTP Introduction................................................................................................................................419
9.1.2 MSTP Features Supported by the S7700...............................................................................................427
9.2 Configuring Basic MSTP Functions...............................................................................................................431
9.2.1 Establishing the Configuration Task.....................................................................................................431
9.2.2 Configuring the MSTP Mode................................................................................................................433
9.2.3 Configuring and Activating an MST Region........................................................................................434
9.2.4 (Optional) Setting a Priority for a Switching Device in an MSTI.........................................................435
9.2.5 (Optional) Setting a Path Cost of a Port in an MSTI.............................................................................436
9.2.6 (Optional) Setting a Port Priority in an MSTI.......................................................................................437
9.2.7 Enabling MSTP.....................................................................................................................................438
9.2.8 Checking the Configuration...................................................................................................................438
9.3 Configuring MSTP Multi-process..................................................................................................................439
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
xii
9.3.1 Establishing the Configuration Task.....................................................................................................439
9.3.2 Creating an MSTP Process....................................................................................................................440
9.3.3 Adding an Interface to an MSTP Process - Access Links.....................................................................441
9.3.4 Adding an Interface to an MSTP Process - Share Link.........................................................................441
9.3.5 Configuring Priorities and Root Protection in MSTP Multi-process....................................................442
9.3.6 Configuring TC Notification in MSTP Multi-process..........................................................................442
9.3.7 Checking the Configuration...................................................................................................................443
9.4 Configuring MSTP Parameters on an Interface.............................................................................................443
9.4.1 Establishing the Configuration Task.....................................................................................................443
9.4.2 Configuring System Parameters............................................................................................................444
9.4.3 Configuring Port Parameters.................................................................................................................446
9.4.4 Checking the Configuration...................................................................................................................447
9.5 Configuring MSTP Protection Functions.......................................................................................................448
9.5.1 Establishing the Configuration Task.....................................................................................................448
9.5.2 Configuring BPDU Protection on a Switching Device.........................................................................450
9.5.3 Configuring TC Protection on a Switching Device...............................................................................450
9.5.4 Configuring Root Protection on an Interface........................................................................................451
9.5.5 Configuring Loop Protection on an Interface........................................................................................452
9.5.6 Configuring Share-Link Protection on a Switching Device..................................................................453
9.5.7 Checking the Configuration...................................................................................................................454
9.6 Configuring MSTP Interoperability Between Huawei Devices and Non-Huawei Devices...........................454
9.6.1 Establishing the Configuration Task.....................................................................................................454
9.6.2 Configuring a Proposal/Agreement Mechanism...................................................................................455
9.6.3 Configuring the MSTP Protocol Packet Format on an Interface...........................................................456
9.6.4 Enabling the Digest Snooping Function................................................................................................457
9.6.5 Checking the Configuration...................................................................................................................458
9.7 Maintaining MSTP.........................................................................................................................................458
9.7.1 Clearing MSTP Statistics.......................................................................................................................458
9.8 Configuration Examples.................................................................................................................................458
9.8.1 Example for Configuring Basic MSTP Functions.................................................................................458
9.8.2 Example for Connecting CEs to the VPLS in Dual-Homing Mode Through MSTP............................465
9.8.3 Example for Configuring MSTP Multi-Process for Layer 2 Single-Access Rings and Layer 2 Multi-Access
Rings...............................................................................................................................................................477
10 SEP Configuration...................................................................................................................485
10.1 SEP Overview...............................................................................................................................................487
10.1.1 SEP Overview......................................................................................................................................487
10.1.2 SEP Features Supported by the S7700................................................................................................500
10.2 Configuring Basic SEP Functions................................................................................................................506
10.2.1 Establishing the Configuration Task...................................................................................................506
10.2.2 Configuring an SEP Segment..............................................................................................................507
10.2.3 Configuring a Control VLAN..............................................................................................................507
10.2.4 Creating a Protected Instance..............................................................................................................508
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
xiii
10.2.5 Adding a Layer 2 Interface to a SEP Segment and Configuring a Role for the Interface...................509
10.2.6 Checking the Configuration.................................................................................................................511
10.3 Specifying an Interface to Block..................................................................................................................511
10.3.1 Establishing the Configuration Task...................................................................................................512
10.3.2 Setting an Interface Blocking Mode....................................................................................................512
10.3.3 Configuring the Preemption Mode......................................................................................................514
10.3.4 Checking the Configuration.................................................................................................................516
10.4 Configuring SEP Multi-Instance..................................................................................................................516
10.4.1 Establishing the Configuration Task...................................................................................................516
10.4.2 Configuring and Activating Mappings Between Protected Instances and VLANs.............................518
10.4.3 Checking the Configuration.................................................................................................................518
10.5 Configuring the Topology Change Notification Function...........................................................................519
10.5.1 Establishing the Configuration Task...................................................................................................519
10.5.2 Reporting Topology Changes of a Lower-Layer Network - SEP Topology Change Notification
........................................................................................................................................................................521
10.5.3 Reporting Topology Changes of a Lower-Layer Network - Enabling the Edge Devices in a SEP Segment
to Process SmartLink Flush Packets...............................................................................................................522
10.5.4 Reporting Topology Changes of an Upper-Layer Network - Configuring Association Between SEP and
CFM................................................................................................................................................................523
10.5.5 Checking the Configuration.................................................................................................................524
10.6 Maintaining SEP...........................................................................................................................................524
10.6.1 Clearing SEP Statistics........................................................................................................................524
10.6.2 Debugging SEP....................................................................................................................................524
10.7 Configuration Examples...............................................................................................................................525
10.7.1 Example for Configuring SEP on a Closed Ring Network.................................................................525
10.7.2 Example for Configuring SEP on a Multi-ring Network....................................................................531
10.7.3 Example for Configuring a Hybrid SEP+MSTP Ring Network.........................................................542
10.7.4 Example for Configuring a Hybrid SEP+RRPP Ring Network..........................................................549
10.7.5 Example for Configuring SEP Multi-Instance....................................................................................561
11 Layer 2 Protocol Transparent Transmission Configuration............................................569
11.1 Overview of Layer 2 Protocol Transparent Transmission............................................................................571
11.2 Layer 2 Protocol Transparent Transmission Features Supported by the S7700...........................................572
11.3 Configuring Interface-based Layer 2 Protocol Transparent Transmission...................................................578
11.3.1 Establishing the Configuration Task...................................................................................................578
11.3.2 (Optional) Defining Characteristic Information About a Layer 2 Protocol........................................578
11.3.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................579
11.3.4 Enabling Layer 2 Protocol Transparent Transmission on an Interface...............................................580
11.3.5 Checking Configuration......................................................................................................................581
11.4 Configuring VLAN-based Layer 2 Protocol Transparent Transmission......................................................581
11.4.1 Establishing the Configuration Task...................................................................................................582
11.4.2 (Optional) Defining Characteristic Information About a Layer 2 Protocol........................................582
11.4.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................583
11.4.4 Enabling VLAN-based Layer 2 Protocol Transparent Transmission on an Interface.........................584
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
xiv
11.4.5 Checking the Configuration.................................................................................................................585
11.5 Configuring QinQ-based Layer 2 Protocol Transparent Transmission........................................................585
11.5.1 Establishing the Configuration Task...................................................................................................585
11.5.2 (Optional) Defining Characteristic Information About a Layer 2 Protocol........................................586
11.5.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets.................................587
11.5.4 Enabling QinQ-based Layer 2 Transparent Transmission on an Interface..........................................588
11.5.5 Checking the Configuration.................................................................................................................588
11.6 Maintaining Layer 2 Protocol Transparent Transmission............................................................................589
11.6.1 Debugging Layer 2 Protocol Transparent Transmission.....................................................................589
11.7 Configuration Examples...............................................................................................................................589
11.7.1 Example for Configuring Interface-based Layer 2 Protocol Transparent Transmission.....................589
11.7.2 Example for Configuring VLAN-based Layer 2 Protocol Transparent Transmission........................596
11.7.3 Example for Configuring QinQ-based Layer 2 Protocol Transparent Transmission..........................602
12 HVRP Configuration..............................................................................................................610
12.1 HVRP Overview...........................................................................................................................................611
12.2 HVRP Features Supported by the S7700.....................................................................................................612
12.3 Enabling HVRP............................................................................................................................................615
12.3.1 Establishing the Configuration Task...................................................................................................615
12.3.2 Enabling HVRP Globally....................................................................................................................617
12.3.3 Enabling HVRP on an Interface..........................................................................................................617
12.3.4 (Optional) Setting the VLAN Registration Timer...............................................................................618
12.3.5 (Optional) Setting the Aging Time of Registered VLANs..................................................................618
12.3.6 (Optional) Configuring Permanent VLANs........................................................................................619
12.3.7 (Optional) Configuring the S7700 to Age All the VLANs.................................................................619
12.3.8 Checking the Configuration.................................................................................................................620
12.4 Maintaining HVRP.......................................................................................................................................620
12.4.1 Debugging HVRP................................................................................................................................620
12.5 Configuration Examples...............................................................................................................................621
12.5.1 Example for Configuring HVRP.........................................................................................................621
13 Loop Detection Configuration..............................................................................................624
13.1 Introduction to Loop Detection....................................................................................................................625
13.2 Configuring Loop Detection.........................................................................................................................625
13.2.1 Establishing the Configuration Task...................................................................................................625
13.2.2 Enabling Loop Detection Globally......................................................................................................626
13.2.3 Enabling Loop Detection in a VLAN..................................................................................................626
13.2.4 Enabling Loop Detection Control on an Interface...............................................................................627
13.2.5 (Optional) Disabling Loop Detection on an Interface.........................................................................628
13.2.6 (Optional) Setting the Loop Detection Interval on an Interface..........................................................628
13.2.7 (Optional) Setting the Recovery Time of a Blocked Interface............................................................628
13.2.8 Checking the Configuration.................................................................................................................629
13.3 Configuration Examples...............................................................................................................................630
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
xv
13.3.1 Example for Configuring Loop Detection...........................................................................................630
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet Contents
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
xvi
1 Ethernet Interface Configuration
About This Chapter
This chapter describes the basic knowledge, methods, and examples for configuring the Ethernet
interface.
1.1 Introduction to Ethernet Interfaces
This section describes the Ethernet interfaces.
1.2 Ethernet Interface Features Supported by the S7700
This section describes the Ethernet interface features supported by the S7700.
1.3 Configuring Basic Attributes of the Ethernet Interface
This 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 and
between Layer 2 and Layer 3 interfaces.
1.4 Configuring Advanced Attributes of an Ethernet Interface
This section describes how to configure the loopback on the Ethernet Interface, minimum
interval for re-enabling an interface, port group, maximum frame size, flow control, flow control
auto-negotiation, cable test, sub-interface IP address, and port isolation.
1.5 Maintaining Ethernet Interfaces
This section describes how to maintain Ethernet interfaces.
1.6 Configuration Examples
This section provides several configuration examples of Ethernet interfaces.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 1 Ethernet Interface Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1
1.1 Introduction to Ethernet Interfaces
This section describes the Ethernet interfaces.
The Ethernet is flexible, simple, and easy to implement; therefore, it becomes an important local
area network (LAN) networking technology.
Table 1-1 shows the attributes of Ethernet electrical interfaces and Ethernet optical interfaces.
Table 1-1 Attributes of Ethernet interfaces
Interface
Type
Rate (Mbit/
s)
Auto-negotiation Non-negotiation
Full
Duplex
Half
Duplex
Full
Duplex
Half
Duplex
Ethernet
electrical
interface
10 Yes Yes Yes Yes
100 Yes Yes Yes Yes
1000 Yes No Yes No
Ethernet
optical
interface
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 may occur.
1.2 Ethernet Interface Features Supported by the S7700
This section describes the Ethernet interface features supported by the S7700.
Port Group
The port group function enables you to configure multiple interfaces at the same time. You can
run commands in the port group view to configure all the interfaces in the group.
Auto-Negotiation
The auto-negotiation function allows interfaces on both ends of a link to select the same operating
parameters by exchanging capability information. Each interface sends its capability information
to the remote end and checks capabilities of the remote end. After both interfaces receive the
capability information from each other, they adopt the highest capability they support to
communicate with each other.
The interfaces negotiate the duplex mode, speed, and flow control parameters. After a successful
negotiation, the interfaces use the same duplex mode, speed, and flow control parameters.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 1 Ethernet Interface Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
2
Port Isolation
The port isolation function isolates Layer 2 and Layer 3 communication between ports in the
same VLAN. This function restricts packet transmission between ports flexibly, providing a
secure and flexible network solution.
1.3 Configuring Basic Attributes of the Ethernet Interface
This 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 and
between Layer 2 and Layer 3 interfaces.
1.3.1 Establishing the Configuration Task
Applicable Environment
The 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 interface
manually.
l By default, an FE electrical interface negotiates the duplex mode and rate with the
equipment that is directly connected to the interface. If the connected equipment does not
have the auto-negotiation capability, set the duplex mode and rate for the FE interface
manually so that the interface can work with the connected equipment.
Pre-configuration Tasks
None
Data Preparation
To configure the basic functions of Ethernet interfaces, you need the following data.
No.
Data
1 Number of an Ethernet interface
2 (Optional) Description of an interface
3 (Optional) Cable type of an ethernet electrical interface
4 (Optional) Duplex mode of an ethernet electrical interface
5 (Optional) Rate of an ethernet interface
1.3.2 (Optional) Configuring a Description for an Interface
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 1 Ethernet Interface Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3
/