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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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>...
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.
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.
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.
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.
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;...
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:...
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...
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.
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...
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.
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.
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.
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.
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.
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.
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.
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.
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 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 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...
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.
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.
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...
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...
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...
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.
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.
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.
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.
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.
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.
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.
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.
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.
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...
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,...
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.
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-...
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.
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...
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.
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.
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.
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.
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.
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.
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.
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...
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...
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.
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.
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.
----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.
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.
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.
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 (*).
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...
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.
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.
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.
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...
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.
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.
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)
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...
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.
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.
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.
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 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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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...
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.
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 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.
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...
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.
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.
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.
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;...
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.
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.
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.
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.
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.
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.
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...
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...
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.
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.
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.
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.
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.
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...
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...
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:...
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.
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.
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.
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.
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.
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.
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...
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.
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...
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 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...
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...
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 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 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 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 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...
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 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 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 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 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...
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 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 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...
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 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 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 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 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 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:...
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.
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...
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...
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.
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.
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.
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.
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...
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.
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.
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.
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.
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.
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...
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.
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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
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.
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...
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.
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.
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...
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.
# 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.
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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
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...
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...
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.
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...
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.
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.
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.
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...
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.
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...
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 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 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.
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.
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 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.
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.
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.
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...
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...
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.
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.
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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
----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.
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 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 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.
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...
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...
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.
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.
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.
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...
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.
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.
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.
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.
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.
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...
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...
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.
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...
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),...
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.
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.
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.
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 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 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 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 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 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 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 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 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 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 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...
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.
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.
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.
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.
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.
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.
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.
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.
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...
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...
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.
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 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 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 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.
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).
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.
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.
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...
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.
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.
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.
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.
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...
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.
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.
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.
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.
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.