Huawei Quidway S7700 Configuration Manual - Ethernet

Huawei Quidway S7700 Configuration Manual - Ethernet

Smart routing switch
Hide thumbs Also See for Quidway S7700:
Table of Contents

Advertisement

Quidway S7700 Smart Routing Switch
V100R006C00
Configuration Guide - Ethernet
Issue
01
Date
2011-07-15
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei Quidway S7700

  • Page 1 Quidway S7700 Smart Routing Switch V100R006C00 Configuration Guide - Ethernet Issue Date 2011-07-15 HUAWEI TECHNOLOGIES CO., LTD.
  • Page 2 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.
  • Page 3: About This Document

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet About This Document 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.
  • Page 4: Command Conventions

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet About This Document 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.
  • Page 5: Table Of Contents

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 6 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 7 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 8 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 9 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 10 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 11 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 12 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 13 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...
  • Page 14 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...
  • Page 15 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 16 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 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...
  • Page 17 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet Contents 13.3.1 Example for Configuring Loop Detection...................630 Issue 01 (2011-07-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 18: Ethernet Interface Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 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.
  • Page 19: Introduction To Ethernet Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 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.
  • Page 20: Configuring Basic Attributes Of The Ethernet Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 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.
  • Page 21: Optional) Configuring The Cable Type On An Interface

    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". X specifies the interface type and number. ----End 1.3.3 (Optional) Configuring the Cable Type on an Interface Context Perform the following steps on the S7700.
  • Page 22: Optional) Setting The Duplex Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 1.3.4 (Optional) Setting the Duplex Mode Context Do as follows on the S7700 where you need to set the duplex mode of interfaces. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 23: Optional) Enabling Auto-Negotiation

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 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 disabled on the interface.
  • Page 24: Optional) Configuring An Interface To Work At Layer 2 Or Layer 3

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration system-view The system view is displayed. Step 2 Run: interface gigabitethernet interface-number The GigabitEthernet interface view is displayed. Step 3 Run: combo-port { auto | copper | fiber } The interface is changed to an optical interface or an electrical interface.
  • Page 25: Configuring Advanced Attributes Of An Ethernet Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Procedure Step 1 Run the display interface [ interface-type [ interface-number [.subnumber ] ] ] command to display the description, duplex mode, and rate of an Ethernet interface.
  • Page 26: Optional) Configuring Loopback On The Ethernet Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 1.4.2 (Optional) Configuring Loopback on the Ethernet Interface Context Do as follows on the S7700 where you need to configure the loopback. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 27: Optional) Setting The Maximum Frame Length On The Ethernet Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Context Do as follows on the S7700 where you need to configure interface groups. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: port-group port-group-name The interface group view is displayed.
  • Page 28: Optional) Enabling Auto-Negotiation Of Flow Control

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: flow-control Flow control is enabled on the Ethernet interface.
  • Page 29: Optional) Performing A Cable Test On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Context Do as follows on the S7700 where you need to enable port isolation. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: port-isolate mode { l2 | all } The port isolation mode is set.
  • Page 30: Optional) Assigning An Ip Address To An Ethernet Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 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.
  • Page 31: Maintaining Ethernet Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 1.5 Maintaining Ethernet Interfaces This section describes how to maintain Ethernet interfaces. 1.5.1 Debugging Ethernet Interfaces Context CAUTION Debugging affects the performance of the system. So, after debugging, run the undo debugging all command to disable it immediately.
  • Page 32 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Figure 1-1 Networking diagram for configuring port isolation Switch GE1/0/1 GE1/0/3 10.10.10.1/24 10.10.10.2/24 10.10.10.3/24 Configuration Roadmap The configuration roadmap is as follows: Enable port isolation on the ports connected to PC1 and PC2 respectively to prevent PC1 and PC2 from communicating with each other.
  • Page 33 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration [Quidway-GigabitEthernet1/0/2] port-isolate enable [Quidway-GigabitEthernet1/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.
  • Page 34: Link Aggregation Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Link Aggregation Configuration About This Chapter This chapter describes the concepts, configuration procedures, and configuration examples of link aggregation. 2.1 Introduction to Link Aggregation This section describes the concept of link aggregation.
  • Page 35: Introduction To Link Aggregation

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 2.1 Introduction to Link Aggregation This section describes the concept of link aggregation. Link aggregation refers to a method of bundling a group of physical interfaces into a logical interface to increase bandwidth.
  • Page 36: Configuring Link Aggregation In Manual Load Balancing Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Active Interface and Inactive Interface Active interfaces refer to the interfaces that are in active state and are responsible for forwarding data. The interfaces that do not forward data and are in inactive state are called inactive interfaces.
  • Page 37: Configuring The Eth-Trunk To Work In Manual Load Balancing Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Applicable Environment When the bandwidth or the reliability of two devices should be increased and either of the two devices does not support LACP, you should create an Eth-Trunk in manual load balancing mode on Switches and add member interfaces to the Eth-Trunk to increase the bandwidth and improve reliability of devices.
  • Page 38: Adding Member Interfaces To An Eth-Trunk

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Step 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.
  • Page 39: Optional) Configuring The Load Balancing Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 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 contains a maximum of eight member interfaces.
  • Page 40: Optional) Limiting The Number Of Active Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 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 port number in outgoing packets to perform the Exclusive-OR calculation, and then selects the outgoing interface from the Eth-Trunk table according to the calculation result.
  • Page 41: Optional) Configuring A Profile Of Enhanced Eth-Trunks In Load Balancing Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration The Eth-Trunk view is displayed. 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.
  • Page 42: Optional) Configuring The Load Balancing Mode For Unknown Unicast Traffic

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Step 2 Run: load-balance-profile profile-name A profile of enhanced Eth-Trunks in load balancing mode is created and the profile view is displayed. Step 3 Run: l2 field [ dmac | l2-protocol | smac | sport | vlan ] The load balancing mode of Layer 2 packets is specified in the profile.
  • Page 43: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration The load balancing mode for unknown unicast traffic is configured. ----End 2.3.8 Checking the Configuration Procedure Run the display trunkmembership eth-trunk trunk-id command to display the member interfaces of the Eth-Trunk.
  • Page 44: Configuring The Eth-Trunk To Work In Static Lacp Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Data Number of the Eth-Trunk Type and number of the member interface Maximum number of active interfaces 2.4.2 Configuring the Eth-Trunk to Work in Static LACP Mode...
  • Page 45 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Configuration in the Eth-Trunk interface view Run: system-view The system view is displayed. Run: interface eth-trunk trunk-id The Eth-Trunk interface view is displayed. Run: trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-8>...
  • Page 46: Optional) Configuring The Load Balancing Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 2.4.4 (Optional) Configuring the Load Balancing Mode Context Do as follows on the S7700 where you need to configure the Eth-Trunk load balancing mode. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 47: Optional) Limiting The Number Of Active Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration interface information to perform the Exclusive-OR calculation, and then selects the outgoing interface from the Eth-Trunk table according to the calculation result. l Enhanced load balancing: The S7700 selects interfaces to forward packets according to the load balancing mode defined for different packets by the enhanced load balancing profile.
  • Page 48: Optional) Setting The Lacp Priority Of The System

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration The Eth-Trunk view is displayed. 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.
  • Page 49: Optional) Enabling Lacp Preemption And Setting The Delay For Lacp Preemption

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: lacp priority priority The LACP priority of the interface is set.
  • Page 50: Optional) Setting The Timeout Interval For Receiving Lacp Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration By default, the delay for LACP preemption is 30 seconds. Enabling the LACP preemption function ensures that the interface with the highest LACP priority can be an active interface. For example, when an interface with the highest priority becomes inactive due to a failure, and then recovers, the interface can become an active interface if the LACP preemption function is enabled;...
  • Page 51: Optional) Configuring The Load Balancing Mode For Unknown Unicast Traffic

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Context Do as follows on the S7700s involved in the enhanced Eth-trunk in load balancing mode. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run:...
  • Page 52: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: unknown-unicast load-balance { dmac | smac | smacxordmac | enhanced } The load balancing mode for unknown unicast traffic is configured.
  • Page 53: Creating An Eth-Trunk Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Data Number of the main interface Number of the sub-interface ID of the VLAN that the sub-interface belongs to Rate of sending gratuitous ARP packets 2.5.2 Creating an Eth-Trunk Sub-interface...
  • Page 54: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration When more than one IP address is set for an Eth-Trunk interface, the keyword sub can be used to indicate the IP addresses other than the first IP address.
  • Page 55: Setting The Lacp System Id And Lacp Priority Of An E-Trunk

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Connecting physical links between devices correctly Configuring static LACP Eth-Trunk interfaces Data Preparation To configure an E-Trunk, you need the following data. Data LACP system ID and priority...
  • Page 56: Creating An E-Trunk And Setting Its Priority

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration The master and backup devices in an E-Trunk must use the same LACP priority. ----End 2.6.3 Creating an E-Trunk and Setting Its Priority The E-Trunk priority determines whether a device in the E-Trunk is the master device or the standby device.
  • Page 57: Binding An E-Trunk To A Bfd Session

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: e-trunk e-trunk-id The E-Trunk view is displayed. Step 3 Run: peer-address peer-ip-address source-address source-ip-address The local and peer IP addresses of the E-Trunk are configured.
  • Page 58: Adding An Eth-Trunk To An E-Trunk

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 2.6.6 Adding an Eth-Trunk to an E-Trunk After configuring an E-Trunk, you must add Eth-Trunks to the E-Trunk to implement link aggregation between the two devices. In this manner, backup of aggregation groups is implemented between devices and the network reliability is enhanced.
  • Page 59: Optional) Setting The Password

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration The Eth-Trunk interface view is displayed. Only static LACP Eth-Trunks can be added to an E-Trunk. Step 3 Run: e-trunk mode { auto | force-master | force-backup } The working mode of the Eth-Trunk in the E-Trunk is configured.
  • Page 60: Optional) Setting The Timeout Of Hello Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration The password for encrypting packets is configured. CAUTION If simple is selected, the password is saved in the configuration file in plain text. In this case, users at a lower level can easily obtain the password by viewing the configuration file. This brings security risks.
  • Page 61: Optional) Setting The Revertive Switching Delay

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration By default, the time multiplier for detecting hello packets is 20. ----End 2.6.10 (Optional) Setting the Revertive Switching Delay After the revertive switching delay is set, the local Eth-Trunk must wait until the delay timer times out to become the master again after it recovers from a fault.
  • Page 62: Maintaining Link Aggregation

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 2.7 Maintaining Link Aggregation This section describes how to clear the statistics of received and sent LACP packets, debug the link aggregation group, and monitor the running status of the link aggregation group.
  • Page 63: Monitoring The Operation Status Of The Link Aggregation Group

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Run the debugging trunk state-machine command to enable the debugging of Eth-Trunk status machine. Run the debugging trunk updown command to enable the debugging of Eth-Trunk Up and Down messages.
  • Page 64 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Figure 2-5 Networking diagram for configuring link aggregation in manual load balancing mode SwitchA Eth-Trunk 60 Eth-Trunk 120 GE3/0/0 GE2/0/0 Switch GE1/0/5 GE1/0/0 VLAN 151-200 VLAN 100-150...
  • Page 65 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration # Add GE 2/0/0 to Eth-Trunk 120. [Switch] interface gigabitethernet 2/0/0 [Switch-GigabitEthernet2/0/0] eth-trunk 120 [Switch-GigabitEthernet2/0/0] quit # Add GE 3/0/0 to Eth-Trunk 120. [Switch] interface gigabitethernet 3/0/0...
  • Page 66: Example For Configuring Link Aggregation In Static Lacp Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration interface GigabitEthernet3/0/0 eth-trunk 120 return 2.8.2 Example for Configuring Link Aggregation in Static LACP Mode Networking Requirements To improve the bandwidth and the connection reliability, configure the link aggregation group...
  • Page 67 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Step 1 Create Eth-Trunk 1 and set the load balancing mode of the Eth-Trunk to static LACP mode. # Configure SwitchA. <Quidway> system-view [Quidway] sysname SwitchA...
  • Page 68 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration [SwitchA] display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 100 System ID: 00e0-fca8-0417...
  • Page 69: Example For Connecting An E-Trunk To A Vpls Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration lacp priority 100 interface Eth-Trunk1 mode lacp-static max active-linknumber 2 interface GigabitEthernet1/0/1 eth-trunk 1 lacp priority interface GigabitEthernet1/0/2 eth-trunk 1 lacp priority interface GigabitEthernet1/0/3 eth-trunk 1 return...
  • Page 70 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Figure 2-7 Networking diagram of the E-Trunk Loopback1 Eth-Trunk10 GE1/0/0 Eth-Trunk20 VLAN10 Loopback1 E-Trunk1 GE1/0/1 GE1/0/2 GE1/0/0 VLAN10 GE1/0/0 Eth-Trunk10 Loopback1 Switch Interface VLANIF interface IP address...
  • Page 71 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3 GigabitEthernet1/0/4 GigabitEthernet1/0/0 Configuration Roadmap The configuration roadmap is as follows: Configure the E-Trunk as follows: l Create an Eth-Trunk in static LACP mode between CE1 and PE1 and between CE1 and PE2.
  • Page 72 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration MPLS LSR IDs of PEs VSI name on PEs Interfaces to which the VSI is bound Procedure Step 1 Configure VLANs and IP addresses on the PW-side interfaces according to Figure 2-7.
  • Page 73 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration [PE1-e-trunk-1] peer-address 2.2.2.9 source-address 1.1.1.9 [PE1-e-trunk-1] quit # Configure PE2. [PE2] e-trunk 1 [PE2-e-trunk-1] quit [PE2] lacp e-trunk priority 1 [PE2] lacp e-trunk system-id 00E0-FC00-0000 [PE2] e-trunk 1...
  • Page 74 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration [PE2-e-trunk-1] quit Step 6 Configure PEs so that CE1 can access the VPLS network. Configure basic MPLS functions and LDP on PE1, PE2, and PE3. Configuration details are not mentioned here.
  • Page 75 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Type LocalPhyState Work-Mode State Causation Eth-Trunk auto Master PEER_MEMBER_DOWN # Check information about E-Trunk1 on PE2. <PE2> display e-trunk 1 The E-Trunk information E-TRUNK-ID Revert-Delay-Time (s) : 120...
  • Page 76 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration timer hello 9 e-trunk track bfd-session 1 mpls lsr-id 1.1.1.9 mpls mpls l2vpn vsi ldp1 static pwsignal ldp vsi-id 2 peer 3.3.3.9 mpls ldp mpls ldp remote-peer 3.3.3.9 remote-ip 3.3.3.9...
  • Page 77 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration e-trunk 1 priority 20 peer-address 1.1.1.9 source-address 2.2.2.9 timer hello 9 e-trunk track bfd-session 2 mpls lsr-id 2.2.2.9 mpls mpls l2vpn vsi ldp1 static pwsignal ldp vsi-id 2 peer 3.3.3.9...
  • Page 78 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration mpls l2vpn vsi ldp1 static pwsignal ldp vsi-id 2 peer 1.1.1.9 peer 2.2.2.9 mpls ldp mpls ldp remote-peer 1.1.1.9 remote-ip 1.1.1.9 mpls ldp remote-peer 2.2.2.9 remote-ip 2.2.2.9 interface Vlanif 100 ip address 10.1.1.2 255.255.255.0...
  • Page 79: Vlan Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Configuration About This Chapter Virtual Local Area Networks (VLANs) have advantages of broadcast domain isolation, security enhancement, flexible networking, and good extensibility. 3.1 Introduction The VLAN technology is important for forwarding on Layer 2 networks. This section describes the background, functions, and advantages of the VLAN technology.
  • Page 80 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Configuring an mVLAN allows users to use the IP address of the VLANIF interface corresponding to the mVLAN to log in to a management switch to manage devices attached to the switch.
  • Page 81: Introduction

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.1 Introduction The VLAN technology is important for forwarding on Layer 2 networks. This section describes the background, functions, and advantages of the VLAN technology. Overview of VLAN The Ethernet technology is for sharing communication mediums and data based on the Carrier Sense Multiple Access/Collision Detect (CSMA/CD).
  • Page 82 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-1 Schematic diagram for a typical VLAN application Router Switch1 Switch2 Switch3 VLAN-A VLAN-B VLAN-C This application shows the following VLAN advantages: Broadcast domains are confined. A broadcast domain is confined to a VLAN. This saves bandwidth and improves network processing capabilities.
  • Page 83 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-3 802.1Q frame format 4bytes 6bytes 6bytes 2bytes 42-1500bytes 4bytes Destination Source 802.1Q Length/ Data Type address address TPID CFI VID 2bytes 3bits 1bit 12bits – Tag Protocol Identifier (TPID): a 16-bit field set to a value of 0x8100 in order to identify the frame as an IEEE 802.1Q-tagged frame.
  • Page 84 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Definition Division Method MAC address- PCs are added to VLANs based on their MAC addresses. based VLAN A switch maintains a VLAN mapping table that records mappings division between MAC addresses and VLANs.
  • Page 85: Port Type

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration – Access link: connects a PC to a switch. Generally, a PC does not know which VLAN it belongs to, and PC hardware cannot distinguish frames with VLAN tags. Therefore, PCs send and receive only untagged frames.
  • Page 86 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Port Method of Method of Method of Application Type Processing Processing Sending Received Received Frames Untagged Frames Tagged Frames Trunk l Adds a tag with l Accepts a...
  • Page 87 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Port Method of Method of Method of Application Type Processing Processing Sending Received Received Frames Untagged Frames Tagged Frames QinQ QinQ ports are enabled with the IEEE 802.1QinQ protocol. A QinQ port adds...
  • Page 88: Vlan Features Supported By The S7700

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration To allow that new data flows are correctly forwarded based on the routing table, be sure that the routing table's routing entries are correct. Therefore, VLANIF interfaces and routing protocols must be configured on Layer 3 switches for reachable Layer 3 routes.
  • Page 89 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Table 3-3 VLAN assignment in different usage scenarios VLAN Advantage Disadvantage Usage Scenario Assignment Method Port-based The configuration is The configuration is Port-based VLAN VLAN simple. It is the most not flexible.
  • Page 90 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Advantage Disadvantage Usage Scenario Assignment Method Policies-based MAC and IP Each policy needs to Policies-based VLAN VLAN addresses-based or be manually assignment is applicable assignment MAC addresses, IP configured.
  • Page 91 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Table 3-4 Schemes for inter-VLAN communication Inter-VLAN Advantage Disadvantage Usage Scenario Communica tion Scheme l Both Layer 2 and Sub-interface After sub-interfaces are This scheme is configured, users in...
  • Page 92: Dividing A Lan Into Vlans

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Aggregation To implement inter-VLAN communication on switches, configure IP addresses for the VLANIF interfaces. When many VLANs are deployed, a great number of IP addresses are occupied.
  • Page 93 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Applicable Environment Currently, the S7700 supports the following VLAN division modes. You can choose one of them as required. Table 3-5 lists VLAN division modes. Table 3-5 VLAN assignment in different usage scenarios...
  • Page 94 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Advantage Disadvantage Usage Scenario Assignment Method join a VLAN, move Protocol- Switches need to Currently, VLANs can from one VLAN to based VLAN analyze protocol be configured based on...
  • Page 95: Dividing A Lan Into Vlans Based On Ports

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data Preparation To dividing a LAN into VLANs, you need the following data. Data VLAN ID, number of each Ethernet port to be added to the VLAN, and (optional)
  • Page 96 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration The system view is displayed. Step 2 Run: vlan vlan-id A VLAN is created, and the VLAN view is displayed. If the specified VLAN has been created, the VLAN view is directly displayed.
  • Page 97: Dividing A Lan Into Vlans Based On Mac Addresses

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration In tagged mode, a port forwards frames without removing their tags. This is applicable to scenarios in which Layer 2 Ethernet ports are connected to switches. – (Optional) Run the port hybrid pvid vlan vlan-id command to specify the default VLAN of a hybrid interface.
  • Page 98: Dividing A Lan Into Vlans Based On Ip Subnets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration The VLAN ID ranges from 1 to 4094. If VLANs need to be created in batches, run the vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10> command to create VLANs in batches, and then run the vlan vlan-id command to enter the view of a specified VLAN.
  • Page 99 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Context VLANs configured based on IP subnets process only untagged frames. and treat tagged frames in the same manner as VLANs configured based on ports. After receiving untagged frames, a device determines the VLANs to which the frames belong based on their source IP addresses before sending them to corresponding VLANs.
  • Page 100: Dividing A Lan Into Vlans Based On Protocols

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration quit The system view is displayed. Step 5 Configure the port type and features. Run the interface interface-type interface-number command to enter the view of the port to be configured to allow frames with the specified VLAN ID to pass through.
  • Page 101 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration (2) Configure a port to allow frames with the specified VLAN ID to pass through. (3) Associate ports with VLANs. After receiving a frame associated with a specified protocol, the system automatically assigns the VLAN ID associated with the protocol to the frame.
  • Page 102: Dividing A Lan Into Vlans Based On Policies

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration l The optional parameter priority specifies the 802.1p priority value related to the protocol. The value ranges from 0 to 7. The greater the value, the higher the priority.
  • Page 103: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration policy-vlan mac-address mac-address ip ip-address [ interface interface-type interface-number ] [ priority priority ] Policy VLAN is configured. If interface interface-type interface-number is not specified, the MAC and IP address policy will be applied to all ports in the VLAN.
  • Page 104: Creating A Vlanif Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.4 Creating a VLANIF Interface VLANIF interfaces are Layer 3 logical interfaces. After creating VLANIF interfaces on Layer 2 devices, you can configure Layer 3 features on these interfaces.
  • Page 105: Assigning An Ip Address To A Vlanif Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface vlanif vlan-id A VLANIF interface is created and the VLAIF interface view is displayed.
  • Page 106: Optional) Setting The Mtu Of A Vlanif Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration To prevent network flapping caused by changes of VLANIF interface status, enable VLAN damping on the VLANIF interface. After the last Up port in a VLAN goes Down, the system starts a delay timer and informs the corresponding VLANIF interface of the VLAN Down event after the timer expires.
  • Page 107: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration mtu mtu The MTU of the VLANIF interface is set. The MTU of a VLANIF interface ranges from 128 to 9216, in bytes. The default value is 1500.
  • Page 108 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Table 3-6 Schemes for inter-VLAN communication Inter-VLAN Advantage Disadvantage Usage Scenario Communica tion Scheme l Both Layer 2 and Sub-interface After sub-interfaces are This scheme is configured, users in...
  • Page 109: Configuring Vlanif Interfaces For Inter-Vlan Communication

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Pre-configuration Tasks Before configuring inter-VLAN communication, complete the following task: Creating VLANs Data Preparation To configure inter-VLAN communication, you need the following data. Data Number of each Ethernet sub-interface, IP address and mask of the sub-interface,...
  • Page 110: Configuring Sub-Interface For Inter-Vlan Communication

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-5 Networking diagram for configuring VLANIF interfaces for inter-VLAN communication Switch VLANIF2 VLANIF3 VLAN2 VLAN3 NOTE The default gateway address of each PC in a VLAN must be the IP address of the corresponding VLANIF interface.
  • Page 111: Configuring Vlan Switch For Inter-Vlan Communication

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Context Do as follows on the S7700 where hosts of different VLANs need to communicate. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface { ethernet | gigabitethernet | eth-trunk } interface-number.subinterface-...
  • Page 112: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration based on the VLAN switching table without searching the MAC address table. This improves forwarding efficiency and network security, and prevents broadcast storms and attacks by using MAC address.
  • Page 113: Configuring Vlan Aggregation To Save Ip Addresses

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Run the ping [ ip ] [ -a source-ip-address | -c count | -d | -f | -h ttl-value | -i interface- type interface-number | -m time | -n | -p pattern | -q | -r | -s packetsize | -system-time | -t...
  • Page 114: Creating A Sub-Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-6 Typical networking diagram for VLAN aggregation Super VLAN4 Sub-VLAN 2 Sub-VLAN 3 Pre-configuration Tasks Before configuring VLAN aggregation, complete the following task: Connecting ports and configuring physical parameters of the ports, ensuring that the ports...
  • Page 115: Creating A Super-Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: port link-type access The link type of the interface is set to access.
  • Page 116: Assigning An Ip Address To The Vlanif Interface Of A Super-Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN 1 cannot be configured as a super-VLAN. Step 4 Run: access-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> A sub-VLAN is added to a super-VLAN. Before adding sub-VLANs to a super-VLAN in batches, ensure that these sub-VLANs are not configured with VLANIF interfaces.
  • Page 117: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration with each other only at Layer 2, not Layer 3. These PCs are isolated from each other at Layer 2. Consequently, PCs in different sub-VLANs cannot communicate with each other.
  • Page 118: Establishing The Configuration Task

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.7.1 Establishing the Configuration Task Before configuring a MUX VLAN, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the data required for the configuration. This will help you complete the configuration task quickly and accurately.
  • Page 119: Configuring A Principal Vlan For A Mux Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Port Type Communication Rights VLAN Type Subordinate Separate Separate port A separate port can only communicate with VLAN VLAN principal ports. Each separate VLAN must be associated with a principal VLAN.
  • Page 120: Configuring A Group Vlan For A Subordinate Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration The VLAN ID ranges from 1 to 4094. If VLANs need to be created in batches, run the vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10> command to create VLANs in batches, and then run the vlan vlan-id command to enter the view of a specified VLAN.
  • Page 121: Enabling The Mux Vlan Function On A Port

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Do as follows on a switching device that requires a separate VLAN: Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: vlan vlan-id The view of a created principal VLAN is displayed.
  • Page 122: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration After being enabled with the MUX VLAN function, the port can no longer be configured with VLAN mapping or VLAN stacking. NOTE l Disabling MAC address learning or limiting the number of learned MAC addresses on an interface affects the MUX VLAN function on the interface.
  • Page 123 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration and automatically applies priority rules to ensure high priorities and good qualities of voice data. This simplifies user configuration and facilitates management on voice data. On the network shown in...
  • Page 124: Enabling The Voice Vlan Function

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data Type and number of the port enabled with the voice VLAN function Mode in which the port is added to the voice VLAN (Optional) Security mode of the voice VLAN 3.8.2 Enabling the Voice VLAN Function...
  • Page 125: Optional) Setting An Aging Timer For A Voice Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Context An OUI is a globally-unique identifier assigned by the Institute of Electrical and Electronics Engineers (IEEE) to a specific equipment vendor. An OUI represents the first 24 bits of a binary MAC address.
  • Page 126: Optional) Configuring An 802.1P Priority And A Dscp Value For The Voice Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: voice-vlan aging-time minutes The aging timer is set for a voice VLAN. The aging timer value ranges from 5 to 43200, in minutes. The default value is 1440 minutes.
  • Page 127 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Context Ports can be added to a voice VLAN in either of the following modes: Automatic mode A voice VLAN-enabled port learns source MAC addresses of frames from voice devices, adds ports connecting the device to voice devices to a voice VLAN, and uses the voice VLAN aging timer to control the number of ports in the voice VLAN.
  • Page 128: Optional) Configuring The Working Mode For A Voice Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.8.7 (Optional) Configuring the Working Mode for a Voice VLAN A voice VLAN works in either security or ordinary mode to transmit merely voice data or both voice and non-voice data.
  • Page 129: Optional) Configuring A Port To Communicate With A Voice Device Of Another Vendor

    ----End 3.8.8 (Optional) Configuring a Port to Communicate with a Voice Device of Another Vendor The voice VLAN legacy function can be configured to allow Huawei datacom devices to identify packets of proprietary protocols of other vendors. Context After VoIP devices of some vendors are powered on, proprietary protocol packets but not DHCP packets are sent to apply for IP addresses.
  • Page 130: Configuring An Mvlan To Implement Integrated Management

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Run the display voice-vlan [ vlan-id ] status command to check information about the voice VLAN, including the working mode, security mode, aging timer value and the 802.1p priority and DSCP value as well as the configuration of the port enabled with the voice VLAN function.
  • Page 131: Configuring A Vlanif Interface For An Mvlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Do as follows on the device that requires an mVLAN: Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: vlan vlan-id The VLAN view is displayed.
  • Page 132: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.9.4 Checking the Configuration After an mVLAN is configured, you can check information about the mVLAN. Prerequisite The configurations of an mVLAN are complete. Procedure Run the display vlan command to check information about the mVLAN. The command output shows information about the mVLAN in the line started with an asterisk sign (*).
  • Page 133: Enabling Vlan Transparent Transport

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-9 Networking diagram for configuring VLAN transparent transport Marketing Department VLAN10 Finance Technology Department Department Parent VLAN50 VLAN20 Company SwitchA Finance SwitchB Department VLAN50 Finance Department VLAN50...
  • Page 134: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: vlan vlan-id The VLAN view is displayed. Step 3 Run: protocol-transparent VLAN transparent transport is enabled.
  • Page 135: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration To clear the Statistics of VLAN Packets, run the following reset command in the user view: Procedure Run the reset vlan vlan-id statistics [ slot slot-id ] command to clear packets of a specified VLAN statistics.
  • Page 136 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Configuration Roadmap The configuration roadmap is as follows: Create VLANs and determine mappings between employees and VLANs. Configure port types to determine the device connected to each port.
  • Page 137: Example For Configuring Mac Address-Based Vlan Assignment

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Step 2 Verify the configuration. Ping any host in VLAN 3 from a host in VLAN 2. The ping operation fails. This indicates that Department 1 and Department 2 are isolated from Department 3 and Department 4.
  • Page 138 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-11 Network diagram of MAC address-based VLAN assignment Enterprise network GE1/0/2 Switch GE1/0/1 GE1/0/1 SwitchA MAC:22-22-22 MAC:33-33-33 MAC:44-44-44 VLAN 10 Configuration Roadmap The configuration roadmap is as follows: Create VLANs and determine the VLAN that PCs of employees belong to.
  • Page 139: Example For Configuring Ip Subnet-Based Vlan Assignment

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration <Quidway> system-view [Quidway] vlan batch 10 100 # Set the PVID of interfaces and add interfaces to the VLANs. [Quidway] interface gigabitethernet 1/0/1 [Quidway-GigabitEthernet1/0/1] port hybrid pvid vlan 100...
  • Page 140 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Networking Requirements A company has multiple services including the IPTV, VoIP, and Internet access services. Each service uses a unique IP address. Packets of the same service must be transmitted in the same VLAN and packets of different services must be transmitted in different VLANs.
  • Page 141 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data Preparation To complete the configuration, you need the following data: VLANs to which GE1/0/1 needs to be added in untagged mode: VLAN 100, VLAN 200, and VLAN 300...
  • Page 142 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration [Quidway] interface gigabitethernet 1/0/1 [Quidway-GigabitEthernet1/0/1] ip-subnet-vlan enable [Quidway-GigabitEthernet1/0/1] quit Step 3 Configure IP subnet-based VLAN assignment. # Associate 192.168.1.2 to VLAN 100 and set the 802.1p priority of VLAN 100 to 2.
  • Page 143: Example For Configuring Protocol-Based Vlan Assignment

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration port trunk allow-pass vlan 200 interface GigabitEthernet1/0/4 port link-type trunk port trunk allow-pass vlan 300 return 3.12.4 Example for Configuring Protocol-based VLAN Assignment Protocol-based VLAN assignment reduces manual configuration workload and allows users to easily join a VLAN, transfer from one VLAN to another, and exit from a VLAN.
  • Page 144 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Create VLANs and determine mappings between services and VLANs. Associate protocols with VLANs. The Switch assigns a VLAN ID to a frame based on the protocol or protocol suite to which the frame belongs.
  • Page 145 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration # Add GE1/0/1 to VLAN 10 and VLAN 20 so that GE1/0/1 allows packets of VLAN 10 and VLAN 20 to pass through. [Switch] interface gigabitethernet 1/0/1 [Switch-GigabitEthernet1/0/1] port link-type hybrid...
  • Page 146: Example For Implementing Communication Between Vlans By Using Vlanif Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.12.5 Example for Implementing Communication Between VLANs by Using VLANIF Interfaces A Layer 3 switch can replace a router to implement communications between VLANs by using VLANIF interfaces.
  • Page 147 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data Preparation To complete the configuration, you need the following data: GE1/0/1 of the Switch needs to be added to VLAN 10 and VLAN 20. The IP address of VLANIF10 on the Switch is 10.10.10.1/24.
  • Page 148: Example For Configuring Communication Across A Layer 3 Network Through Vlanif Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration On PC2 in VLAN 20, set the default gateway address to 20.20.20.1/24, which is the IP address of VLANIF20. After the preceding configurations are complete, PC1 in VLAN 10 and PC2 in VLAN 20 can communicate.
  • Page 149 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-15 Networking diagram for configuring communication across a Layer 3 network through the VLANIF interface SwitchA SwitchB GE1/0/2 GE1/0/1 OSPF VLAN 10 VLAN 10 Configuration Roadmap The configuration roadmap is as follows: Add interfaces to VLANs.
  • Page 150 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration [SwitchA] interface gigabitethernet 1/0/1 [SwitchA-GigabitEthernet1/0/1] port link-type trunk [SwitchA-GigabitEthernet1/0/1] port trunk allow-pass vlan 10 [SwitchA-GigabitEthernet1/0/1] quit [SwitchA] interface gigabitethernet 1/0/2 [SwitchA-GigabitEthernet1/0/2] port link-type trunk [SwitchA-GigabitEthernet1/0/2] port trunk allow-pass vlan 30 [SwitchA-GigabitEthernet1/0/2] quit # Assign IP addresses to VLANIF interfaces.
  • Page 151 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration On the computer on the Layer 2 network connected to Switch B, set the default gateway address to the IP address of VLANIF 10, that is, 20.20.20.1/24. After the configurations are complete, computers of the two Layer 2 networks are isolated at Layer 2 and interwork at Layer 3.
  • Page 152: Example For Implementing Communication Between Vlans Through Sub-Interfaces

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration return 3.12.7 Example for Implementing Communication Between VLANs Through Sub-interfaces Configuring sub-interfaces enables users in different VLANs and network segments to communicate with each other. Networking Requirements Departments of an enterprise are located on different network segments and use same services such as Internet access and VoIP.
  • Page 153 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLANs that GE 1/0/1.1 and GE 1/0/2.1 belong to: VLAN 10 and VLAN 20 IP addresses of GE 1/0/1.1 and GE 1/0/2.1: 10.10.10.1 and 20.20.20.1 VLAN that the uplink of Switch A belongs to: VLAN 10 (tagged mode)
  • Page 154: Example For Configuring Communication Across A Layer 3 Network Through The Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration ip address 20.20.20.1 255.255.255.0 arp broadcast enable return 3.12.8 Example for Configuring Communication Across a Layer 3 Network Through the Sub-interface Networking Requirements As shown in Figure 3-17, Switch A and Switch B are connected to Layer 2 networks that VLAN 10 belongs to.
  • Page 155 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data Preparation To complete the configuration, you need the following data: VLAN 10 allowed by GE 1/0/1.1 of Switch A and IP address being 10.10.10.1/24 VLAN 10 allowed by GE 1/0/2.1 of Switch B and IP address being 20.20.20.1/24 VLAN 30 allowed by GE 1/0/2 of Switch A and IP address of VLANIF 30 being 30.30.30.1/24...
  • Page 156 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration [SwitchB] interface gigabitethernet 1/0/1 [SwitchB-GigabitEthernet1/0/1] port link-type trunk [SwitchB-GigabitEthernet1/0/1] port trunk allow-pass vlan 30 [SwitchB-GigabitEthernet1/0/1] quit # Assign an IP address to the VLANIF interface. [SwitchB] interface vlanif 30 [SwitchB-Vlanif30] ip address 30.30.30.2 24...
  • Page 157: Example For Implementing Communication Between Vlans Through Vlan Switching

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration area 0.0.0.0 network 10.10.10.0 0.0.0.255 network 30.30.30.0 0.0.0.255 return Configuration file of Switch B sysname SwitchB router id 2.2.2.2 vlan batch 30 interface Vlanif30 ip address 30.30.30.2 255.255.255.0...
  • Page 158 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-18 Networking diagram for implementing communication between VLANs through VLAN switching Switch GE1/0/1 GE1/0/2 VLAN 10 VLAN 20 SwitchA SwitchB Configuration Roadmap The configuration roadmap is as follows: Add the uplink and downlink interfaces of Switch A and Switch B to VLANs.
  • Page 159: Example For Configuring Vlan Aggregation

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Configuration Files Configuration file of the Switch sysname Quidway vlan-switch name1 interface GigabitEthernet1/0/1 vlan 10 interface GigabitEthernet1/0/2 switch-vlan 20 return 3.12.10 Example for Configuring VLAN Aggregation This part describes how to configure communication between VLANs with less IP addresses.
  • Page 160 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Configure the IP address for the super-VLAN. Configure proxy ARP for the super-VLAN. Data Preparation To complete the configuration, you need the following data: GE 1/0/0 and GE 2/0/0 belong to VLAN 2.
  • Page 161 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration [Quidway-vlan3] port gigabitethernet 3/0/0 4/0/0 [Quidway-vlan3] quit Step 4 Configure VLAN 4. # Configure the super-VLAN. [Quidway] vlan 4 [Quidway-vlan4] aggregate-vlan [Quidway-vlan4] access-vlan 2 to 3 # Configure the VLANIF interface.
  • Page 162: Example For Configuring The Mux Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration port link-type access port default vlan 3 return 3.12.11 Example for Configuring the MUX VLAN MUX VLAN isolates Layer 2 traffic of different interfaces in a VLAN. It allows some employee users of an enterprise to communicate with each other and isolates some employee users from each other.
  • Page 163 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Configure the separate VLAN. Add interfaces to the VLAN and enable the MUX VLAN function. Data Preparation To complete the configuration, you need the following data: GE 1/0/1 belongs to VLAN 2.
  • Page 164: Example For Configuring A Voice Vlan In Auto Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Host B and Host C cannot ping Host D or host E. Host D and Host E cannot ping Host B or Host ----End Configuration Files Configuration file of the Switch...
  • Page 165 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration a common VLAN without changing the priority of the flow. GigabitEthernet1/0/1 needs to be automatically added to or deleted from the voice VLAN. Figure 3-21 Networking diagram of a voice VLAN in auto mode...
  • Page 166 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Step 1 Create VLANs and configure the interface on the Switch. # Create VLAN 2 and VLAN 6. <Quidway> system-view [Quidway] vlan batch 2 6 # Configure the link type and default VLAN of the interface.
  • Page 167: Example For Configuring A Voice Vlan In Manual Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration ----------------------------------------------------------- GigabitEthernet1/0/1 Auto Security Disable ----End Configuration Files Configuration file of the Switch sysname Quidway vlan batch 2 6 voice-vlan aging-time 100 voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000 interface GigabitEthernet1/0/1...
  • Page 168 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-22 Networking diagram of a voice VLAN in manual mode DHCP Server Internet Switch GE1/0/1 LAN Switch VoIP IPTV Configuration Roadmap The configuration roadmap is as follows: Create VLANs.
  • Page 169 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration <Quidway> system-view [Quidway] vlan batch 2 6 # Configure the link type and default VLAN of the interface. [Quidway] interface gigabitethernet 1/0/1 [Quidway-GigabitEthernet1/0/1] port hybrid pvid vlan 6...
  • Page 170: Example For Configuring Vlan Transparent Transmission

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration sysname Quidway vlan batch 2 6 voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000 interface GigabitEthernet1/0/1 port hybrid pvid vlan 6 port hybrid tagged vlan 2 port hybrid untagged vlan 6...
  • Page 171 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-23 Networking diagram of VLAN transparent transmission Parent Company GE1/0/2 Switch GE1/0/1 GE1/0/3 VLAN 10 VLAN 20 GE0/0/1 GE0/0/1 SwitchB SwitchA Eth0/0/1 Eth0/0/2 Eth0/0/1 Eth0/0/2 Sub Company 1...
  • Page 172 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Step 1 Configure the Switch. # Create VLANs. <Quidway> system-view [Quidway] vlan batch 10 20 # Enable VLAN transparent transmission. [Quidway] vlan 20 [Quidway-vlan20] protocol-transparent # Add interfaces to the VLANs.
  • Page 173 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Step 4 Verify the configuration. After the configuration, run the display this command in the view of VLAN 20, and you can check whether VLAN transparent transmission is enabled.
  • Page 174 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration interface Ethernet0/0/2 port hybrid pvid vlan 20 port hybrid untagged vlan 20 interface GigabitEthernet0/0/1 port hybrid tagged vlan 20 return Issue 01 (2011-07-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 175: Vlan Mapping Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration VLAN Mapping Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring VLAN mapping. 4.1 Introduction to VLAN Mapping This section describes the concept of VLAN mapping.
  • Page 176: Introduction To Vlan Mapping

    Single-tag and double-tag VLAN mapping based on the traffic policy For the commands related to VLAN mapping of single tag based on the traffic policy, see the Quidway S7700 Smart Routing Switch Command Reference - QoS. 4.3 Configuring VLAN Mapping of Single VLAN Tag This section describes how to configure VLAN mapping of single VLAN tag.
  • Page 177: Replacing A Single Tag

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Data Preparation To configure VLAN mapping, you need the following data. Data VLAN ID before VLAN mapping VLAN ID after VLAN mapping 4.3.2 Replacing a Single Tag Context Do as follows on the S7700 where you need to configure single-tag VLAN mapping.
  • Page 178: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration 4.3.3 Checking the Configuration Procedure Run the display vlan vlan-id command to check whether the interface is added to the translated local VLAN. Run the display current-configuration command to display information about the VLAN mapping of single VLAN tag on the interface.
  • Page 179: Replacing Double Tags

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration 4.4.2 Replacing Double Tags Context Do as follows on the S7700 where you need to replace the double VLAN tags. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 180: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration The interface view is displayed. Step 3 Run: port link-type trunk The link type of the interface is set to trunk. Step 4 Run: port trunk allow-pass vlan vlan-id The interface is added to the VLAN whose ID will replace the outer VLAN tag of frames.
  • Page 181: Replacing A Single Tag

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration device of the public network so that the VLANs of private networks and public network can be separated. This saves VLAN resources of the public network. Pre-configuration Tasks Before configuring VLAN mapping, configure the VLANs.
  • Page 182 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Run: remark vlan-id vlan-id2 The S7700 is configured to replace the original VLAN ID of the packets matching the traffic classifier with the specified VLAN ID. Run: quit Return to the system view.
  • Page 183: Replacing Double Tags

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Return to the system view. Run: traffic behavior behavior-name2 A traffic behavior is created and the traffic behavior view is displayed. Run: remark vlan-id vlan-id1 The S7700 is configured to replace the original VLAN ID of the packets matching the traffic classifier with the specified VLAN ID.
  • Page 184 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration A traffic classifier is created and the traffic classifier view is displayed. Run: if-match vlan-id vlan-id1 The packet matching rule, that is, the outer VLAN ID of packets matching the classifier, is set.
  • Page 185 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration 15. Run: port trunk allow-pass vlan vlan-id3 The interface is added to the VLANs specified by the translated VLAN IDs. 16. Run: traffic-policy policy-name1 inbound The traffic policy is applied in the inbound direction of the interface.
  • Page 186: Replacing The Outer Vlan Tag

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration 11. Run: classifier classifier-name2 behavior behavior-name2 The traffic classifier is bound to the traffic behavior in the traffic policy. 12. Run: quit Return to the system view.
  • Page 187 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration A traffic behavior is created and the traffic behavior view is displayed. Run: remark vlan-id vlan-id3 The S7700 is configured to replace the outer VLAN ID of the packets matching the traffic classifier with the specified VLAN ID.
  • Page 188: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration if-match cvlan-id vlan-id2 The packet matching rule, that is, the inner VLAN IDs of packets matching the classifier, is set. Run: quit Return to the system view.
  • Page 189: Configuring Vlan Mapping Based On The Vlan Priority

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration 4.6 Configuring VLAN Mapping Based On the VLAN Priority This section describes how to configure VLAN mapping based on the VLAN priority. 4.6.1 Establishing the Configuration Task...
  • Page 190: Optional) Configuring Vlan Priority Mapping On The Outbound Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration The interface view is displayed. Step 3 Run: port hybrid tagged vlan vlan-id The interface is added to the VLAN specified by vlan-id. Step 4 Run the following commands as required.
  • Page 191: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Step 6 Run: port hybrid tagged vlan vlan-id The interface is added to the VLAN specified by vlan-id. Step 7 Run: trust upstream ds-domain-name The interface is bound to the DiffServ domain and the mapping in the DiffServ domain is applied to the interface.
  • Page 192 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Figure 4-1 Networking diagram for configuring VLAN mapping of single VLAN tag Network VLAN10 SwitchC SwitchD GE1/0/1 GE1/0/1 SwitchA SwitchB GE1/0/1 GE2/0/2 VLAN6 VLAN5 GE3/0/1 GE3/0/2 GE3/0/1 GE3/0/2 172.16.0.1/16 172.16.0.2/16 172.16.0.3/16...
  • Page 193 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration <Quidway> system-view [Quidway] sysname SwitchB [SwitchB] vlan 5 # Create VLAN 10 on SwitchC. <Quidway> system-view [Quidway] sysname SwitchC [SwitchC] vlan 10 # Create VLAN 10 on SwitchD.
  • Page 194 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration # Configure VLAN mapping of single tag on GE 1/0/1 of SwitchA. [SwitchA-GigabitEthernet1/0/1] port vlan-mapping vlan 10 map-vlan 6 # Configure VLAN mapping of single tag on GE 2/0/2 of SwitchB.
  • Page 195: Example For Configuring N:1 Vlan Mapping

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration interface GigabitEthernet3/0/1 port link-type trunk port trunk allow-pass vlan 5 interface GigabitEthernet3/0/2 port link-type trunk port trunk allow-pass vlan 5 return Configuration file of SwitchC sysname SwitchC...
  • Page 196 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Figure 4-2 Networking diagram for configuring N:1 VLAN mapping Internet Switch GE1/0/0 VLAN100~200 SwitchA …… …… …… SwitchB SwitchC SwitchD SwitchE Configuration Roadmap The configuration roadmap is as follows: Configure the VLANs before and after mapping.
  • Page 197: Example For Configuring Mapping Of Double Vlan Tags (2 To 2)

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration # Add related GE 1/0/0 to the VLANs. [Quidway] interface gigabitethernet 1/0/0 [Quidway-GigabitEthernet1/0/0] port hybrid tagged vlan 10 100 to 200 # Configure VLAN mapping on GE 1/0/0.
  • Page 198 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Configuration Roadmap The configuration roadmap is as follows: Create outer VLANs on SwitchA, SwitchB, SwitchC, and SwitchD. Add interfaces of SwitchA, SwitchB, SwitchC, and SwitchD to the corresponding VLANs.
  • Page 199 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration [SwitchC] interface gigabitethernet 1/0/1 [SwitchC-GigabitEthernet1/0/1] port link-type trunk [SwitchC-GigabitEthernet1/0/1] port trunk allow-pass vlan 300 # Add GE 1/0/2 on SwitchD to VLAN 300. [SwitchD] interface gigabitethernet 1/0/2...
  • Page 200: Example For Configuring Flow-Based Vlan Mapping

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration port trunk allow-pass vlan 300 return Configuration file of SwitchD sysname SwitchD vlan batch 300 interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 300 return 4.7.4 Example for Configuring Flow-based VLAN Mapping...
  • Page 201 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Configure flow-based VLAN mapping of double tags on GE 1/0/1 of SwitchA. Configure flow-based VLAN mapping of double tags on GE 1/0/2 of SwitchB. Data Preparation To complete the configuration, you need the following data:...
  • Page 202 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Step 3 Configure traffic classifiers, traffic behaviors, and traffic policies. # On SwitchA, configure the traffic classifier, traffic behavior, and traffic policy applied in the inbound direction.
  • Page 203 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration <SwitchB> system-view [SwitchB] interface GigabitEthernet 1/0/2 [SwitchB-GigabitEthernet1/0/2] traffic-policy name1 inbound [SwitchB-GigabitEthernet1/0/2] traffic-policy name2 outbound Step 5 Verify the configuration. The hosts in Enterprise A and the hosts in Enterprise B can communicate with each other.
  • Page 204 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration traffic policy name2 classifier name2 behavior name2 interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 200 traffic-policy name1 inbound traffic-policy name2 outbound return Configuration file of SwitchC...
  • Page 205: Qinq Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration QinQ Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring QinQ. 5.1 Concept of QinQ This section describes the concept of QinQ.
  • Page 206 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration This section describes how to connect sub-interfaces of a PE to a VPLS network so that CEs can communicate with each other. 5.11 Configuring a Sub-interface to Access an L3VPN This section describes how to configure a sub-interface to access an L3VPN on the PE so that user networks between the CEs can communicate with each other.
  • Page 207: Concept Of Qinq

    The S7700 not only supports selective QinQ based on the interface and VLAN, but also supports flow-based selective QinQ, 802.1p-based selective QinQ, and selective QinQ for untagged packets. For the commands related to flow-based selective QinQ, see the Quidway S7700 Smart Routing Switch Command Reference - QoS. Protocols Used by Outer VLAN Tags The protocols applied to outer VLAN tags vary according to the vendors.
  • Page 208: Setting The Link Type Of An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Applicable Environment To separate the private network from the public network and save VLAN resources, you can configure double 802.1q tags on a QinQ interface provided by the S7700. The inner VLAN tag of the private network is distributed for the internal network such as the intranet;...
  • Page 209: Specifying The Outer Vlan Id

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.3.3 Specifying the Outer VLAN ID Context Do as follows on the S7700 to be configured with interface QinQ. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 210: Setting The Link Type Of An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Applicable Environment To enable users to communicate through the ISP network, user packets are added an outer VLAN tag. Pre-configuration Tasks None Data Preparation To configure selective QinQ, you need the following data.
  • Page 211: Configuring Selective Qinq

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: port hybrid untagged vlan vlan-id The interface is added to the stacked VLAN in untagged mode.
  • Page 212: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.4.5 Checking the Configuration Procedure Run the display current-configuration interface interface-type interface-number command to display the selective QinQ configuration on the interface. ----End 5.5 Configuring Flow-based Selective QinQ...
  • Page 213: Setting The Packet Matching Rule

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: port link-type hybrid The type of the interface is set to hybrid.
  • Page 214: Configuring A Traffic Policy

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: traffic behavior behavior-name A traffic behavior is created and the traffic behavior view is displayed.
  • Page 215: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: traffic-policy policy-name inbound The traffic policy is applied in the inbound direction of the interface.
  • Page 216: Configuring Vlan Stacking Based On The Vlan Priority On The Incoming Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Data Number of the incoming interface and outgoing interface of packets VLAN ID and 802.1p priority of the incoming interface before VLAN stacking is configured VLAN ID and internal priority of the incoming interface after VLAN stacking is...
  • Page 217: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration system-view The system view is displayed. Step 2 Run: diffserv domain ds-domain-name A DiffServ domain is created and the DiffServ domain view is displayed. Step 3 Run: 8021p-outbound service-class color map 8021p-value The internal priority of outgoing packets in a VLAN is mapped to the 802.1p priority on the...
  • Page 218: Configuring The Type Of An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Applicable Environment To enable the S7700 to communicate with devices of other vendors, you need to set a protocol type that can be identified by the peer device in the outer VLAN tag.
  • Page 219: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: qinq protocol protocol-id The protocol type of the outer VLAN tag is set.
  • Page 220: Setting The Interface Type

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Applicable Environment The S7700 forwards packets according to the outer VLAN tags of packets and distinguishes packets of different services according to the inner tags of packets. Therefore, an untagged packet must be added double VLAN tags.
  • Page 221: Adding Double Vlan Tags To Untagged Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Context Do as follows on the S7700 that needs to add double VLAN tags to untagged packets. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: vlan vlan-id The outer VLAN is created.
  • Page 222: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Currently, only the E-series and F-series boards supports the port vlan-stacking untagged command. In addition, the command cannot be used on an interface enabled with MAC address- based VLAN.
  • Page 223: Configuring A Dot1Q Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Data Control VLAN ID, and type and number of each sub-interface NOTE You can perform any of the following configurations on a sub-interface as required. 5.9.2 Configuring a Dot1q Sub-interface...
  • Page 224: Configuring Vlan Mapping Of A Single Tag On A Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration The VLANs whose packets are allowed to pass through the QinQ sub-interface are specified. ----End 5.9.4 Configuring VLAN Mapping of a Single Tag on a Sub- interface Procedure...
  • Page 225: Creating A Vll Connection

    5.9.7 Creating a VLL Connection You need to create VLL connections on the CE, PE, and P.For details, see "VLL Configuration" in the Quidway S7700 Smart Routing Switch Configuration Guide - VPN. You can create the following types of VLL connections on a sub-interface:...
  • Page 226: Establishing The Configuration Task

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.10.1 Establishing the Configuration Task Applicable Environment A CE accesses the ISP network through PEs. The user data packets sent by the CE to a PE contain one or two tags. You need to connect the sub-interfaces on the PEs to a VPLS network to enable CEs to communicate with each other.
  • Page 227: Configuring A Qinq Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration The control VLAN ID and encapsulation mode of the sub-interface are set. Step 4 Run: dot1q termination vid low-pe-vid [ to high-pe-vid ] The VLANs whose packets are allowed to pass through the dot1q sub-interface are specified.
  • Page 228: Configuring Vlan Mapping Of Double Tags On A Sub-Interface

    You need to configure the VPLS function on the CE, PE, and P. For details, see "VPLS Configuration" in the Quidway S7700 Smart Routing Switch Configuration Guide - VPN. When configuring VPLS, you can adopt Martini VPLS or Kompella VPLS.
  • Page 229: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.10.8 Checking the Configuration Procedure Run the display dot1q information termination [ interface interface-type interface- number [.subinterface-number ] ] command to check information about a dot1q sub- interface.
  • Page 230: Configuring A Dot1Q Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Data Interface that is bound to the VPN instance NOTE You can perform any of the following configurations on a sub-interface as required. 5.11.2 Configuring a Dot1q Sub-interface Context Do as follows on the PE.
  • Page 231: Configuring A Qinq Sub-Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration When you enable or disable the ARP broadcast function on a sub-interface, the routing status of the sub-interface becomes Down and then Up. This may result in flapping of routes on the entire network, affecting the normal operation of services.
  • Page 232: Configuring L3Vpn

    5 QinQ Configuration 5.11.4 Configuring L3VPN Configure L3VPN on the CE, PE, and P. For details, see BGP/MPLS IP VPN Configuration in the Quidway S7700 Smart Routing Switch Configuration Guide - VPN. 5.11.5 Checking the Configuration Procedure Run the display dot1q information termination [ interface interface-type interface- number [.subinterface-number ] ] command to check information about the sub-interface...
  • Page 233 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-1 Networking diagram for configuring QinQ on interfaces Enterprise 2 Enterprise 2 SwitchG GE1/0/1 GE2/0/1 GE3/0/1 …… …… GE4/0/1 SwitchF GE1/0/1 GE3/0/1 VLAN2000 VLAN3000 VLAN2000 VLAN3000 GE2/0/1 ……...
  • Page 234 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration <Quidway> system-view [Quidway] sysname SwitchF [SwitchF] vlan batch 10 20 # Create VLAN 20 on SwitchG. <Quidway> system-view [Quidway] sysname SwitchG [SwitchG] vlan 20 Step 2 Configure the interfaces as QinQ interfaces.
  • Page 235: Example For Configuring Selective Qinq

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Ping a host of Enterprise 2 from a host in any office location of Enterprise 1. If it fails to ping the host of Enterprise 2, the two enterprises are isolated from each other.
  • Page 236 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-2 Networking for configuring selective QinQ SwitchA SwitchB Carrier GE1/0/2 GE1/0/2 network GE1/0/1 GE1/0/1 IPTV IPTV Configuration Roadmap The configuration roadmap is as follows: Create VLANs on Switch A and Switch B.
  • Page 237 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration <Quidway> system-view [Quidway] sysname SwitchB [SwitchB] vlan batch 2 3 Step 2 Configure selective QinQ on interfaces of Switch A and Switch B. # Configure GE 1/0/1 of Switch A.
  • Page 238: Example For Configuring Selective Qinq With Vlan Mapping

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration <SwitchB> display current-configuration interface gigabitethernet 1/0/2 interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 2 to 3 return If Switch A and Switch B are configured correctly: l PCs can communicate with each other through the carrier network.
  • Page 239 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration VLANs for the Internet access service of different users: VLAN 1000 to VLAN 1100 Shared VLAN for the IPTV service: VLAN 1101 Shared VLAN for the VoIP service: VLAN 1102...
  • Page 240 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Configure other community switches. The configuration is similar to the configuration on SwitchB. Data preparation To complete the configuration, you need the following data: VLANs to which GE 1/0/0 of SwitchB is added in tagged mode: VLAN 1000 to VLAN...
  • Page 241: Example For Configuring Selective Qinq With A Traffic Policy

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Step 3 Verify the configuration. The Internet access service, IPTV service, and VoIP service can be used. ----End Configuration Files Configuration file of SwitchA sysname Quidway vlan batch 21 to 70 1101 to 1103...
  • Page 242 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-4 Networking diagram for configuring selective QinQ Internet ME60-A ME60-B GE3/0/0 GE4/0/0 GE1/0/0 GE2/0/0 Switch SwitchA SwitchB …… …… SwitchE SwitchF SwitchC SwitchD …… …… …… ……...
  • Page 243 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration VLAN to which GE 4/0/0 of the Switch needs to be added: VLAN 20 (in tagged mode) MAC address segments of STBs: 00e0-8e00-0000 ffff-ff00-0000 Traffic classifier: for STB, filtering packets based on VLAN IDs and source MAC...
  • Page 244: Example For Configuring Flow-Based Selective Qinq

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration # Configure a traffic policy. [Quidway] traffic policy PermitMAC [Quidway-trafficpolicy-PermitMAC] classifier STB behavior PermitMAC [Quidway-trafficpolicy-PermitMAC] quit # Apply the traffic policy in the inbound direction of GE 1/0/0 and GE 2/0/0.
  • Page 245 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Networking Requirements As shown in Figure 5-5, common Internet access users (using PCs) and IPTV users (using IPTV terminals) connect to the carrier network through Switch A and Switch B and communicate with each other through the carrier network.
  • Page 246 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Names of the traffic classifier and traffic behavior applied to common Internet access users: name1 Names of the traffic classifier and traffic behavior applied to IPTV users: name2...
  • Page 247 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [SwitchA] interface gigabitethernet 1/0/1 [SwitchA-GigabitEthernet1/0/1] port link-type hybrid [SwitchA-GigabitEthernet1/0/1] port hybrid untagged vlan 2 3 [SwitchA-GigabitEthernet1/0/1] traffic-policy name1 inbound [SwitchA-GigabitEthernet1/0/1] quit # Configure GE 1/0/1 of Switch B.
  • Page 248 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration l IPTV terminals can communicate with each other through the carrier network. ----End Configuration Files Only the configuration files of the Switches are provided: Configuration file of Switch A...
  • Page 249: Example For Configuring The Dot1Q Sub-Interfaces To Access Vll

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.12.6 Example for Configuring the Dot1q Sub-interfaces to Access Networking Requirements As shown in Figure 5-6, CE1 and CE2 are connected to PE1 and PE2 respectively through VLANs.
  • Page 250 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Use the default tunnel policy to create an LSP and configure the LSP as the tunnel for data transmission. Enable MPLS L2VPN and create VC connections on the PEs.
  • Page 251 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [P-Vlanif30] mpls [P-Vlanif30] mpls ldp [P-Vlanif30] quit # Configure PE2. [PE2] mpls lsr-id 3.3.3.9 [PE2] mpls [PE2-mpls] quit [PE2] mpls ldp [PE2-mpls-ldp] quit [PE2] interface vlanif 30 [PE2-Vlanif30] mpls...
  • Page 252 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE2-GigabitEthernet2/0/0.1] mpls l2vc 1.1.1.9 101 [PE2-GigabitEthernet2/0/0.1] quit Step 6 Verify the configuration. On PEs, check the L2VPN connections. You can see that an L2VC connection is set up and is in Up state.
  • Page 253 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface Vlanif10 ip address 100.1.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return Configuration file of PE1 sysname PE1 vlan batch 20 mpls lsr-id 1.1.1.9...
  • Page 254 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration ip address 10.2.2.2 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 30 port hybrid tagged vlan 30 interface GigabitEthernet2/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 interface LoopBack1 ip address 2.2.2.9 255.255.255.255...
  • Page 255: Example For Connecting Qinq Sub-Interfaces To A Vll Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration vlan batch 10 interface Vlanif 10 ip address 100.1.1.2 255.255.255.0 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return 5.12.7 Example for Connecting QinQ Sub-interfaces to a VLL...
  • Page 256 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration GigabitEthernet2/0/0 VLANIF 20 10.1.1.1/24 Loopback1 1.1.1.9/32 GigabitEthernet1/0/0 VLANIF 30 10.2.2.1/24 GigabitEthernet2/0/0 GigabitEthernet2/0/0.1 Loopback1 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 30 10.2.2.2/24 GigabitEthernet2/0/0 VLANIF 20 10.1.1.2/24 Loopback1 2.2.2.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24...
  • Page 257 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [Switch1] interface gigabitethernet 2/0/0 [Switch1-GigabitEthernet2/0/0] port hybrid tagged vlan 100 [Switch1-GigabitEthernet2/0/0] quit [Switch1] interface gigabitethernet 1/0/0 [Switch1-GigabitEthernet1/0/0] port hybrid untagged vlan 100 [Switch1-GigabitEthernet1/0/0] port vlan-stacking vlan 10 stack-vlan 100 [Switch1-GigabitEthernet1/0/0] quit # Configure Switch2.
  • Page 258 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE2-mpls-ldp] quit [PE2] interface vlanif 30 [PE2-Vlanif30] mpls [PE2-Vlanif30] mpls ldp [PE2-Vlanif30] quit Step 5 Create remote LDP sessions between PEs. # Configure PE1. [PE1] mpls ldp remote-peer 3.3.3.9 [PE1-mpls-ldp-remote-3.3.3.9] remote-ip 3.3.3.9...
  • Page 259 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration <PE1> display mpls l2vc interface gigabitethernet 1/0/0.1 *client interface : gigabitethernet 1/0/0.1 is up session state : up AC state : up VC state : up VC ID...
  • Page 260 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Configuration file of Switch1 sysname Switch1 vlan batch 100 interface GigabitEthernet2/0/0 port hybrid tagged vlan 100 interface GigabitEthernet1/0/0 port hybrid untagged vlan 100 port vlan-stacking vlan 10 stack-vlan 100...
  • Page 261 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface Vlanif 20 ip address 10.1.1.2 255.255.255.0 mpls mpls ldp interface Vlanif 30 ip address 10.2.2.2 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 30 port hybrid tagged vlan 30...
  • Page 262: Example For Connecting A Sub-Interface Enabled With The Single-Tag Vlan Mapping To A Vll Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration return Configuration file of Switch2 sysname Switch2 vlan batch 100 interface GigabitEthernet2/0/0 port hybrid tagged vlan 100 interface GigabitEthernet1/0/0 port hybrid untagged vlan 100 port vlan-stacking vlan 10 stack-vlan 100...
  • Page 263 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration GigabitEthernet1/0/0 GigabitEthernet1/0/0.1 GigabitEthernet2/0/0 VLANIF 20 10.1.1.1/24 Loopback1 1.1.1.9/32 GigabitEthernet1/0/0 VLANIF 30 10.2.2.1/24 GigabitEthernet2/0/0 GigabitEthernet2/0/0.1 Loopback1 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 30 10.2.2.2/24 GigabitEthernet2/0/0 VLANIF 20 10.1.1.2/24 Loopback1 2.2.2.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24...
  • Page 264 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Step 2 Configure an IGP on the MPLS backbone network. In this example, OSPF is used. When configuring OSPF, advertise the 32-bit addresses of loopback interfaces on PEs and P, which are used as the LSR IDs.
  • Page 265 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration After the configuration, run the display mpls ldp session command on PE1 to view the status of the LDP session. You can see that an LDP session is set up between PE1 and PE2.
  • Page 266 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration local control word : disable remote control word : none tunnel policy name : -- traffic behavior name : -- PW template name : -- primary or secondary...
  • Page 267 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet1/0/0 interface GigabitEthernet1/0/0.1 qinq mapping vid 10 map-vlan vid 20 mpls l2vc 3.3.3.9 101 interface GigabitEthernet2/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 interface LoopBack1 ip address 1.1.1.9 255.255.255.255...
  • Page 268: Example For Connecting A Sub-Interface Enabled With Double-Tag Vlan Mapping To A Vll Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration mpls l2vpn mpls l2vpn default martini mpls ldp mpls ldp remote-peer 1.1.1.9 remote-ip 1.1.1.9 interface Vlanif 30 ip address 10.2.2.1 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 30...
  • Page 269 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration When Switch1 and Switch2 add different VLAN tags to packets, configure VLAN mapping of double tags on a sub-interface and connect the sub-interface to the VLL. Then CE1 and CE2 can communicate with each other.
  • Page 270 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Configure the routing protocol on devices on the backbone network (PE and P) to implement interworking and enable MPLS. Use the default tunnel policy to create an LSP and configure the LSP as the tunnel for data transmission.
  • Page 271 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration When configuring OSPF, advertise the 32-bit addresses of loopback interfaces on PEs and P, which are used as the LSR IDs. The configuration procedure is not mentioned. After the configuration, OSPF neighbor relations are established between PE1, P, and PE2. By running the display ospf peer command, you can find that the status of the OSPF neighbor relations is Full.
  • Page 272 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Take the display on PE1 as an example. <PE1> display mpls ldp session LDP Session(s) in Public Network ------------------------------------------------------------------------------ Peer-ID Status SsnRole SsnAge KA-Sent/Rcv ------------------------------------------------------------------------------ 2.2.2.9:0 Operational DU Passive...
  • Page 273 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration PW template name : -- primary or secondary : primary VC tunnel/token info : 1 tunnels/tokens NO.0 TNL type : lsp , TNL ID : 0x10007 create time...
  • Page 274 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration mpls l2vpn mpls l2vpn default martini mpls ldp mpls ldp remote-peer 3.3.3.9 remote-ip 3.3.3.9 interface Vlanif20 ip address 10.1.1.1 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 interface GigabitEthernet1/0/0.1 qinq mapping pe-vid 100 ce-vid 10 map-vlan vid 200 mpls l2vc 3.3.3.9 101...
  • Page 275 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration return Configuration file of PE2 sysname PE2 vlan batch 30 mpls lsr-id 3.3.3.9 mpls mpls l2vpn mpls l2vpn default martini mpls ldp mpls ldp remote-peer 1.1.1.9 remote-ip 1.1.1.9 interface Vlanif 30 ip address 10.2.2.1 255.255.255.0...
  • Page 276: Example For Connecting A Sub-Interface Enabled With Vlan Stacking To A Vll Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return 5.12.10 Example for Connecting a Sub-interface Enabled with VLAN Stacking to a VLL Network Networking Requirements As shown in...
  • Page 277 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration GigabitEthernet1/0/0 GigabitEthernet1/0/0.1 GigabitEthernet2/0/0 VLANIF 20 10.1.1.1/24 Loopback1 1.1.1.9/32 GigabitEthernet1/0/0 VLANIF 30 10.2.2.1/24 GigabitEthernet2/0/0 GigabitEthernet2/0/0.1 Loopback1 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 30 10.2.2.2/24 GigabitEthernet2/0/0 VLANIF 20 10.1.1.2/24 Loopback1 2.2.2.9/32 GigabitEthernet1/0/0 VLANIF 10 100.1.1.1/24...
  • Page 278 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration The configuration procedure is not mentioned. Step 2 Configure selective QinQ on the interfaces of the switches and specify the VLANs allowed by the interfaces. # Configure Switch1.
  • Page 279 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [P-Vlanif30] mpls ldp [P-Vlanif30] quit # Configure PE2. [PE2] mpls lsr-id 3.3.3.9 [PE2] mpls [PE2-mpls] quit [PE2] mpls ldp [PE2-mpls-ldp] quit [PE2] interface vlanif 30 [PE2-Vlanif30] mpls [PE2-Vlanif30] mpls ldp [PE2-Vlanif30] quit Step 5 Create remote LDP sessions between PEs.
  • Page 280 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Step 7 Verify the configuration. On PEs, check the L2VPN connections. You can see that an L2VC connection is set up and is in Up state. Take the display on PE1 as an example.
  • Page 281 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return Configuration file of Switch1 sysname Switch1 vlan batch 10 interface GigabitEthernet2/0/0 port hybrid tagged vlan 10 interface GigabitEthernet1/0/0...
  • Page 282 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration mpls mpls ldp interface Vlanif 20 ip address 10.1.1.2 255.255.255.0 mpls mpls ldp interface Vlanif 30 ip address 10.2.2.2 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 30...
  • Page 283: Example For Connecting Dot1Q Sub-Interfaces To A Vpls Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.2.2.0 0.0.0.255 return Configuration file of Switch2 sysname Switch2 vlan batch 100 interface GigabitEthernet2/0/0 port hybrid tagged vlan 100 interface GigabitEthernet1/0/0 port hybrid untagged vlan 100...
  • Page 284 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-11 Networking diagram for configuring Martini VPLS Loopback1 Loopback1 Loopback1 1.1.1.9/32 2.2.2.9/32 3.3.3.9/32 GE 2/0/0 GE 1/0/0 PE 1 PE 2 GE 2/0/0 GE1/0/0 GE1/0/0 GE 2/0/0...
  • Page 285 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration VSI name and VSI ID IP addresses of peers and tunnel policy used for setting up the peer relationship Interfaces to which the VSI is bound Encapsulation mode of the sub-interfaces and VLANs that the sub-interfaces belong to...
  • Page 286 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE2] mpls l2vpn Step 6 Configure VSIs on PEs. # Configure PE1. [PE1] vsi a2 static [PE1-vsi-a2] pwsignal ldp [PE1-vsi-a2-ldp] vsi-id 2 [PE1-vsi-a2-ldp] peer 3.3.3.9 # Configure PE2.
  • Page 287 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Service Class : -- Color : -- DomainId Domain Name VSI State : up VSI ID *Peer Router ID : 3.3.3.9 VC Label : 23552 Peer Type : dynamic...
  • Page 288 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return Configuration file of PE1 sysname PE1 vlan batch 20 mpls lsr-id 1.1.1.9 mpls mpls l2vpn vsi a2 static...
  • Page 289 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration ip address 169.1.1.1 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 interface GigabitEthernet2/0/0 port hybrid pvid vlan 30 port hybrid tagged vlan 30 interface LoopBack1 ip address 2.2.2.9 255.255.255.255...
  • Page 290: Example For Connecting Qinq Sub-Interfaces To A Vpls Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.12.12 Example for Connecting QinQ Sub-interfaces to a VPLS Network Networking Requirements As shown in Figure 5-12, VPLS is enabled on PE1 and PE2. CE1 is connected to Switch1 through PE1, and CE2 is connected to Switch2 through PE2.
  • Page 291 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration GigabitEthernet1/0/0 VLANIF 10 10.1.1.1/24 GigabitEthernet1/0/0 VLANIF 10 10.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Configure the routing protocol on the backbone network to implement interworking. Set up a remote LDP session between the PEs.
  • Page 292 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration # Configure Switch2. [Switch2] vlan 100 [Switch2-vlan100] quit [Switch2] interface gigabitethernet 2/0/0 [Switch2-GigabitEthernet2/0/0] port hybrid tagged vlan 100 [Switch2-GigabitEthernet2/0/0] quit [Switch2] interface gigabitethernet 1/0/0 [Switch2-GigabitEthernet1/0/0] port hybrid untagged vlan 100...
  • Page 293 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration # Configure PE2. [PE2] vsi a2 static [PE2-vsi-a2] pwsignal ldp [PE2-vsi-a2-ldp] vsi-id 2 [PE2-vsi-a2-ldp] peer 1.1.1.9 Step 8 Bind VSIs to interfaces on PEs. # Configure PE1. [PE1] interface gigabitethernet 1/0/0.1 [PE1-GigabitEthernet1/0/0.1] control-vid 1000 qinq-termination...
  • Page 294 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Tunnel ID : 0x20021, Interface Name : Vlanif10 State : up **PW Information: *Peer Ip Address : 3.3.3.9 PW State : up Local VC Label : 23552 Remote VC Label...
  • Page 295 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet2/0/0 port hybrid tagged vlan 100 interface GigabitEthernet1/0/0 port hybrid untagged vlan 100 port vlan-stacking vlan 10 stack-vlan 100 return Configuration file of Switch2 sysname Switch2 vlan batch 100...
  • Page 296 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration return Configuration file of P sysname P vlan batch 20 30 mpls lsr-id 2.2.2.9 mpls mpls ldp interface Vlanif20 ip address 168.1.1.2 255.255.255.0 mpls mpls ldp interface Vlanif30 ip address 169.1.1.1 255.255.255.0...
  • Page 297: Example For Connecting A Sub-Interface Enabled With Single-Tag Vlan Mapping To A Vpls Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration port hybrid pvid vlan 30 port hybrid tagged vlan 30 interface GigabitEthernet2/0/0 interface GigabitEthernet2/0/0.1 control-vid 2000 qinq-termination qinq termination pe-vid 100 ce-vid 10 l2 binding vsi a2 interface LoopBack1 ip address 3.3.3.9 255.255.255.255...
  • Page 298 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration GigabitEthernet1/0/0 VLANIF 20 168.1.1.2/24 GigabitEthernet2/0/0 VLANIF 30 169.1.1.1/24 Loopback1 2.2.2.9/32 GigabitEthernet1/0/0 VLANIF 10 10.1.1.1/24 GigabitEthernet1/0/0 VLANIF 20 10.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Configure the routing protocol on the backbone network to implement interworking.
  • Page 299 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration After the configuration, run the display ip routing-table command on PE1, P, and PE2. You can view the routes learned by PE1, P, and PE2 from each other.
  • Page 300 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE2] interface gigabitethernet 2/0/0.1 [PE2-GigabitEthernet2/0/0.1] control-vid 2000 dot1q-termination [PE2-GigabitEthernet2/0/0.1] dot1q termination vid 20 [PE2-GigabitEthernet2/0/0.1] l2 binding vsi a2 [PE2-GigabitEthernet2/0/0.1] quit Step 8 Assign IP addresses to VLANIF interfaces on the CEs.
  • Page 301 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=77 ms Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=34 ms Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=46 ms Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=94 ms --- 10.1.1.2 ping statistics ---...
  • Page 302 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration mpls ldp interface GigabitEthernet1/0/0 interface GigabitEthernet1/0/0.1 qinq mapping vid 10 map-vlan vid 20 l2 binding vsi a2 interface GigabitEthernet2/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 interface LoopBack1 ip address 1.1.1.9 255.255.255.255...
  • Page 303: Example For Connecting A Sub-Interface Enabled With Double-Tag Vlan Mapping To A Vpls Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration mpls l2vpn vsi a2 static pwsignal ldp vsi-id 2 peer 1.1.1.9 mpls ldp mpls ldp remote-peer 1.1.1.9 remote-ip 1.1.1.9 interface Vlanif30 ip address 169.1.1.2 255.255.255.0 mpls mpls ldp...
  • Page 304 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-14 Networking diagram for configuring Martini VPLS Loopback1 Loopback1 Loopback1 3.3.3.9/32 1.1.1.9/32 2.2.2.9/32 GE2/0/0 GE2/0/0 GE1/0/0 GE1/0/0 GE1/0/0 GE2/0/0 GE2/0/0 GE2/0/0 Switch1 Switch2 GE1/0/0 GE1/0/0 GE1/0/0 GE1/0/0...
  • Page 305 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration On PE1, configure VLAN mapping of double tags on the sub-interface connected to CE1 and connect the sub-interface to the VPLS network. On PE2, configure a QinQ sub-interface on the interface connected to Switch2 and connect the sub-interface to the VPLS network.
  • Page 306 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration The configuration details are not mentioned here. After the configuration, run the display ip routing-table command on PE1, P, and PE2. You can view the routes learned by PE1, P, and PE2 from each other.
  • Page 307 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration # Configure PE2. [PE2] interface gigabitethernet 2/0/0.1 [PE2-GigabitEthernet2/0/0.1] control-vid 2000 qinq-termination [PE2-GigabitEthernet2/0/0.1] qinq termination pe-vid 200 ce-vid 10 [PE2-GigabitEthernet2/0/0.1] l2 binding vsi a2 [PE2-GigabitEthernet2/0/0.1] quit Step 9 Assign IP addresses to VLANIF interfaces on the CEs.
  • Page 308 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=77 ms Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=34 ms Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=46 ms Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=94 ms...
  • Page 309 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet1/0/0 port hybrid untagged vlan 200 port vlan-stacking vlan 10 stack-vlan 200 return Configuration file of PE1 sysname PE1 vlan batch 20 mpls lsr-id 1.1.1.9 mpls mpls l2vpn...
  • Page 310 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration ip address 169.1.1.1 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 interface GigabitEthernet2/0/0 port hybrid pvid vlan 30 port hybrid tagged vlan 30 interface LoopBack1 ip address 2.2.2.9 255.255.255.255...
  • Page 311: Example For Connecting A Sub-Interface Enabled With Vlan Stacking To A Vpls Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.12.15 Example for Connecting a Sub-interface Enabled with VLAN Stacking to a VPLS Network Networking Requirements As shown in Figure 5-15, VPLS is enabled on PE1 and PE2. CE1 is connected to Switch1 through PE1, and CE2 is connected to Switch2 through PE2.
  • Page 312 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Loopback1 3.3.3.9/32 GigabitEthernet1/0/0 VLANIF 20 168.1.1.2/24 GigabitEthernet2/0/0 VLANIF 30 169.1.1.1/24 Loopback1 2.2.2.9/32 GigabitEthernet1/0/0 VLANIF 10 10.1.1.1/24 GigabitEthernet1/0/0 VLANIF 10 10.1.1.2/24 Configuration Roadmap The configuration roadmap is as follows: Configure the routing protocol on the backbone network to implement interworking.
  • Page 313 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Step 2 Configure selective QinQ on the interfaces of the switches and specify the VLANs allowed by the interfaces. # Configure Switch1. [Switch1] vlan 10 [Switch1-vlan100] quit [Switch1] interface gigabitethernet 2/0/0...
  • Page 314 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE1] mpls l2vpn # Configure PE2. [PE2] mpls l2vpn Step 7 Configure VSIs on PEs. # Configure PE1. [PE1] vsi a2 static [PE1-vsi-a2] pwsignal ldp [PE1-vsi-a2-ldp] vsi-id 2 [PE1-vsi-a2-ldp] peer 3.3.3.9...
  • Page 315 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Encapsulation Type : vlan : 1500 Mode : uniform Service Class : -- Color : -- DomainId Domain Name VSI State : up VSI ID *Peer Router ID : 3.3.3.9...
  • Page 316 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface Vlanif10 ip address 10.1.1.2 255.255.255.0 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 return Configuration file of Switch1 sysname Switch1 vlan batch 10 interface GigabitEthernet2/0/0...
  • Page 317 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration interface GigabitEthernet2/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 interface LoopBack1 ip address 1.1.1.9 255.255.255.255 ospf 1 area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 168.1.1.0 0.0.0.255...
  • Page 318: Example For Configuring The Dot1Q Sub-Interface To Access An L3Vpn

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration mpls ldp mpls ldp remote-peer 1.1.1.9 remote-ip 1.1.1.9 interface Vlanif30 ip address 169.1.1.2 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 port hybrid pvid vlan 30 port hybrid tagged vlan 30 interface GigabitEthernet2/0/0 interface GigabitEthernet2/0/0.1...
  • Page 319 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-16 Networking diagram for configuring the dot1q sub-interface to access an L3VPN AS: 65410 AS: 65430 VPN-A VPN-A GE1/0/0 GE1/0/0 Loopback1 2.2.2.9/32 GE1/0/0 GE1/0/0 GE1/0/0 GE2/0/0 Loopback1 Loopback1 1.1.1.9/32...
  • Page 320 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration On the backbone network, configure VPN instances on the PEs connected to CEs and bind related VPNs to the interfaces connected to the CEs. Then, assign IP addresses to the interfaces connected to the CEs.
  • Page 321 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [P-GigabitEthernet1/0/0] port hybrid untagged vlan 30 [P-GigabitEthernet1/0/0] quit [P] interface GigabitEthernet 2/0/0 [P-GigabitEthernet2/0/0] port hybrid pvid vlan 60 [P-GigabitEthernet2/0/0] port hybrid untagged vlan 60 [P-GigabitEthernet2/0/0] quit [P] interface vlanif 30 [P-Vlanif30] ip address 172.1.1.2 24...
  • Page 322 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE1] display ospf peer OSPF Process 1 with Router ID 1.1.1.9 Neighbors Area 0.0.0.0 interface 172.1.1.1(Vlanif30)'s neighbors Router ID: 172.1.1.2 Address: 172.1.1.2 State: Full Mode:Nbr is Master Priority: 1...
  • Page 323 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 2.2.2.9:0 Operational DU Active 000:00:01 ------------------------------------------------------------------------------ TOTAL: 1 session(s) Found. LAM : Label Advertisement Mode SsnAge Unit : DDD:HH:MM [PE1] display mpls ldp lsp LDP LSP Information ------------------------------------------------------------------------------...
  • Page 324 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE2-GigabitEthernet2/0/0.1] ip binding vpn-instance vpnb [PE2-GigabitEthernet2/0/0.1] ip address 10.4.1.2 24 [PE2-GigabitEthernet2/0/0.1] arp broadcast enable [PE2-GigabitEthernet2/0/0.1] quit # Assign IP addresses to the interfaces on the CEs according to Figure 5-16.
  • Page 325 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration NOTE The configurations of CE2, CE3 and CE4 are similar to the configuration of CE1, and are not mentioned here. # Configure PE1. [PE1] bgp 100 [PE1-bgp] ipv4-family vpn-instance vpna [PE1-bgp-vpna] peer 10.1.1.1 as-number 65410...
  • Page 326 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration PrefRcv 3.3.3.9 0 00:02:21 Established [PE1] display bgp vpnv4 all peer BGP local router ID : 1.1.1.9 Local AS number : 100 Total number of peers : 3...
  • Page 327 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration PING 10.4.1.1: 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Request time out Request time out --- 10.4.1.1 ping statistics ---...
  • Page 328 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration ipv4-family unicast undo synchronization peer 3.3.3.9 enable ipv4-family vpnv4 policy vpn-target peer 3.3.3.9 enable ipv4-family vpn-instance vpna peer 10.1.1.1 as-number 65410 import-route direct ospf 1 area 0.0.0.0 network 172.1.1.0 0.0.0.255 network 1.1.1.9 0.0.0.0...
  • Page 329 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration vpn-target 111:1 import-extcommunity ip vpn-instance vpnb route-distinguisher 200:2 vpn-target 222:2 export-extcommunity vpn-target 222:2 import-extcommunity mpls lsr-id 3.3.3.9 mpls mpls ldp interface Vlanif60 ip address 172.2.1.2 255.255.255.0 mpls mpls ldp interface GigabitEthernet1/0/0 interface GigabitEthernet1/0/0.1...
  • Page 330 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Configuration file of CE1 sysname CE1 vlan batch 10 interface Vlanif10 ip address 10.1.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 10 port hybrid tagged vlan 10 bgp 65410 peer 10.1.1.2 as-number 100...
  • Page 331: Example For Configuring The Qinq Sub-Interface To Access An L3Vpn

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Configuration file of CE4 sysname CE4 vlan batch 20 interface Vlanif20 ip address 10.4.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 bgp 65440 peer 10.4.1.2 as-number 100...
  • Page 332 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-17 Networking diagram for configuring the QinQ sub-interface to access an L3VPN AS: 65410 AS: 65430 VPN-A VPN-A GE1/0/0 GE1/0/0 GE1/0/0 GE1/0/0 Switch3 Switch1 Loopback1 GE2/0/0 GE2/0/0 2.2.2.9/32...
  • Page 333 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration On the backbone network, configure VPN instances on the PEs connected to CEs and bind related VPNs to the interfaces connected to the CEs. Then, assign IP addresses to the interfaces connected to the CEs.
  • Page 334 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [Switch3-GigabitEthernet2/0/0] quit [Switch3] interface gigabitethernet 1/0/0 [Switch3-GigabitEthernet1/0/0] port hybrid untagged vlan 100 [Switch3-GigabitEthernet1/0/0] port vlan-stacking vlan 10 stack-vlan 100 [Switch3-GigabitEthernet1/0/0] quit # Configure Switch4. [Switch4] vlan 200 [Switch4-vlan200] quit...
  • Page 335 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [P-ospf-1-area-0.0.0.0] quit [P-ospf-1] quit # Configure PE2. <Quidway> system-view [Quidway] sysname PE2 [PE2] interface loopback 1 [PE2-LoopBack1] ip address 3.3.3.9 32 [PE2-LoopBack1] quit [PE2] vlan batch 60 [PE2] interface GigabitEthernet 3/0/0...
  • Page 336 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [PE1] mpls lsr-id 1.1.1.9 [PE1] mpls [PE1-mpls] quit [PE1] mpls ldp [PE1-mpls-ldp] quit [PE1] interface vlanif 30 [PE1-Vlanif30] mpls [PE1-Vlanif30] mpls ldp [PE1-Vlanif30] quit # Configure the P.
  • Page 337 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration TOTAL: 3 Normal LSP(s) Found. TOTAL: - Liberal LSP(s) Found. A '*' before an LSP means the LSP is not established A '*' before a Label means the USCB or DSCB is stale Step 4 Configure VPN instances on the PEs and connect the CEs to the PEs.
  • Page 338 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Take the display on PE1 and CE1 as an example. [PE1] display ip vpn-instance verbose Total VPN-Instances configured : 2 VPN-Instance Name and ID : vpna, 1 Create date : 2008/11/24 16:28:27...
  • Page 339 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration After the configuration, run the display bgp vpnv4 vpn-instance peer command on the PE, and you can see that the BGP peer relation between the PE and CE is in Established state.
  • Page 340 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Step 7 Verify the configuration. Run the display ip routing-table vpn-instance command on a PE, and you can view the routes to the remote CE. Take the display on PE1 as an example:...
  • Page 341 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration vlan batch 30 ip vpn-instance vpna route-distinguisher 100:1 vpn-target 111:1 export-extcommunity vpn-target 111:1 import-extcommunity ip vpn-instance vpnb route-distinguisher 100:2 vpn-target 222:2 export-extcommunity vpn-target 222:2 import-extcommunity mpls lsr-id 1.1.1.1...
  • Page 342 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration sysname P vlan batch 30 60 mpls lsr-id 2.2.2.9 mpls mpls ldp interface Vlanif30 ip address 172.1.1.2 255.255.255.0 mpls mpls ldp interface Vlanif60 ip address 172.2.1.1 255.255.255.0 mpls...
  • Page 343 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration qinq termination pe-vid 100 ce-vid 10 ip binding vpn-instance vpna ip address 10.3.1.2 255.255.255.0 arp broadcast enable interface GigabitEthernet2/0/0 interface GigabitEthernet2/0/0.1 control-vid 2000 qinq-termination rt-protocol qinq termination pe-vid 200 ce-vid 20 ip binding vpn-instance vpnb ip address 10.4.1.2 255.255.255.0...
  • Page 344 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration return Configuration file of CE2 sysname CE2 vlan batch 20 interface Vlanif20 ip address 10.2.1.1 255.255.255.0 interface GigabitEthernet1/0/0 port hybrid pvid vlan 20 port hybrid tagged vlan 20 bgp 65420 peer 10.2.1.2 as-number 100...
  • Page 345 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration return Configuration file of Switch1 sysname Switch1 vlan batch 100 interface GigabitEthernet2/0/0 port hybrid tagged vlan 100 interface GigabitEthernet1/0/0 port hybrid untagged vlan 100 port vlan-stacking vlan 10 stack-vlan 100...
  • Page 346: Gvrp Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration GVRP Configuration About This Chapter This chapter describes basic concepts involved in GVRP, GVRP configuration procedures, and concludes with a GVRP configuration example. 6.1 GVRP Overview This section explains the concepts of Generic Attribute Registration Protocol (GARP) and GARP VLAN Registration Protocol (GVRP), and how they relate to each another.
  • Page 347: Gvrp Overview

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration 6.1 GVRP Overview This section explains the concepts of Generic Attribute Registration Protocol (GARP) and GARP VLAN Registration Protocol (GVRP), and how they relate to each another. GVRP GVRP is an application of GARP that maintains and propagates VLAN registration information to other devices.
  • Page 348 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration – Join timer: To ensure reliable transmission of Join messages, a participant can send each Join message twice. If the participant does not receive the response after sending the Join message the first time, it sends the Join message again. The Join timer specifies the interval between the two Join messages.
  • Page 349 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration Figure 6-1 Format of a GARP packet DA SA length DSAP SSAP Ctrl Ethernet Frame Protocol ID Message 1 … Message N End Mark GARP PDU structure Attribute Type...
  • Page 350: Gvrp Features Supported By The S7700

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration Field Description Value Attribute Event Indicates the event that an l 0: LeaveAll event attribute describes. The l 1: JoinEmpty event value can be: l 2: JoinIn event...
  • Page 351: Configuring Gvrp

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration 6.3 Configuring GVRP This section describes how to configure the GVRP function. 6.3.1 Establishing the Configuration Task Applicable Environment On a complicated Layer 2 network, you can enable interfaces to dynamically join or leave VLANs by configuring the GVRP function.
  • Page 352: Optional) Setting The Registration Mode Of A Gvrp Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration Step 4 Run: port link-type trunk The link type of the interface is set to trunk. Step 5 Run: port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all } The interface is added to the specified VLANs.
  • Page 353: Optional) Setting The Garp Timers

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration gvrp registration { fixed | forbidden | normal } The registration mode of the interface is set. By default, the registration type of a GVRP interface is normal.
  • Page 354: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration Step 2 Run: garp timer leaveall timer-value The value of the LeaveAll timer is set. The default value of the LeaveAll timer is 1000 centiseconds (10 seconds). Step 3 Run: interface interface-type interface-number The interface view is displayed.
  • Page 355: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration Procedure Step 1 Run the reset garp statistics [ interface { interface-type interface-number [ to interface-type interface-number ] }&<1-10> ] command in the user view to clear statistics about GARP on the specified interfaces.
  • Page 356 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration Set the registration mode of interfaces. Data Preparation To complete the configuration, you need the following data: VLANs allowed by interfaces of Switch A, Switch B, and Switch C: all VLANs...
  • Page 357 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration [SwitchC-GigabitEthernet1/0/1] port trunk allow-pass vlan all [SwitchC-GigabitEthernet1/0/1] quit [SwitchC] interface gigabitethernet 1/0/2 [SwitchC-GigabitEthernet1/0/2] port link-type trunk [SwitchC-GigabitEthernet1/0/2] port trunk allow-pass vlan all [SwitchC-GigabitEthernet1/0/2] quit # Enable GVRP on the interfaces and set the registration modes of the interfaces.
  • Page 358 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 6 GVRP Configuration port trunk allow-pass vlan 2 to 4094 gvrp return Configuration file of Switch B sysname SwitchB gvrp interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094...
  • Page 359: Mac Address Table Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration MAC Address Table Configuration About This Chapter This chapter provides the basics for MAC address table configuration, configuration procedure, and configuration examples. 7.1 MAC Address Table Overview This section describes the definition of the MAC address table, how MAC address entries are generated, and how packets are forwarded based on the MAC address table.
  • Page 360 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration 7.10 Configuring MAC Address Flapping Detection This section describes how to configure MAC address flapping detection. 7.11 Configuring the S7700 to Discard Packets with an All-0 MAC Address You can configure the S7700 to discard packets with an all-0 source or destination MAC address.
  • Page 361: Mac Address Table Overview

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration 7.1 MAC Address Table Overview This section describes the definition of the MAC address table, how MAC address entries are generated, and how packets are forwarded based on the MAC address table.
  • Page 362: Mac Address Features Supported By The S7700

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Unicast mode: If the destination MAC address of a packet can be found in the MAC address table, the S7700 forwards the packet through the outbound interface specified in the matching entry.
  • Page 363: Port Security

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Disabling MAC Address Learning When an S7700 enabled with MAC address learning receives an Ethernet frame, it records the source MAC address and inbound interface of the Ethernet frame in a MAC address entry. When receiving other Ethernet frames destined for this MAC address, the S7700 forwards the frames through the corresponding outbound interface according to the MAC address entry.
  • Page 364: Configuring A Static Mac Address Entry

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration 7.3 Configuring a Static MAC Address Entry A static MAC address entry specifies an outbound interface for packets destined for a specified MAC address. Static MAC address entries protect the S7700 from MAC address attacks.
  • Page 365: Configuring A Blackhole Mac Address Entry

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: mac-address static mac-address interface-type interface-number { vlan vlan-id1 | [ vlanif vlan-id2 ] vsi vsi-name } A static MAC address entry is configured.
  • Page 366: Setting The Aging Time Of Dynamic Mac Address Entries

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration The system view is displayed. Step 2 Run: mac-address blackhole mac-address [ vlan vlan-id | vsi vsi-name ] A blackhole MAC address entry is configured. ----End...
  • Page 367: Disabling Mac Address Learning

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Step 2 Run: mac-address aging-time aging-time The aging time of dynamic MAC address entries is set. By default, the aging time of dynamic MAC address entries is 300 seconds.
  • Page 368: Disabling Mac Address Learning On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Pre-configuration Tasks None. Data Preparation To disable MAC address learning, you need the following data. Data Interface type and number VLAN ID 7.6.2 Disabling MAC Address Learning on an Interface Disabling MAC address learning on an interface can improve security of the device connected to the interface.
  • Page 369: Disabling Mac Address Learning In A Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration NOTE If you set the action to forward when disabling MAC address learning, untrusted terminals can still access the network. This action only controls the number of learned MAC address entries.
  • Page 370: Establishing The Configuration Task

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration 7.7.1 Establishing the Configuration Task Before limiting the number of learned MAC addresses, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the data required for the configuration.
  • Page 371: Limiting The Number Of Mac Addresses Learned On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Data Maximum number of MAC addresses that can be learned on an interface, VLAN, slot, or VSI 7.7.2 Limiting the Number of MAC Addresses Learned on an...
  • Page 372: Limiting The Number Of Mac Addresses Learned In A Vlan

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration By default, the S7700 sends a trap to the NMS when the number of learned MAC addresses reaches the limit. ----End 7.7.3 Limiting the Number of MAC Addresses Learned in a VLAN A limit can be set for the number of MAC addresses learned in a VLAN to control the number of users in the VLAN.
  • Page 373: Limiting The Number Of Mac Addresses Learned In A Vsi

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration By default, the S7700 sends a trap to the NMS when the number of learned MAC addresses reaches the limit. ----End 7.7.4 Limiting the Number of MAC Addresses Learned in a VSI A limit can be set for the number of MAC addresses learned in a virtual service instance (VSI) to control the number of users in the VSI.
  • Page 374: Limiting The Number Of Mac Addresses Learned In A Slot

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration By default, the S7700 sends a trap to the NMS when the number of learned MAC addresses reaches the limit. ----End 7.7.5 Limiting the Number of MAC Addresses Learned in a Slot A limit can be set for the number of MAC addresses learned in a slot to control the number of users on the board.
  • Page 375: Configuring Port Security

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Procedure Step 1 Run the display mac-limit [ interface-type interface-number | vlan vlan-id | vsi vsi-name | slot slot-id ] command to view the MAC address limiting rule.
  • Page 376: Configuring The Secure Dynamic Mac Function On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration 7.8.2 Configuring the Secure Dynamic MAC Function on an Interface After port security is enabled on an interface, MAC addresses learned by the interface change to secure dynamic MAC addresses. When the number of secure dynamic MAC addresses reaches the limit, the interface does not learn new MAC addresses and allows only the devices with the learned MAC addresses to communicate with the S7700.
  • Page 377: Configuring The Sticky Mac Function On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration l shutdown: shuts down the interface when the number of learned MAC addresses exceeds the limit. ----End 7.8.3 Configuring the Sticky MAC Function on an Interface After the sticky MAC function is enabled on an interface, MAC addresses learned by the interface change to sticky MAC addresses.
  • Page 378: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration l protect: discards packets with new source MAC addresses when the number of learned MAC addresses reaches the limit. l restrict: discards packets with new source MAC addresses and sends a trap message when the number of learned MAC addresses exceeds the limit.
  • Page 379: Setting The Mac Address Learning Priority Of An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Figure 7-4 Networking diagram for MAC address anti-flapping MAC:11-22-33 Server MAC:11-22-33 Switch Pre-configuration Tasks None. Data Preparation To configure MAC address anti-flapping, you need the following data.
  • Page 380: Prohibiting Mac Address Flapping Between Interfaces With The Same Priority

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: mac-learning priority priority-id The MAC address learning priority of the interface is set.
  • Page 381: Configuring Mac Address Flapping Detection

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration 7.10 Configuring MAC Address Flapping Detection This section describes how to configure MAC address flapping detection. 7.10.1 Establishing the Configuration Task Before configuring MAC address flapping detection, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the data required for the configuration.
  • Page 382: Configuring Mac Address Flapping Detection

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Data ID of the VLAN where MAC address flapping needs to be configured Blocking time for the interface where MAC address flapping occurs Number of detection attempts before an interface is permanently blocked 7.10.2 Configuring MAC Address Flapping Detection...
  • Page 383: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration unblocks the interface and starts detection. If MAC address flapping is detected again within 20 seconds, the system blocks the interface. This process repeats for a specified number of times.
  • Page 384: Enabling Mac Address Triggered Arp Entry Update

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: drop illegal-mac enable The S7700 is configured to discard packets with an all-0 MAC address.
  • Page 385: Enabling Port Bridge

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Pre-configuration Tasks None. Data Preparation None. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: mac-address update arp The MAC address triggered ARP entry update function is enabled.
  • Page 386: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration the port bridge functions on the interfaces connected to the servers so that the S7700 forwards data packets between the virtual machines. Pre-configuration Tasks None. Data Preparation None.
  • Page 387 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration through the LSW. The LSW is connected to GE 1/0/1 of the Switch. Interface GE 1/0/1 belongs to VLAN 2. The MAC address of the server is 0004-0004-0004. The server is connected to GE 1/0/2 of the Switch.
  • Page 388 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration VLAN to which the Switch belongs: VLAN 2 Interface connecting the Switch to the LSW: GE 1/0/1 Interface connecting the Switch to the server: GE 1/0/2...
  • Page 389: Example For Configuring The Limitation On Mac Address Learning Based On Vlans

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration sysname Quidway vlan batch 2 mac-address aging-time 500 interface GigabitEthernet1/0/1 port hybrid pvid vlan 2 port hybrid untagged vlan 2 port vlan-mapping vlan 4 map-vlan 2...
  • Page 390 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Configuration Roadmap The configuration roadmap is as follows: Create a VLAN and add interfaces to the VLAN. Configure the limitation on MAC address learning based on VLANs.
  • Page 391: Example For Configuring The Limitation On Mac Address Learning Based On Vsis

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration sysname Quidway vlan batch 2 vlan 2 mac-limit maximum 100 action forward interface GigabitEthernet1/0/1 port hybrid pvid vlan 2 port hybrid untagged vlan 2 interface GigabitEthernet2/0/1...
  • Page 392: Example For Configuring Interface Security

    # Configure the rule of limiting MAC address learning for the VSI: A maximum of 300 MAC addresses can be learned; extra packets are directly discarded and alarms are generated. [Quidway-vsi-huawei] mac-limit maximum 300 action discard alarm enable [Quidway-vsi-huawei] quit Step 3 Verify the configuration.
  • Page 393 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Figure 7-9 Networking diagram of interface security configuration Internet Switch GE1/0/1 VLAN 10 SwitchA Configuration Roadmap The configuration roadmap is as follows: Create a VLAN and set the link type of the interface to trunk.
  • Page 394: Example For Configuring Mac Address Anti-Flapping

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Step 2 Configure the interface security function. # Enable the interface security function. [Quidway-GigabitEthernet1/0/1] port-security enable Enable the sticky MAC function. [Quidway-GigabitEthernet1/0/1] port-security mac-address sticky # Configure the security protection action.
  • Page 395 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration Figure 7-10 Networking diagram for MAC address anti-flapping Server MAC:11-22-33 GE1/0/1 VLAN 10 Switch GE1/0/2 MAC:11-22-33 VLAN10 Configuration Roadmap The configuration roadmap is as follows: Create a VLAN and add interfaces to the VLAN.
  • Page 396 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 7 MAC Address Table Configuration [Quidway] interface gigabitethernet 1/0/1 [Quidway-GigabitEthernet1/0/1] port hybrid pvid vlan 10 [Quidway-GigabitEthernet1/0/1] port hybrid untagged vlan 10 Step 2 Configure MAC anti-flapping. # Set the MAC address learning priority of GigabitEthernet1/0/1 to 2.
  • Page 397: Stp/Rstp Configuration

    8.5 Configuring STP/RSTP Interoperability Between Huawei Devices and Non-Huawei Devices To supports STP/RSTP interoperability between Huawei devices and non-Huawei devices, proper parameters are required on Huawei devices running STP/RSTP to ensure nonstop communication. 8.6 Maintaining STP/RSTP STP/RSTP maintenance includes resetting STP/RSTP statistics.
  • Page 398: Stp/Rstp Overview

    On the STP-capable network, the device with the smallest BID is selected as the root bridge. The bridge priority that is allowed to be configured on a Huawei device ranges from 0 to 61440. By default, the bridge priority is 32768.
  • Page 399 The port priority that can be configured on a Huawei device ranges from 0 to 240, with the step 16. That is, the port priority can be 0, 16, or 32. By default, the port priority is 128.
  • Page 400 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Figure 8-1 Diagram of port roles Root bridge Root bridge Root port Designated port Alternate port Backup port As shown in Figure 8-1, RSTP defines four port roles: root port, designated port, alternate port, and backup port.
  • Page 401 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Port status – STP port state Table 8-1 shows the port status of an STP-capable port. Table 8-1 STP port state Port state Purpose Description Forwardin The port in the Forwarding state...
  • Page 402 8 STP/RSTP Configuration CAUTION A Huawei datacom device is in MSTP mode by default. After a device experiences the transition from the MSTP mode to the STP mode, an STP-capable port supports the same port states as those supported by an MSTP-capable port, including the Forwarding, Learning, and Discarding states.
  • Page 403: Stp/Rstp Features Supported By The S7700

    Before configuring STP/RSTP, familiarize yourself with the concepts of basic STP/RSTP functions, topology convergence, STP/RSTP protection, and STP/RSTP interoperability between Huawei devices and non-Huawei devices. This will help you complete the configuration task quickly and accurately. STP/RSTP is used to block redundant links on the Layer 2 network and trim a network into a loop-free tree topology.
  • Page 404 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Supports STP/RSTP interoperability between Huawei devices and non-Huawei devices. Proper parameters are required on Huawei devices running STP/RSTP to ensure nonstop communication. Table 8-4 RSTP Protection Function Protection...
  • Page 405: Configuring Basic Stp/Rstp Functions

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Protection Scenario Configuration Impact Function Loop A root port or an alternate After loop protection is configured, if the protection port will age if link root port or alternate port does not receive...
  • Page 406 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Loops will cause broadcast storms, thereby exhausting network resources and paralyzing the network. Loops also cause flapping of MAC address tables and thus damages MAC address entries. STP/RSTP can be deployed on a network to eliminate loops. If a loop is detected, STP/RSTP blocks one port to eliminate the loop.
  • Page 407: Configuring The Stp/Rstp Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Data (Optional) Priority of a switching device (Optional) Priority of a port (Optional) Path cost of a port 8.2.2 Configuring the STP/RSTP Mode Before configuring basic STP/RSTP functions, you need to configure the working mode of a switching device to STP/RSTP.
  • Page 408: Optional) Setting The Path Cost For A Port

    Use the Huawei proprietory calculation method as an example. Different link rates correspond to default path cost values of ports. For details, see Table 8-5.
  • Page 409: Optional) Configuring Port Priorities

    A path cost is set for the port. l When the Huawei proprietory calculation method is used, cost ranges from 1 to 200000. l When the IEEE 802.1d standard method is used, cost ranges from 1 to 65535.
  • Page 410: Enabling Stp/Rstp

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Step 2 Run: interface interface-type interface-number The Ethernet interface view is displayed. Step 3 Run: stp port priority priority The port priority is configured. The default priority value of a port on a switching device is 128.
  • Page 411: Configuring Stp/Rstp Parameters On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration 8.3 Configuring STP/RSTP Parameters on an Interface A feedback mechanism is provided to confirm topology convergence. Thus, rapid convergence is implemented for RSTP. STP does not implement rapid convergence; however, STP parameters, such as the network diameter, hello time, Max Age time, and Forward Delay time, may affect network convergence.
  • Page 412 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Paramete Parameter Commands Description Description Port Link type of a l stp point-to-point { auto | A P2P link helps parameter port force-false | force-true } implement the rapid convergence.
  • Page 413: Establishing The Configuration Task

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Paramete Parameter Commands Description Description Edge ports l stp edged-port enable The ports connecting to terminals do not participate l error-down auto-recovery in STP/RSTP calculation. cause cause-item interval...
  • Page 414: Setting System Parameters

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Data Whether a port is enabled with rapid transition mechanism Whether a port needs to transition to the RSTP mode Maximum number of sent BPDUs Whether a port needs to be configured as an edge port...
  • Page 415: Setting Port Parameters

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration The default Forward Delay period of a switching device is 1500, in centiseconds. l Run the stp timer hello hello-time command to set the Hello time for a switching device.
  • Page 416 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration l The switching device running STP is shut down or moved. l The switching device running STP transitions to the RSTP mode. NOTE If you run the stp mcheck command in the system view, the MCheck operation is performed on all the interfaces.
  • Page 417: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration NOTE The normal mode is recommended. If the fast mode is adopted, ARP entries will be frequently deleted, causing the CPU usage on the MPU or LPU to reach 100%. As a result, network flapping frequently occurs.
  • Page 418 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Protection Scenario Configuration Impact Function TC protection Generally, after receiving TC protection is used to suppress TC-BPDUs. TC BPDUs (packets for The number of times that TC-BPDUs are...
  • Page 419: Configuring Bpdu Protection On A Switching Device

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Configuring basic RSTP functions NOTE Configuring an edge port on the switching device before configuring BPDU protection. Data Preparation To configure basic RSTP functions, you need the following data.
  • Page 420: Configuring Tc Protection On A Switching Device

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration The smaller the interval-value is set, the sooner the edge port becomes Up, and the more frequently the edge port alternates between Up and Down. The larger the interval-value is set, the later the edge port becomes Up, and the longer the service interruption lasts.
  • Page 421: Configuring Loop Protection On A Port

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Context Due to incorrect configurations or malicious attacks on the network, a root bridge may receive BPDUs with a higher priority. Consequently, the legitimate root bridge is no longer able to serve as the root bridge, and the network topology is incorrectly changed, triggering spanning tree recalculation.
  • Page 422: Checking The Configuration

    8.5 Configuring STP/RSTP Interoperability Between Huawei Devices and Non-Huawei Devices To supports STP/RSTP interoperability between Huawei devices and non-Huawei devices, proper parameters are required on Huawei devices running STP/RSTP to ensure nonstop communication. 8.5.1 Establishing the Configuration Task Before configuring STP/RSTP interoperability between Huawei devices and non-Huawei...
  • Page 423: Configuring The Proposal/Agreement Mechanism

    Data BPDU format 8.5.2 Configuring the Proposal/Agreement Mechanism To enable Huawei Datacom devices to communicate with non-Huawei devices, a proper rapid transition mechanism needs to be configured on Huawei devices based on the Proposal/ Agreement mechanism on non-Huawei devices. Context The rapid transition mechanism is also called the Proposal/Agreement mechanism.
  • Page 424: Checking The Configuration

    After receiving the message, the upstream device sets the port connected to the downstream device as a designated port. The designated port then transitions to the Forwarding state. When Huawei datacom devices are interworking with non-Huawei devices, select either mode depending on the Proposal/Agreement mechanisms on non-Huawei devices. Procedure...
  • Page 425: Clearing Stp/Rstp Statistics

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration 8.6.1 Clearing STP/RSTP Statistics You can run the reset commands to reset STP/RSTP statistics to 0. Context CAUTION STP/RSTP statistics cannot be restored after you clear them. Therefore, exercise caution when using the reset commands.
  • Page 426 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Figure 8-3 Networking diagram of configuring basic STP functions Network GE1/0/3 GE1/0/3 Root GE1/0/1 GE1/0/1 SwitchD Bridge SwitchA GE1/0/2 GE1/0/2 GE1/0/3 GE1/0/3 SwitchC SwitchB GE1/0/1 GE1/0/1 GE1/0/2 GE1/0/2...
  • Page 427 Set path costs for ports in each spanning tree to block certain ports. NOTE l The values of path costs depend on path cost calculation methods. Use the Huawei proprietary calculation method as an example to set the path costs of the ports to be blocked to 20000.
  • Page 428 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration # Enable STP globally on SwitchC. [SwitchC] stp enable # Enable STP globally on SwitchD. [SwitchD] stp enable Step 2 Verify the configuration. After the previous configurations, run the following commands to verify the configuration when...
  • Page 429: Example For Configuring Basic Rstp Functions

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration stp mode interface GigabitEthernet1/0/2 stp disable return Configuration file of SwitchC sysname SwitchC stp mode interface GigabitEthernet1/0/1 stp instance 0 cost 20000 interface GigabitEthernet1/0/2 stp disable return Configuration file of SwitchD...
  • Page 430 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Figure 8-4 Networking diagram of basic RSTP configurations Network GE1/0/3 GE1/0/3 Root GE1/0/1 GE1/0/1 SwitchD Bridge SwitchA GE1/0/2 GE1/0/2 RSTP GE1/0/3 GE1/0/3 SwitchC SwitchB GE1/0/1 GE1/0/1 GE1/0/2 GE1/0/2...
  • Page 431 Set path costs for ports in each MSTI to block certain ports. NOTE l The values of path costs depend on path cost calculation methods. Use the Huawei proprietary calculation method as an example to set the path costs of the ports to be blocked to 20000.
  • Page 432 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration [SwitchA] stp enable # Enable RSTP globally on SwitchB. [SwitchB] stp enable # Enable RSTP globally on SwitchC. [SwitchC] stp enable # Enable RSTP globally on SwitchD. [SwitchD] stp enable Step 2 Configure RSTP protection functions, for example, root protection on a designated port of a root bridge in each MSTI.
  • Page 433 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 8 STP/RSTP Configuration Configuration Files Configuration file of SwitchA sysname SwitchA stp mode rstp stp instance 0 root primary interface GigabitEthernet1/0/1 stp root- protection interface GigabitEthernet1/0/2 stp root- protection return Configuration file of SwitchB...
  • Page 434: Mstp Configuration

    9.6 Configuring MSTP Interoperability Between Huawei Devices and Non-Huawei Devices To enable Huawei devices to interwork with non-Huawei devices, configure proper parameters and functions, including the BPDU format, MSTP protocol packet format, and digest snooping function, on the Huawei devices running MSTP.
  • Page 435 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration This section provides a configuration example of MSTP. Issue 01 (2011-07-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 436: Mstp Overview

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration 9.1 MSTP Overview MSTP enables multiple VLANs to be grouped into a spanning-tree instance, forming a VLAN mapping table. Each instance has a spanning-tree topology independent of other spanning-tree instances.
  • Page 437 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Table 9-1 Comparison between STP, RSTP, and MSTP Spanning Tree Characteristics Application Precautions Protocols Scenarios NOTE A loop-free tree is generated. Irrespective of Thus, broadcast storms are different users or...
  • Page 438 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration If MSTP is deployed in the LAN shown in Figure 9-1, MSTIs are generated, as shown in Figure 9-1. Figure 9-1 Multiple spanning trees in an MST region...
  • Page 439 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Figure 9-2 MST region MSTI1 Master Bridge root switch:S3 MSTI2 root switch:S2 MSTI0 (IST) root switch:S1 VLAN1 MSTI1 VLAN2,VLAN3 MSTI2 other VLANs MSTI0 VLAN mapping table The VLAN mapping table is an attribute of the MST region. It describes mappings between VLANs and MSTIs.
  • Page 440: Mst Region

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Figure 9-3 MSTI MST Region VLAN 10&20&30 VLAN 20&30 VLAN VLAN 10&30 10&30 VLAN 10 Root Root Root MSTI MSTI MSTI corresponding to corresponding to corresponding to VLAN 10...
  • Page 441 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Figure 9-4 MSTP network CIST Root Region Root Region Root Region Root On the network shown in Figure 9-4, the CIST root is the root bridge of a CIST. The CIST root is a device in A0.
  • Page 442 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration – A switching device running STP or RSTP belongs to only one spanning tree. – An MST region has only one switching device. As shown in Figure 9-4, the switching device in B0 is an SST.
  • Page 443 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Port Description Roles Master A master port is on the shortest path connecting MST regions to the CIST port root. BPDUs of an MST region are sent to the CIST root through the master port.
  • Page 444: Mstp Features Supported By The S7700

    Before configuring MSTP, familiarize yourself with the concepts of basic MSTP functions, topology convergence, MSTP protection, MSTP multi-process, and MSTP interoperability between Huawei devices and non-Huawei devices. This will help you complete the configuration task quickly and accurately. MSTP is used to block redundant links on the Layer 2 network and trim a network into a loop- free tree.
  • Page 445 Supports MSTP multi-process in the scenario where MSTP and STP/RSTP are used together. MSTP multi-process implements independent spanning tree calculation for every access rings. Supports MSTP interoperability between Huawei devices and non-Huawei devices. Proper parameters are required on Huawei devices running MSTP to ensure nonstop communication. Table 9-5 MSTP protection MSTP...
  • Page 446 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration MSTP Scenario Configuration Impact Protection Root Due to incorrect To address this issue, the root protection protection configurations or malicious function can be configured to protect the root...
  • Page 447 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Figure 9-6 Networking diagram of MSTP multi-process SwitchC SwitchB SwitchA Ring1 Ring3 Ring2 Instance1:VLAN2~100 Instance3:VLAN201~300 Process 1 Process 3 Instance2:VLAN101~200 Process 2 On the network shown in Figure 9-6, multiple Layer 2 rings, Ring 1, Ring 2, and Ring 3 exists.
  • Page 448: Configuring Basic Mstp Functions

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration switching devices to CEs. The ports on the share link need to participate in the calculation for multiple access rings and MSTP processes. This allows SwitchA and SwitchB to identify from which MST BPDUs are sent.
  • Page 449 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration MSTP can be deployed on a network to eliminate loops. If a loop is detected, MSTP blocks one or more ports to eliminate the loop. In addition, MSTIs can be configured to load-balance VLAN traffic.
  • Page 450: Configuring The Mstp Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration NOTE If the current device supports MSTP, configuring MSTP is recommended. Pre-configuration Tasks Before configuring basic MSTP functions, complete the following task: Connecting interfaces and setting physical parameters for the interfaces to ensure that the...
  • Page 451: Configuring And Activating An Mst Region

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration to the switching devices running STP to STP and other interfaces still run MSTP. This enables devices running different spanning tree protocols to interwork with each other. ----End 9.2.3 Configuring and Activating an MST Region...
  • Page 452: Optional) Setting A Priority For A Switching Device In An Msti

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration l Run the vlan-mapping modulo modulo command to enable VLAN-to-instance mapping assignment based on a default algorithm. By default, all VLANs in an MST region are mapped to MSTI 0.
  • Page 453: Optional) Setting A Path Cost Of A Port In An Msti

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration CAUTION If an S7700 is configured as the root switch or secondary root switch, the priority of the S7700 cannot be set. If you want to set the priority of the S7700, you must disable the root switch or secondary root switch.
  • Page 454: Optional) Setting A Port Priority In An Msti

    A path cost is set for the port in the current MSTI. l When the Huawei proprietory calculation method is used, cost ranges from 1 to 200000. l When the IEEE 802.1d standard method is used, cost ranges from 1 to 65535.
  • Page 455: Enabling Mstp

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration The value range of the priority is from 0 to 240, with the step 16. That is, the port priority can be 0, 16, or 32. ----End 9.2.7 Enabling MSTP After basic MSTP functions are configured on a switching device, enabling the MSTP function is required so that MSTP can work properly.
  • Page 456: Configuring Mstp Multi-Process

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration 9.3 Configuring MSTP Multi-process After an MSTP device binds its ports to different processes, the MSTP device performs the MSTP calculation based on processes, and only relevant ports in each process take part in MSTP calculation.
  • Page 457: Creating An Mstp Process

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Pre-configuration Tasks Before configuring MSTP multi-process, complete the following task: Configuring basic MSTP functions Data Preparation To configure MSTP multi-process, you need the following data. Data IDs of MSTP processes Priority of a switching device in an MSTI 9.3.2 Creating an MSTP Process...
  • Page 458: Adding An Interface To An Mstp Process - Access Links

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration 9.3.3 Adding an Interface to an MSTP Process - Access Links The links connecting MSTP devices and access rings are called access links. After being added to MSTP processes, interfaces on the access links can participate in MSTP calculation.
  • Page 459: Configuring Priorities And Root Protection In Mstp Multi-Process

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration The interface specified in this command must be an interface on the share link between the devices configured with MSTP multi-process but not the interfaces that connect an access ring and a device.
  • Page 460: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration The view of the created MSTP process is displayed. Step 3 Run: stp tc-notify process 0 TC notification is enabled in the MSTP process. After the stp tc-notify process 0 command is run, the current MSTP process notifies the MSTIs in MSTP process 0 to update MAC entries and ARP entries after receiving a TC-BPDU.
  • Page 461: Configuring System Parameters

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Data Preparation To configure MSTP parameters, you need the following data. Data Network diameter Hello time, forwarding delay time, maximum aging time, and timeout period for waiting for BPDUs from the upstream (3 x hello time x time factor)
  • Page 462 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration l RSTP uses a single spanning tree instance on the entire network, which cannot prevent the performance from deteriorating when the network scale grows. Therefore, the network diameter cannot be larger than 7.
  • Page 463: Configuring Port Parameters

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration NOTE If you run the stp mcheck command in the system view, the MCheck operation is performed on all the interfaces. ----End 9.4.3 Configuring Port Parameters Port parameters that may affect MSTP topology convergence include the link type and maximum number of sent BPDUs.
  • Page 464: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Step 6 (Optional) Run: stp edged-port enable The port is configured as an edge port. If a device port is connected to a terminal, you can run this command to configure the port as an edge port.
  • Page 465: Configuring Mstp Protection Functions

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Procedure Run the display stp [ instance instance-id ] [ interface { interface-type interface- number } ] [ brief ] command to view spanning-tree status and statistics. ----End 9.5 Configuring MSTP Protection Functions...
  • Page 466 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration MSTP Scenario Configuration Impact Protection Root Due to incorrect To address this issue, the root protection protection configurations or malicious function can be configured to protect the root...
  • Page 467: Configuring Bpdu Protection On A Switching Device

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration NOTE Configuring an edge port on the switching device before configuring BPDU protection. Data Preparation To configure MSTP protection functions on a switching device, you need the following data.
  • Page 468: Configuring Root Protection On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Context An attacker may send pseudo TC-BPDUs to attack switching devices. Switching devices receive a large number of TC BPDUs in a short time and delete entries frequently, which burdens system processing and degrades network stability.
  • Page 469: Configuring Loop Protection On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration as the root bridge, and the network topology is illegitimately changed, triggering spanning tree recalculation. This also may cause the traffic that should be transmitted over high-speed links to be transmitted over low-speed links, leading to network congestion.
  • Page 470: Configuring Share-Link Protection On A Switching Device

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration the NMS that the port enters the Discarding state. The blocked port remains in the Blocked state and no longer forwards packets. This prevents loops on the network. The root port restores the Forwarding state after receiving new BPDUs.
  • Page 471: Checking The Configuration

    9.6 Configuring MSTP Interoperability Between Huawei Devices and Non-Huawei Devices To enable Huawei devices to interwork with non-Huawei devices, configure proper parameters and functions, including the BPDU format, MSTP protocol packet format, and digest snooping function, on the Huawei devices running MSTP.
  • Page 472: Configuring A Proposal/Agreement Mechanism

    Data BPDU format MSTP protocol packet format 9.6.2 Configuring a Proposal/Agreement Mechanism To enable Huawei Datacom devices to communicate with non-Huawei devices, configure a proper rapid transition mechanism on Huawei devices according to the Proposal/Agreement mechanism on non-Huawei devices. Context The rapid transition mechanism is also called the Proposal/Agreement mechanism.
  • Page 473: Configuring The Mstp Protocol Packet Format On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The Ethernet interface view is displayed. Step 3 (Optional) Run: stp binding process process-id The interface is bound to an MSTP process.
  • Page 474: Enabling The Digest Snooping Function

    ----End 9.6.4 Enabling the Digest Snooping Function When a Huawei device is connected to a non-Huawei device, if the region names, revision numbers, and VLAN-to-instance mappings configured on the two devices are consistent but the BPDU keys are different, the two devices cannot communicate. To address this problem, enable the digest snooping function on the Huawei device.
  • Page 475: Checking The Configuration

    Configuration Guide - Ethernet 9 MSTP Configuration 9.6.5 Checking the Configuration After MSTP parameters are configured for the interoperability between Huawei devices and non-Huawei devices, check whether the configurations take effect. Prerequisite All the configurations for the interoperability between Huawei devices and non-Huawei devices are complete.
  • Page 476 On SwitchC and SwitchD, connect GE 1/0/1 to a PC and configure GE 1/0/1 as an edge port. Enable BPDU protection on SwitchC and SwitchD. Configure the Switches to calculate the path cost by using the algorithm of Huawei. Data Preparation...
  • Page 477 # Set the priority of SwitchA in MSTI1 to 1 to ensure that SwitchA functions as the regional root of MSTI1. [SwitchA] stp instance 1 priority 0 # Configure SwitchA to use Huawei private algorithm to calculate the path cost. [SwitchA] stp pathcost-standard legacy # Create VLANs 2 to 20.
  • Page 478 # Set the priority of SwitchB in MSTI0 to 4096 to ensure that SwitchB functions as the CIST root. [SwitchB] stp instance 0 priority 4096 # Configure SwitchB to use Huawei private algorithm to calculate the path cost. [SwitchB] stp pathcost-standard legacy # Create VLANs 2 to 20.
  • Page 479 # Set the priority of SwitchD in MSTI1 to 0 to ensure that SwitchD functions as the regional root of MSTI1. [SwitchD] stp instance 1 priority 0 # Configure SwitchD to use Huawei private algorithm to calculate the path cost. [SwitchD] stp pathcost-standard legacy # Enable BPDU protection.
  • Page 480 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration [SwitchD] stp enable Step 5 Verify the configuration. After the preceding configurations are complete and the network topology becomes stable, perform the following operations to verify the configuration.
  • Page 481 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration On SwitchD, GE 1/0/2 functions as the alternate port in the CIST. SwitchD and SwitchC are in different regions; therefore, GE 1/0/2 of SwitchD also functions as the alternate port in MSTI1.
  • Page 482: Example For Connecting Ces To The Vpls In Dual-Homing Mode Through Mstp

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration stp region-configuration region-name RG1 instance 1 vlan 1 to 10 active region-configuration interface GigabitEthernet1/0/1 port hybrid pvid vlan 20 port hybrid untagged vlan 20 stp edged-port enable interface GigabitEthernet1/0/2...
  • Page 483 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Figure 9-10 Network diagram for connecting CEs to the VPLS in dual-homing mode 1.1.1.1/32 2.2.2.2/32 GE1/0/0 GE2/0/0 GE2/0/0 GE1/0/0 GE1/0/0 GE1/0/0 GE3/0/0 GE3/0/0 GE2/0/0 GE2/0/0 VPLS GE2/0/0 GE3/0/0...
  • Page 484 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Configuration Roadmap The configuration roadmap is as follows: Configure the routing protocol on the backbone network to implement interworking. Set up a remote LDP session between the PEs.
  • Page 485 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration # Configure PE1. [PE1] mpls ldp remote-peer 3.3.3.3 [PE1-mpls-ldp-remote-3.3.3.3] remote-ip 3.3.3.3 [PE1-mpls-ldp-remote-3.3.3.3] quit # Configure PE2. [PE2] mpls ldp remote-peer 4.4.4.4 [PE2-mpls-ldp-remote-4.4.4.4] remote-ip 4.4.4.4 [PE2-mpls-ldp-remote-4.4.4.4] quit # Configure PE3.
  • Page 486 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration [PE2] vsi a2 static [PE2-vsi-a2] pwsignal ldp [PE2-vsi-a2-ldp] vsi-id 2 [PE2-vsi-a2-ldp] peer 1.1.1.1 [PE2-vsi-a2-ldp] peer 3.3.3.3 [PE2-vsi-a2-ldp] peer 4.4.4.4 Configurations of PE3 and PE3 are similar to configurations of PE1 and PE2, and are not mentioned.
  • Page 487 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration [PE2-mst-region] active region-configuration [PE2-mst-region] quit # Configure PE3. [PE3] stp region-configuration [PE3-mst-region] region-name RG1 [PE3-mst-region] active region-configuration [PE3-mst-region] quit # Configure CE2. [CE2] stp region-configuration [CE2-mst-region] region-name RG1...
  • Page 488 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration [PE2-GigabitEthernet1/0/0] stp enable [PE2-GigabitEthernet1/0/0] quit [PE2] interface gigabitethernet 2/0/0 [PE2-GigabitEthernet2/0/0] stp disable [PE2-GigabitEthernet2/0/0] quit [PE2] interface gigabitethernet 3/0/0 [PE2-GigabitEthernet3/0/0] stp disable [PE2-GigabitEthernet3/0/0] quit # Configure PE3. [PE3] stp enable...
  • Page 489 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration *Peer Router ID : 4.4.4.4 VC Label : 27650 Peer Type : dynamic Session : up Tunnel ID : 0x10003, Interface Name : GigabitEthernet 1/0/0.1 State : up...
  • Page 490 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration interface GigabitEthernet2/0/0 port hybrid pvid vlan 100 port hybrid untagged vlan 100 return Configuration file of CE2 sysname CE2 vlan batch 100 interface Vlanif100 interface GigabitEthernet1/0/0 port link-type trunk...
  • Page 491 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration port hybrid pvid vlan 10 port hybrid tagged vlan 10 stp disable interface GigabitEthernet3/0/0 port hybrid pvid vlan 40 port hybrid tagged vlan 40 stp disable interface LoopBack1 ip address 1.1.1.1 255.255.255.255...
  • Page 492 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration interface LoopBack1 ip address 2.2.2.2 255.255.255.255 ospf 1 area 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.2.1.0 0.0.0.255 network 2.2.2.2 0.0.0.0 return Configuration file of PE3 sysname PE3 vlan batch 20 30 mpls lsr-id 3.3.3.3...
  • Page 493 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration network 172.3.1.0 0.0.0.255 network 3.3.3.3 0.0.0.0 return Configuration file of PE4 sysname PE4 vlan batch 30 40 mpls lsr-id 4.4.4.4 mpls mpls l2vpn vsi a2 static pwsignal ldp vsi-id 2 peer 1.1.1.1...
  • Page 494: Rings

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration 9.8.3 Example for Configuring MSTP Multi-Process for Layer 2 Single-Access Rings and Layer 2 Multi-Access Rings MSTP multi-process enables different Layer 2 access rings to transmit different services.
  • Page 495 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Configure basic MSTP functions, add devices to MST regions, and create MSTIs. NOTE l Each ring can belong to only one region. l Each CE can join only one ring.
  • Page 496 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Create multiple MSTP processes and add interfaces to relevant processes. # Create MSTP processes 1 and 2 on Switch A. [SwitchA] stp process 1 [SwitchA-mst-process-1] quit [SwitchA] stp process 2 [SwitchA-mst-process-2] quit # Create MSTP processes 2 and 3 on Switch B.
  • Page 497 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration Step 3 Configure MSTP protection functions. l Configure priorities of MSTP processes and enable root protection. # Configure Switch A. [SwitchA] stp process 1 [SwitchA-stp-process-1] stp instance 0 root primary...
  • Page 498 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration [SwitchA-GigabitEthernet1/0/2] port trunk allow-pass vlan 101 to 200 [SwitchA-GigabitEthernet1/0/2] quit # Create VLANs 101 to 300 on Switch B. Add GE 1/0/3 and GE 1/0/4 to VLANs 201 to 300, and add GE 1/0/1 and GE 1/0/2 to VLANs 101 to 200.
  • Page 499 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration vlan batch 2 to stp region- configuration region-name instance 1 vlan 1 to instance 2 vlan 101 to active region- configuration stp process stp instance 0 root primary...
  • Page 500 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration sysname SwitchB vlan batch 101 to stp region- configuration region-name instance 2 vlan 101 to instance 3 vlan 1 to active region- configuration stp process stp instance 0 root...
  • Page 501 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 9 MSTP Configuration stp binding process return Issue 01 (2011-07-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 502: Sep Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration SEP Configuration About This Chapter As a link layer protocol dedicated to Ethernet rings, SEP blocks redundant links on a network to prevent logical loops. 10.1 SEP Overview The Smart Ethernet Protection (SEP) protocol is a dedicated link layer protocol for use on Ethernet rings.
  • Page 503 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration 10.7 Configuration Examples This section describes the networking requirements, configuration roadmap, and data preparation for a typical SEP application and provides the configuration examples. Issue 01 (2011-07-15) Huawei Proprietary and Confidential...
  • Page 504: Sep Overview

    MAC address table unstable. As a result, the communication quality deteriorates, and communication services may even be interrupted. To solve the loop problem, Huawei datacom devices support the ring network protocols shown Table 10-1.
  • Page 505 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Ring Advantage Disadvantag Deployment Network Scenario Protocol RRPP The Rapid Ring Protection l A Huawei It is applicable to single Protocol (RRPP) is a private device rings, tangent rings, and protocol of Huawei.
  • Page 506 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Ring Advantage Disadvantag Deployment Network Scenario Protocol l SEP is a private protocol of l The It is applicable to Layer Huawei. It boasts short devices on 2 networks that have a...
  • Page 507 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration a node on the link becomes faulty (it is assumed that the link between LSW1 and LSW5 becomes faulty), the following situations occur: If SEP is not deployed on the closed-ring, CE1 still forwards traffic along the original path, causing traffic interruption.
  • Page 508: Basic Concepts

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-1 Schematic diagram for SEP Access Aggregation Core LSW1 LSW3 Master IP/MPLS NPE1 VRRP+peer BFD Core NPE2 LSW5 LSW2 LSW4 Backup a,SEP is not deployed on the closed-ring...
  • Page 509 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-2 Networking diagram for an open ring running SEP VLAN/VPLS VLAN/VPLS LSW5 LSW1 LSW5 LSW1 Segment Segment LSW4 LSW2 LSW4 LSW2 LSW3 LSW3 No-Neighbor Primary Edge Node...
  • Page 510: Interface Description

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration As shown in Table 10-2, edge interfaces are further classified into primary edge interfaces, secondary edge interfaces, no-neighbor primary edge interfaces, and no-neighbor secondary edge interfaces. NOTE Normally, an edge interface and a no-neighbor edge interface belong to different SEP segments.
  • Page 511 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Interface Sub-role Description Deployment roles Scenario The interface at the most marginal Hybrid SEP neighbor edge of a SEP segment is a no- +MSTP ring primary neighbor primary edge interface, as...
  • Page 512 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration The process of breaking a loop by using SEP After a SEP segment is created, the interfaces on each node of the ring network are added to the SEP segment, and a role is configured for each interface.
  • Page 513 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration As shown in Figure 10-3, the networking consists of the access layer, aggregation layer, and core layer. The CE is dual-homed to the upstream Layer 2 network through LSW1 to LSW5.
  • Page 514 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-5 Networking diagram for multiple rings running SEP IP/MPLS Core NPE2 NPE1 VRRP+peer BFD LSW1 LSW5 Segment 1 LSW2 LSW4 LSW3 LSW9 LSW6 Segment 4 LSW12 LSW8...
  • Page 515 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-6 Networking diagram for hybrid rings running SEP+MSTP IP/MPLS Core NPE2 NPE1 VRRP+peer BFD MSTP Do not Support SEP Segment LSW1 LSW2 LSW3 No-neighbor Primary Edge Node...
  • Page 516 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-7 Networking diagram for hybrid rings running SEP+RRPP IP/MPLS Core NPE2 NPE1 VRRP+peer BFD RRPP Segment LSW1 LSW2 LSW3 Primary Edge Node Secondary Edge Node Block Port...
  • Page 517: Sep Features Supported By The S7700

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration 10.1.2 SEP Features Supported by the S7700 This section describes SEP features supported by the S7700 from the perspective of SEP configuration logic. Familiarizing yourself with SEP configuration logic helps you complete configuration tasks quickly and efficiently.
  • Page 518 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Interface Blocking Description Mode Specifying the interface Is applicable to a network where traffic is symmetrically in the middle of a SEP distributed. segment as the blocked After fault recovery, the interface in the middle of a SEP interface segment is designated as the blocked interface.
  • Page 519 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Preemption Advantage Disadvantage Mode Manual Whether the specified l The manual preemption mode needs preemp interface will be to be specified in advance. tion blocked can be l After related faults are rectified and controlled manually.
  • Page 520 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-8 Networking diagram for SEP multi-instance IP/MPLS Core group 2:Master group 1:Master group 1:Backup group 2:Backup NPE2 NPE1 VRRP+peer BFD LSW2 LSW4 Segment1 LSW3 LSW1 VLAN 201~400...
  • Page 521 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-9 Networking diagram for SEP multi-instance IP/MPLS Core group 2:Master group 1:Master group 1:Backup group 2:Backup NPE2 NPE1 VRRP+peer BFD LSW2 LSW4 Segment2 SEP Segment1 LSW3 LSW1...
  • Page 522 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Table 10-6 SEP topology changes SEP Topology Description Change Topology If an interface on a device in a complete SEP segment becomes faulty, the change caused topology of the SEP segment changes.
  • Page 523: Configuring Basic Sep Functions

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Scenario Description Solution Topology Change Notification Networking During an active/standby Enable the scenario where a switchover of member interfaces in edge devices host is connected to the SmartLink group, the host sends...
  • Page 524: Configuring An Sep Segment

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Pre-configuration Tasks Before configuring basic SEP functions, complete the following tasks: Establishing the ring networking Ensuring that the devices are powered on correctly and operate properly Data Preparation To configure basic SEP functions, you need the following data.
  • Page 525: Creating A Protected Instance

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Context NOTE On a SEP network that has no-neighbor edge interfaces, a device that is not in a SEP segment cannot be added to the control VLAN of the SEP segment. Otherwise, a loop will be caused on the network.
  • Page 526: Adding A Layer 2 Interface To A Sep Segment And Configuring A Role For The Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration The system view is displayed. Step 2 Run: sep segment segment-id A SEP segment is created and the view of the SEP segment is displayed. Step 3 Run: protected-instance { all | { instance-id1 [ to instance-id2 ] &<1-10>...
  • Page 527 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Interface Sub-role Description Deployment roles Scenario Edge port Primary A SEP segment has only one primary Open ring Edge Port edge interface. It can either be network configured or be elected.
  • Page 528: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The view of an Ethernet interface added to the SEP segment is displayed.
  • Page 529: Establishing The Configuration Task

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration 10.3.1 Establishing the Configuration Task Before specifying an interface to block, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and efficiently.
  • Page 530 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Table 10-9 Interface blocking mode Interface Blocking Description Mode Specifying the interface Is applicable to a large-scale network. with the highest priority After fault recovery, the interface with the highest priority in a as the blocked interface SEP segment is designated as the blocked interface.
  • Page 531: Configuring The Preemption Mode

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration l middle specifies the interface in the middle of the SEP segment as the blocked interface. l hop specifies the interface that is hop-id hops away from the primary edge interface as the blocked interface.
  • Page 532 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Preemption Advantage Disadvantage Mode Preempt Delayed Each time a fault is l Related commands need to be used to preempt rectified, the system specify the delayed preemption mode in...
  • Page 533: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration By default, the primary edge interface is not configured with the preemption mode, that is, the non-preemption mode is adopted. ----End 10.3.4 Checking the Configuration After specifying an interface to block, you can view information about a specified blocked interface.
  • Page 534 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-10 Networking diagram for SEP multi-instance IP/MPLS Core group 2:Master group 1:Master group 1:Backup group 2:Backup NPE2 NPE1 VRRP+peer BFD LSW2 LSW4 Segment2 SEP Segment1 LSW3 LSW1...
  • Page 535: Configuring And Activating Mappings Between Protected Instances And Vlans

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Data ID of a protected instance in a SEP segment ID of a VLAN mapped to a protected instance 10.4.2 Configuring and Activating Mappings Between Protected Instances and VLANs A physical ring network can be configured with one or two SEP segments.
  • Page 536: Configuring The Topology Change Notification Function

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Prerequisite The configurations of SEP multi-instance are complete. Procedure Run the display sep topology [ segment segment-id ] [ verbose ] command to check the topology status of a specified SEP segment.
  • Page 537 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Table 10-11 SEP topology change notification Scenario Description Solution Topology Change Notification Topology Networking where a l If the blocked interface in a Configure change SEP network is...
  • Page 538: Reporting Topology Changes Of A Lower-Layer Network - Sep Topology Change Notification

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Data Preparation To configure the topology change notification function, you need the following data. Data SEP segment ID Mode of reporting topology changes Names of the Maintenance Domain (MD) and the Maintenance Association (MA),...
  • Page 539: Reporting Topology Changes Of A Lower-Layer Network - Enabling The Edge Devices In A Sep Segment To Process Smartlink Flush Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration tc-notify { segment { segment-id1 [ to segment-id2 ] } &<1-10> | stp | rrpp | smart- link send-packet vlan vlan-id } The topology change of a specified SEP segment is reported to another SEP segment or a network running other ring protocols such as STP or RRPP.
  • Page 540: Reporting Topology Changes Of An Upper-Layer Network - Configuring Association Between Sep And Cfm

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration After receiving a SmartLink Flush packet, the edge device in a SEP segment floods FLUSH- FDB packets to notify the other devices in the SEP segment of topology changes.
  • Page 541: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration l ma ma-name: specifies a maintenance association (MA). The total length of md-name and ma-name cannot be greater than 44 characters. l interface must have been added to the SEP segment.
  • Page 542: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Context CAUTION Debugging affects the performance of the system. So, after debugging, run the undo debugging all command to disable it immediately. Procedure Step 1 Run the debugging sep { all | common | error | machine | message | pdu [ [ epa | lsa | nbr | preempt ] [ transmit | receive ] ] } [ segment segment-id | interface interface-type interface- number ] command in the user view to debug SEP.
  • Page 543 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-11 Networking diagram of a closed ring SEP network GE1/0/3 GE1/0/2 GE1/0/2 LSW1 LSW5 GE1/0/3 GE1/0/1 GE1/0/1 Segment1 GE1/0/1 GE1/0/1 LSW2 LSW4 LSW3 GE1/0/2 GE1/0/2 GE1/0/1 GE1/0/2...
  • Page 544 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Preemption mode Method of selecting the port to block Priorities of the ports in the SEP segment Procedure Step 1 Configure basic SEP functions. Configure SEP segment 1 on LSW1 to LSW5 and configure VLAN 10 as the control VLAN of SEP segment 1.
  • Page 545 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [LSW1] interface gigabitethernet 1/0/1 [LSW1-GigabitEthernet1/0/1] stp disable [LSW1-GigabitEthernet1/0/1] sep segment 1 edge primary [LSW1-GigabitEthernet1/0/1] quit [LSW1] interface gigabitethernet 1/0/3 [LSW1-GigabitEthernet1/0/3] stp disable [LSW1-GigabitEthernet1/0/3] sep segment 1 edge secondary [LSW1-GigabitEthernet1/0/3] quit # Configure LSW2.
  • Page 546 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration NOTE l You must set the preemption delay when delayed preemption is adopted because there is no default delay time. l After all the faulty ports recover, the edge ports no longer receive fault notification packets. If the primary edge port does not receive any fault notification packet, it starts the delay timer.
  • Page 547 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration vlan batch 10 100 sep segment 1 control-vlan 10 protected-instance 0 to 48 interface GigabitEthernet1/0/1 port hybrid tagged vlan 10 100 stp disable sep segment 1 interface GigabitEthernet1/0/2...
  • Page 548: Example For Configuring Sep On A Multi-Ring Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration vlan batch 10 100 200 sep segment 1 control-vlan 10 protected-instance 0 to 48 interface GigabitEthernet1/0/1 port hybrid tagged vlan 10 100 stp disable sep segment 1 interface GigabitEthernet1/0/2...
  • Page 549 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Figure 10-12 Networking diagram of a multi-ring SEP network GE1/0/3 GE1/0/3 LSW1 LSW5 GE1/0/1 GE1/0/1 GE1/0/1 GE1/0/3 Segment 1 LSW4 LSW2 GE1/0/1 GE1/0/2 GE1/0/2 LSW3 GE1/0/4 GE1/0/1 GE1/0/2...
  • Page 550 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration l On LSW1 to LSW5, add the interfaces on the ring at the access layer to SEP segment 1. Configure the roles of GE1/0/1 and GE1/0/3 of LSW1 in SEP segment l Add GE1/0/2 of LSW2, GE1/0/1 and GE1/0/2 of LSW6 to LSW8, and GE1/0/2 of LSW3 to SEP segment 2.
  • Page 551 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [LSW2-sep-segment1] control-vlan 10 [LSW2-sep-segment1] protected-instance all [LSW2-sep-segment1] quit [LSW2] sep segment 2 [LSW2-sep-segment2] control-vlan 20 [LSW2-sep-segment2] protected-instance all [LSW2-sep-segment2] quit # Configure LSW3. <Quidway> system-view [Quidway] sysname LSW3...
  • Page 552 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [LSW1-GigabitEthernet1/0/1] sep segment 1 edge primary [LSW1-GigabitEthernet1/0/1] quit [LSW1] interface gigabitethernet 1/0/3 [LSW1-GigabitEthernet1/0/3] stp disable [LSW1-GigabitEthernet1/0/3] sep segment 1 edge secondary [LSW1-GigabitEthernet1/0/3] quit # Configure LSW2. [LSW2] interface gigabitethernet 1/0/1...
  • Page 553 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Specify the port to block. # On LSW1 where the primary edge port of SEP segment 1 is located, specify that the port with the highest priority be blocked.
  • Page 554 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration # Configure LSW2. [LSW2] sep segment 2 [LSW2-sep-segment2] tc-notify segment 1 [LSW2-sep-segment2] quit # Configure LSW3. [LSW3] sep segment 2 [LSW3-sep-segment2] tc-notify segment 1 [LSW3-sep-segment2] quit # Configure SEP segment 3 to notify SEP segment 1 of topology changes.
  • Page 555 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration interface GigabitEthernet1/0/2 port hybrid pvid vlan 300 port hybrid tagged vlan 100 200 port hybrid untagged vlan 300 interface GigabitEthernet1/0/3 port hybrid tagged vlan 10 100 200 300...
  • Page 556 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration stp disable sep segment 2 edge secondary interface GigabitEthernet1/0/3 port hybrid tagged vlan 10 100 200 stp disable sep segment 1 interface GigabitEthernet1/0/4 port hybrid tagged vlan 10 100 200...
  • Page 557 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration interface GigabitEthernet1/0/3 port hybrid tagged vlan 10 100 200 300 stp disable sep segment 1 return Configuration file of LSW6 sysname LSW6 vlan batch 20 200 sep segment 2...
  • Page 558 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration interface GigabitEthernet1/0/2 port hybrid tagged vlan 20 200 stp disable sep segment 2 return Configuration file of LSW9 sysname LSW9 vlan batch 30 100 sep segment 3 control-vlan 30...
  • Page 559: Example For Configuring A Hybrid Sep+Mstp Ring Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration port hybrid tagged vlan 30 100 stp disable sep segment 3 return Configuration file of CE1 sysname CE1 vlan batch 100 interface GigabitEthernet1/0/1 port hybrid tagged vlan 100...
  • Page 560 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration MAC addresses and relearn MAC addresses after the topology of the lower-layer network changes. This ensures nonstop traffic forwarding. Figure 10-13 Networking diagram of a hybrid-ring SEP network...
  • Page 561 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration (5) Configure the topology change notification function so that the upper-layer network running MSTP can be notified of topology changes in the SEP segment. Configure basic MSTP functions.
  • Page 562 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration NOTE By default, STP is enabled on a Layer 2 interface. Before adding an interface to the SEP segment, disable STP on the interface. # Configure LSW1. [LSW1] interface gigabitethernet 1/0/1...
  • Page 563 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration # Configure PE2. <Quidway> system-view [Quidway] sysname PE2 [PE2] stp region-configuration [PE2-mst-region] region-name RG1 [PE2-mst-region] active region-configuration [PE2-mst-region] quit # Configure PE3. <Quidway> system-view [Quidway] sysname PE3 [PE3] stp region-configuration...
  • Page 564 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [PE4] stp instance 0 priority 4096 [PE4] stp root secondary Step 3 Configure the Layer 2 forwarding function on the CE and LSW1 to LSW3. For details about the configuration, see the configuration files.
  • Page 565 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration interface GigabitEthernet1/0/1 port hybrid tagged vlan 10 100 stp disable sep segment 1 no-neighbor edge secondary return Configuration file of LSW3 sysname LSW3 vlan batch 10 100 sep segment 1...
  • Page 566: Example For Configuring A Hybrid Sep+Rrpp Ring Network

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration port hybrid tagged vlan 100 return Configuration file of PE3 sysname PE3 vlan batch 100 200 stp instance 0 root primary stp region-configuration region-name RG1 active region-configuration interface GigabitEthernet1/0/1...
  • Page 567 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration changes on an edge device in a SEP segment. This helps an upper-layer network to detect topology changes of a lower-layer network in time. Networking Requirements Generally, redundant links are used to connect an Ethernet switching network to an upper-layer network to provide link backup and enhance network reliability.
  • Page 568 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration As shown in Figure 10-14, Multiple Layer 2 switching devices at the access layer and aggregation layer form a ring network to access the core layer. RRPP has been configured at the aggregation layer to eliminate loops.
  • Page 569 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Procedure Step 1 Configure basic SEP functions. Configure a SEP segment with the ID being 1 and a control VLAN with the ID being 10. # Configure PE1.
  • Page 570 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [LSW2-GigabitEthernet1/0/1] sep segment 1 edge no-neighbor secondary [LSW2-GigabitEthernet1/0/1] quit [LSW2] interface gigabitethernet 1/0/2 [LSW2-GigabitEthernet1/0/2] stp disable [LSW2-GigabitEthernet1/0/2] sep segment 1 [LSW2-GigabitEthernet1/0/2] quit # Configure LSW3. [LSW3] interface gigabitethernet 1/0/1...
  • Page 571 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration l Run the display sep topology command on PE1 to view the information about the topology of the SEP segment. The command output shows that the forwarding status of GE 1/0/2 on LSW3 is discarding and the forwarding status of the other interfaces is forwarding.
  • Page 572 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration <Quidway> system-view [Quidway] sysname PE4 [PE4] rrpp domain 1 [PE4-rrpp-domain-region1] control-vlan 100 [PE4-rrpp-domain-region1] protected-vlan reference-instance all Create a VLAN and add interfaces on the ring network to the VLAN.
  • Page 573 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [PE4-GigabitEthernet1/0/1] quit [PE4] interface gigabitethernet 1/0/2 [PE4-GigabitEthernet1/0/2] stp disable [PE4-GigabitEthernet1/0/2] port link-type trunk [PE4-GigabitEthernet1/0/2] port trunk allow-pass vlan 100 [PE4-GigabitEthernet1/0/2] quit Configure PE1 as the master node and PE2 to PE4 as the transmit node of the major ring, and configure the primary interface and secondary interface of the nodes.
  • Page 574 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration You can view that RRPP is enabled on PE1. In domain 1, VLAN 5 is the major control VLAN, VLAN 6 is the sub-control VLAN, Instance1 is the protected VLAN, and PE1 is the master node in major ring 1 with the primary interface and secondary interface respectively as GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3.
  • Page 575 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration sep segment 1 interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 10 100 stp disable sep segment 1 return Configuration file of LSW2 sysname LSW2 vlan batch 10 100...
  • Page 576 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration port trunk allow-pass vlan 100 return Configuration file of PE1 sysname PE1 vlan batch 5 to 6 100 rrpp enable stp region-configuration instance 1 vlan 5 to 6 100...
  • Page 577 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration ring 1 enable sep segment 1 control-vlan 10 tc-notify rrpp protected-instance 0 to 48 interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 100 stp disable sep segment 1 edge secondary...
  • Page 578: Example For Configuring Sep Multi-Instance

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration return Configuration file of PE4 sysname PE4 vlan batch 5 to 6 100 200 rrpp enable stp region-configuration instance 1 vlan 5 to 6 100 active region-configuration rrpp domain 1...
  • Page 579 The path where the secondary edge interface is located is idle, which leads to a waste of bandwidth. To solve the problem of bandwidth waste and to implement traffic load balancing, Huawei develops SEP multi-instance. Figure 10-15 Networking diagram for configuring SEP multi-instance on a closed ring network...
  • Page 580 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration Configuration Roadmap The configuration roadmap is as follows: Create two SEP segments and one control VLAN on LSW1 to LSW4. Different SEP segments can use the same control VLAN.
  • Page 581 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [LSW4-sep-segment1] control-vlan 10 [LSW4-sep-segment1] quit l Configure a SEP segment with the ID of 2 and a control VLAN with the ID of 10. # Configure LSW1. [LSW1] sep segment 2...
  • Page 582 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration [LSW1-GigabitEthernet1/0/3] stp disable [LSW1-GigabitEthernet1/0/3] sep segment 1 edge secondary [LSW1-GigabitEthernet1/0/3] sep segment 2 edge secondary [LSW1-GigabitEthernet1/0/3] quit # Configure LSW2. [LSW2] interface gigabitethernet 1/0/1 [LSW2-GigabitEthernet1/0/1] stp disable [LSW2-GigabitEthernet1/0/1] sep segment 1...
  • Page 583 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration The configuration details are not provided here. For details, see configuration files in this example. Step 6 Verify the configuration. Simulate a fault, and then check whether the status of the blocked interface changes from blocked to forwarding.
  • Page 584 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration return Configuration file of LSW2 sysname LSW2 vlan batch 10 100 to 500 stp region-configuration instance 1 vlan 100 to 300 instance 2 vlan 301 to 500 active region-configuration...
  • Page 585 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 10 SEP Configuration return Configuration file of LSW4 sysname LSW4 vlan batch 10 60 100 to 500 stp region-configuration instance 1 vlan 100 to 300 instance 2 vlan 301 to 500...
  • Page 586: Layer 2 Protocol Transparent Transmission Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Layer 2 Protocol Transparent Transmission Configuration About This Chapter This chapter describes the concept, configuration procedure, and configuration examples of Layer 2 protocol transparent transmission.
  • Page 587 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration This section provides examples for configuring interface, VLAN, and QinQ based Layer 2 protocol transparent transmission. Issue 01 (2011-07-15) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 588: Overview Of Layer 2 Protocol Transparent Transmission

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration 11.1 Overview of Layer 2 Protocol Transparent Transmission This section describes the concept of Layer 2 protocol transparent transmission. Background In certain network environments, packets of Layer 2 protocols such as MSTP, HGMP, and LACP need to be transmitted between user networks across the backbone network to complete calculation of the protocols.
  • Page 589: Layer 2 Protocol Transparent Transmission Features Supported By The S7700

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Each site on a user network can receive Layer 2 protocol packets from other sites. Layer 2 protocol packets sent from a user network are not processed by CPUs of devices on the backbone network.
  • Page 590 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Interface-based Layer 2 Protocol Transparent Transmission Figure 11-2 Networking of interface-based Layer 2 protocol transparent transmission Port based Port based VLAN 200 VLAN 200...
  • Page 591 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration The egress device on the backbone network forwards the packets to user networks without modifying the packets. NOTE l This method is applicable only to STP, RSTP, and MSTP. To configure a device as the provider, run the bpdu-tunnel stp bridge role provider command.
  • Page 592 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration A PE generally functions as an aggregation device. As shown in Figure 11-3, the aggregation interface on PE1 can receive BPDUs from LAN-A and LAN-B. To differentiate BPDUs from the two LANs, BPDUs sent from CEs to PEs must have VLAN tags.
  • Page 593 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Internal nodes on the backbone network forward the packets across the backbone network as common Layer 2 packets. The egress device of the backbone network restores the original destination MAC address of the packets according to the mappings between multicast destination MAC addresses and Layer 2 protocols, and then forwards the packets to user networks.
  • Page 594 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Figure 11-5 Networking of QinQ-based Layer 2 protocol transparent transmission LAN-B LAN-B MSTP MSTP PE-VLAN20:CE-VLAN 100~199 PE 2 PE 1 ISP Network BPDU Tunnel...
  • Page 595: Configuring Interface-Based Layer 2 Protocol Transparent Transmission

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration way, Layer 2 protocol packets of different user networks can be transparently transmitted on the backbone network, and VLAN IDs of the carrier are saved.
  • Page 596: Configuring The Transparent Transmission Mode Of Layer 2 Protocol Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Context When non-standard Layer 2 protocol packets with a certain multicast destination address need to be transparently transmitted on the backbone network, you can define characteristic information about the Layer 2 protocol.
  • Page 597: Enabling Layer 2 Protocol Transparent Transmission On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration The system view is displayed. Run: bpdu-tunnel stp bridge role provider The PE is configured as a provider. NOTE l This method is applicable only to STP, RSTP, and MSTP.
  • Page 598: Checking Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration The default VLAN of the interface is configured. Step 4 Run: port hybrid untagged vlan vlan-id The interface is added to the default VLAN in untagged mode.
  • Page 599: Establishing The Configuration Task

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration VLAN-based Layer 2 protocol transparent transmission so that Layer 2 protocol packets are transparently transmitted on the backbone network. 11.4.1 Establishing the Configuration Task...
  • Page 600: Configuring The Transparent Transmission Mode Of Layer 2 Protocol Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration The system view is displayed. Step 2 Run: l2protocol-tunnel user-defined-protocol protocol-name protocol-mac protocol-mac [ encape-type { { ethernetii | snap } protocol-type protocol-type | llc dsap dsap-...
  • Page 601: Enabling Vlan-Based Layer 2 Protocol Transparent Transmission On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration The system view is displayed. Run: l2protocol-tunnel protocol-type group-mac group-mac The original multicast destination MAC address of Layer 2 protocol packets is replaced with a specified multicast MAC address.
  • Page 602: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration NOTE l For details on how to add an interface to VLANs in tagged mode, see the VLAN configuration in the S7700 Configuration Guide- Ethernet.
  • Page 603: Optional) Defining Characteristic Information About A Layer 2 Protocol

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Connecting interfaces correctly Data Preparation To configure QinQ-based Layer 2 protocol transparent transmission, you need the following data. Data Name of the user-defined protocol...
  • Page 604: Configuring The Transparent Transmission Mode Of Layer 2 Protocol Packets

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration l Common multicast MAC addresses that have been used on the device ----End 11.5.3 Configuring the Transparent Transmission Mode of Layer 2 Protocol Packets...
  • Page 605: Enabling Qinq-Based Layer 2 Transparent Transmission On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration 11.5.4 Enabling QinQ-based Layer 2 Transparent Transmission on an Interface Context Do as follows on PEs according to the type of Layer 2 protocol packets to be transparently transmitted.
  • Page 606: Maintaining Layer 2 Protocol Transparent Transmission

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Procedure Run the display l2protocol-tunnel group-mac { all | protocol-type | user-defined- protocol protocol-name } command to check information about transparent transmission of specified or all Layer 2 protocol packets.
  • Page 607 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration In this example, PEs on the backbone network transparently transmit STP packets sent from CEs by replacing the original multicast destination MAC address of STP packets with a specified MAC address.
  • Page 608 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration [CE1] vlan 100 [CE1-vlan100] quit [CE1] stp enable [CE1] interface gigabitethernet 1/0/0 [CE1-GigabitEthernet1/0/0] port hybrid pvid vlan 100 [CE1-GigabitEthernet1/0/0] port hybrid untagged vlan 100 # Configure CE2.
  • Page 609 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration [PE1-GigabitEthernet1/0/1] l2protocol-tunnel stp enable [PE1-GigabitEthernet1/0/1] quit # Configure PE2. [PE2] vlan 100 [PE2-vlan100] quit [PE2] interface GigabitEthernet 1/0/0 [PE2-GigabitEthernet1/0/0] port hybrid pvid vlan 100...
  • Page 610 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration CIST RegRoot/IRPC :32768.00e0-fc9f-3257 / 0 CIST RootPortId :128.82 BPDU-Protection :disabled TC or TCN received TC count per hello STP Converge Mode :Normal Share region-configuration :enabled...
  • Page 611 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration CIST Root/ERPC :32768.000b-0952-f13e / 199999 CIST RegRoot/IRPC :32768.000b-0967-58a0 / 0 CIST RootPortId :128.82 BPDU-Protection :disabled TC or TCN received TC count per hello STP Converge Mode...
  • Page 612 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration vlan batch 100 interface GigabitEthernet1/0/0 port hybrid pvid vlan 100 port hybrid untagged vlan 100 return Configuration file of CE2 sysname CE2 vlan batch 100...
  • Page 613: Example For Configuring Vlan-Based Layer 2 Protocol Transparent Transmission

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration sysname PE2 vlan batch 100 200 l2protocol-tunnel stp group-mac 0100-5e00-0011 interface GigabitEthernet1/0/0 port hybrid pvid vlan 100 port hybrid untagged vlan 100 l2protocol-tunnel stp enable...
  • Page 614 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Configuration Roadmap The configuration roadmap is as follows: Enable STP on the CEs. Configure CEs to send STP packets with specified VLAN tags to PEs.
  • Page 615 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration [CE3] interface gigabitethernet 1/0/0 [CE3-GigabitEthernet1/0/0] port hybrid tagged vlan 200 [CE3-GigabitEthernet1/0/0] stp bpdu vlan 200 # Configure CE4. [CE4] vlan 200 [CE4-vlan200] quit [CE4] interface gigabitethernet 1/0/0...
  • Page 616 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration [P] interface gigabitethernet 1/0/1 [P-GigabitEthernet1/0/1] port hybrid tagged vlan 100 200 [P-GigabitEthernet1/0/1] quit Step 6 Verify the configuration. After the configuration, run the display l2protocol-tunnel group-mac command. You can view the protocol type or name, original destination MAC address, new destination MAC address, and priority of Layer 2 protocol packets to be transparently transmitted.
  • Page 617 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Port Protocol :enabled Port Role :Designated Port Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=200000000 Desg. Bridge/Port :32768.000b-09d4-b66c / 128.82 Port Edged :Config=disabled / Active=disabled...
  • Page 618 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Port Protocol :enabled Port Role :Designated Port Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=200000000 Desg. Bridge/Port :32768.00e0-fc9a-4315 / 128.82 Port Edged :Config=disabled / Active=disabled...
  • Page 619: Example For Configuring Qinq-Based Layer 2 Protocol Transparent Transmission

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration stp bpdu vlan 200 Return Configuration file of PE1 sysname PE1 vlan batch 100 200 l2protocol-tunnel stp group-mac 0100-5e00-0011 interface GigabitEthernet1/0/0 port hybrid tagged vlan 100 200...
  • Page 620 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Networking Requirements As shown in Figure 11-8, CEs on user networks communicate with each other through PEs. STP runs on user networks. CE1 and CE2 send STP packets with VLAN tag 100 to PEs; CE3 and CE4 send STP packets with VLAN tag 200 to PEs.
  • Page 621 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration Outer VLAN tag that PEs add to STP packets IDs of the VLANs that interfaces of PEs and CEs belong to Procedure Step 1 Enable STP on CEs and PEs.
  • Page 622 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration [PE1] vlan 10 [PE1-Vlan10] quit [PE1] interface gigabitethernet 1/0/0 [PE1-GigabitEthernet1/0/0] port hybrid tagged vlan 10 [PE1-GigabitEthernet1/0/0] quit [PE1] interface gigabitethernet 1/0/1 [PE1-GigabitEthernet1/0/1] port hybrid untagged vlan 10...
  • Page 623 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration CIST RootPortId :128.82 BPDU-Protection :disabled TC or TCN received TC count per hello STP Converge Mode :Normal Share region-configuration :enabled Time since last TC received :0 days 3h:53m:43s...
  • Page 624 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration CIST RegRoot/IRPC :32768.00e0-fc9f-3257 / 0 CIST RootPortId :128.82 BPDU-Protection :disabled TC or TCN received TC count per hello STP Converge Mode :Normal Time since last TC received :0 days 3h:57m:0s...
  • Page 625 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration MAC learning : Enable Statistics : Disable ---------------- Tagged Port: GigabitEthernet1/0/0 ---------------- QinQ-stack Port: GigabitEthernet1/0/1 GigabitEthernet1/0/2 ----End Configuration Files Configuration file of CE1 sysname CE1...
  • Page 626 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 11 Layer 2 Protocol Transparent Transmission Configuration port hybrid tagged vlan 10 interface GigabitEthernet1/0/1 port hybrid untagged vlan 10 port vlan-stacking vlan 100 stack-vlan 10 l2protocol-tunnel stp vlan 10 interface GigabitEthernet1/0/2...
  • Page 627: Hvrp Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration HVRP Configuration About This Chapter This chapter describes the principle, configuration procedure, and configuration examples of HVRP. 12.1 HVRP Overview This section describes the principle of the Hierarchy VLAN Register Protocol (HVRP).
  • Page 628: Hvrp Overview

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration 12.1 HVRP Overview This section describes the principle of the Hierarchy VLAN Register Protocol (HVRP). Background of HVRP When constructing a metropolitan area network (MAN), carriers usually adopt the ring topology or tree topology.
  • Page 629: Hvrp Features Supported By The S7700

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration Aging timer of registered VLANs The aging timer of registered VLAN specifies the aging time of registered VLANs. If the HVRP designated interface does not receive the registration packet of a VLAN within the aging time, the VLAN is aged on the HVRP designated interface.
  • Page 630 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration The HVRP application involves the following operations: Registering VLANs l Each Switch periodically sends the local VLAN information through the HVRP root interface. l Each Switch forwards the received local VLAN information through the HVRP root interface.
  • Page 631 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration Network Topology Supported by HVRP Figure 12-2 Networking diagram of a single-ring network supported by HVRP ME60 SwitchA SwitchB SwitchC SwitchE SwitchD The single-ring network supported by HVRP has the following characteristics: STP is enabled on the entire network.
  • Page 632: Enabling Hvrp

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration Figure 12-3 Networking diagram of a multi-ring network supported by HVRP ME60 SwitchA …… SwitchB SwitchC SwitchN SwitchN+1 The multi-ring network supported by HVRP has the following characteristics: MSTP is enabled on the entire network.
  • Page 633 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration Figure 12-4 Networking diagram of HVRP application ME60 VLAN:101-500 VLAN:301-400 VLAN:401-500 SwitchA SwitchC SwitchB SwitchD SwitchE VLAN:101-200 VLAN:201-300 Pre-configuration Tasks Before enabling HVRP, complete the following tasks: Configuring the interfaces where HVRP needs to be enabled as trunk interfaces...
  • Page 634: Enabling Hvrp Globally

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration 12.3.2 Enabling HVRP Globally Context Do as follows on the S7700 where HVRP needs to be enabled globally. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 635: Optional) Setting The Vlan Registration Timer

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration NOTE l HVRP can be enabled only on trunk interfaces. l When you configure HVRP attributes, it is recommended that you delete the default VLAN (VLAN 1) from the interface.
  • Page 636: Optional) Configuring Permanent Vlans

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration The aging time of registered VLANs is set. By default, the aging time of registered VLANs is 15 seconds. NOTE The value of the VLAN registration timer must be smaller than the aging time of registered VLANs. It is recommended that the aging time of registered VLANs be three times the value of the VLAN registration timer or larger.
  • Page 637: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration By default, only local VLANs are aged. On a network with one or more rings, you can enable the S7700 to age all the VLANs or only the local VLANs.
  • Page 638: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration Procedure Run the debugging hvrp error command to enable the debugging of HVRP errors. Run the debugging hvrp info command to enable the debugging of HVRP-enabled VLANs. ----End 12.5 Configuration Examples...
  • Page 639 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration Configuration Roadmap The configuration roadmap is as follows: Enable STP globally. Then SwitchA, which is connected to a Layer 3 device, becomes the root bridge. The link between SwitchD and SwitchE is blocked by STP.
  • Page 640 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 12 HVRP Configuration HVRP registervlan timer :5s. HVRP registervlan age timer :15s. HVRP age all VLAN :Disabled. HVRP Permanent-vlan : HVRP statistics on port GigabitEthernet1/0/0 (PORT_LINK_UP) Mstp Role 0 - designated...
  • Page 641: Loop Detection Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration Loop Detection Configuration About This Chapter This chapter describes the concepts, configuration procedures, and configuration examples of loop detection. 13.1 Introduction to Loop Detection This section describes the concept of loop detection.
  • Page 642: Introduction To Loop Detection

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration 13.1 Introduction to Loop Detection This section describes the concept of loop detection. After the loop detection function is configured on an interface, the interface sends loop detection packets to detect loops in the local VLAN.
  • Page 643: Enabling Loop Detection Globally

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration Pre-configuration Tasks Loop detection and STP are mutual exclusive. To enable loop detection on an interface, you need to disable STP first. Data Preparation To configure loop detection, you need the following data.
  • Page 644: Enabling Loop Detection Control On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration Step 2 Run: loop-detection enable vlan { { vlan-id1 [ to vlan-id2 ] } & <1-10> | all } Loop detection is enabled in a VLAN. By default, loop detection is disabled in all VLANs.
  • Page 645: Optional) Disabling Loop Detection On An Interface

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration 13.2.5 (Optional) Disabling Loop Detection on an Interface Context Do as follows on the S7700. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed.
  • Page 646: Checking The Configuration

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface { ethernet | gigabitethernet } interface-number The interface view is displayed. Step 3 Run: loop-detection recovery-time recovery-time The recovery time of the blocked interface is set.
  • Page 647: Configuration Examples

    Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration ----------------------------------------------------------------------- Normal Shutdown 13.3 Configuration Examples This section provides an example for configuring the loop detection function. 13.3.1 Example for Configuring Loop Detection Networking Requirements As shown in...
  • Page 648 Quidway S7700 Smart Routing Switch Configuration Guide - Ethernet 13 Loop Detection Configuration Number of the interface where loop detection control is enabled Procedure Step 1 Enable loop detection globally. <Quidway> system-view [Quidway] loop-detection enable Step 2 Enable loop detection in a VLAN.

This manual is also suitable for:

Quidway s9300

Table of Contents