Huawei Quidway S9300 Configuration Manual

Huawei Quidway S9300 Configuration Manual

Terabit routing switch
Table of Contents

Advertisement

Quidway S9300 Terabit Routing Switch
V100R001C02
Configuration Guide - Ethernet
Issue
03
Date
2009-08-20
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei Quidway S9300

  • Page 1 Quidway S9300 Terabit Routing Switch V100R001C02 Configuration Guide - Ethernet Issue Date 2009-08-20 Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 2 Huawei Technologies Co., Ltd. provides customers with comprehensive technical support and service. For any assistance, please contact our local office or company headquarters. Huawei Technologies Co., Ltd. Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com...
  • Page 3: Table Of Contents

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet Contents Contents About This Document........................1 1 Ethernet Interface Configuration....................1-1 1.1 Introduction to Ethernet Interfaces........................1-2 1.2 Ethernet Interface Features Supported by the S9300..................1-2 1.3 Configuring Basic Attributes of the Ethernet Interface...................1-3 1.3.1 Establishing the Configuration Task......................1-3 1.3.2 (Optional) Configuring the Description....................1-4...
  • Page 4 Quidway S9300 Terabit Routing Switch Contents Configuration Guide - Ethernet 2.3.2 Creating an Eth-Trunk..........................2-4 2.3.3 Configuring the Eth-Trunk to Work in Manual Load Balancing Mode..........2-5 2.3.4 Adding Member Interfaces to an Eth-Trunk..................2-5 2.3.5 (Optional) Configuring the Load Balancing Mode................2-6 2.3.6 Checking the Configuration........................2-7 2.4 Configuring Enhanced Link Aggregation in Manual Load Balancing Mode..........2-8...
  • Page 5 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet Contents 3.4.5 Adding a QinQ Interface to a VLAN....................3-12 3.4.6 (Optional) Specifying the Default VLAN of a Trunk Interface............3-13 3.4.7 (Optional) Specifying the Default VLAN of a Hybrid Interface............3-14 3.4.8 Checking the Configuration.........................3-14 3.5 Configuring a VLANIF Interface........................3-15...
  • Page 6 Quidway S9300 Terabit Routing Switch Contents Configuration Guide - Ethernet 4.4 Configuring VLAN Mapping of Double VLAN Tags..................4-4 4.4.1 Establishing the Configuration Task......................4-4 4.4.2 Replacing the Outer VLAN Tag......................4-5 4.4.3 Replacing the Double VLAN Tags......................4-6 4.4.4 Checking the Configuration........................4-6 4.5 Configuring Flow-based VLAN Mapping......................4-7...
  • Page 7 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet Contents 5.7 Configuration Examples..........................5-13 5.7.1 Example for Configuring QinQ on Interfaces..................5-13 5.7.2 Example for Configuring Selective QinQ....................5-16 5.7.3 Example for Configuring Flow-based Selective QinQ................5-20 6 MAC Address Table Configuration..................6-1 6.1 Introduction to the MAC Address Table......................6-2 6.2 MAC Address Table Features Supported by the S9300.................6-2...
  • Page 8 Quidway S9300 Terabit Routing Switch Contents Configuration Guide - Ethernet 7.5.3 Enabling Intra-VLAN Proxy ARP.......................7-10 7.5.4 Checking the Configuration.........................7-10 7.6 Configuring Inter-VLAN Proxy ARP......................7-11 7.6.1 Establishing the Configuration Task....................7-11 7.6.2 Assigning an IP Address to an Interface....................7-12 7.6.3 Enabling Inter-VLAN Proxy ARP.......................7-12 7.6.4 Checking the Configuration.........................7-13...
  • Page 9 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet Contents 8.5.3 Configuring Root Protection on an Interface..................8-23 8.5.4 Configuring Loop Protection on the S9300..................8-23 8.5.5 Configuring TC Packet Suppression on the S9300................8-24 8.5.6 Checking the Configuration.........................8-25 8.6 Maintaining MSTP............................8-25 8.6.1 Clearing MSTP Statistics........................8-26 8.6.2 Debugging MSTP..........................8-26...
  • Page 10 Quidway S9300 Terabit Routing Switch Contents Configuration Guide - Ethernet 10.2.2 Enabling LDT Globally........................10-3 10.2.3 Enabling LDT in a VLAN........................10-3 10.2.4 Enabling LDT Control on an Interface....................10-4 10.2.5 (Optional) Disable LDT on an Interface....................10-4 10.2.6 (Optional) Setting the LDT Interval on an Interface................10-5 10.2.7 (Optional) Setting the Recovery Time of a Blocked Interface............10-5...
  • Page 11 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet Figures Figures Figure 1-1 Networking diagram for configuring port security protection............1-15 Figure 2-1 Determining the active links in static LACP mode................2-3 Figure 2-2 Networking diagram for configuring link aggregation in load balancing mode........2-4 Figure 2-3 Networking diagram for configuring enhanced link aggregation in manual load balancing mode ....................................2-8...
  • Page 12 Quidway S9300 Terabit Routing Switch Figures Configuration Guide - Ethernet Figure 8-7 Networking diagram for configuring basic MSTP functions............8-27 Figure 9-1 Format of BPDUs..........................9-2 Figure 9-2 Transparent transmission of BPDUs on the ISP network..............9-3 Figure 9-3 Networking of port-based BPDU tunnels...................9-4 Figure 9-4 Networking of VLAN-based BPDU tunnels..................9-5...
  • Page 13 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet Tables Tables Table 1-1 Attributes of Ethernet interfaces......................1-2 Table 3-1 Processing of packets on different ports....................3-3 Table 9-1 Description of fields in BPDUs......................9-3 Issue 03 (2009-08-20) Huawei Proprietary and Confidential...
  • Page 15: About This Document

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet About This Document About This Document Purpose This document describes the configuration of Ethernet services on the S9300, including the configurations of Ethernet interfaces, link aggregation, VLAN, VLAN mapping, QinQ, MAC address table, ARP, MSTP, BPDU tunnel, and LDT.
  • Page 16: Symbol Conventions

    Quidway S9300 Terabit Routing Switch About This Document Configuration Guide - Ethernet Chapter Description 1 Ethernet Interface Describes the basic knowledge, methods, and examples for Configuration configuring the Ethernet interface. 2 Link Aggregation Describes the basic knowledge, methods, and examples for Configuration configuring link aggregation.
  • Page 17: General Conventions

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet About This Document Symbol Description Indicates a potentially hazardous situation, which if not avoided, could result in equipment damage, data loss, CAUTION performance degradation, or unexpected results. Indicates a tip that may help you solve a problem or save time.
  • Page 18: Keyboard Operation

    Quidway S9300 Terabit Routing Switch About This Document Configuration Guide - Ethernet Convention Description &<1-n> The parameter before the & sign can be repeated 1 to n times. A line starting with the # sign is comments. GUI Conventions The GUI conventions that may be found in this document are defined as follows.
  • Page 19 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet About This Document Update History Updates between document versions are cumulative. Therefore, the latest document version contains all updates made to previous issues. Updates in Issue 03 (2009-08-20) The third commercial release has the following updates: Some sections are modified.
  • Page 21: Ethernet Interface Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Ethernet Interface Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring the Ethernet interface. 1.1 Introduction to Ethernet Interfaces This section describes the Ethernet interfaces.
  • Page 22: Introduction To Ethernet Interfaces

    Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet 1.1 Introduction to Ethernet Interfaces This section describes the Ethernet interfaces. The Ethernet is flexible, simple, and easy to implement and thus it becomes an important local area network (LAN) networking technology.
  • Page 23: Configuring Basic Attributes Of The Ethernet Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Port Security Protection The port security protection function records the MAC address of the host connected to a port of the S9300, that is, the network adapter ID of the host. Only the host with the specified MAC address can communicate with this port.
  • Page 24: Optional) Configuring The Description

    The interface view is displayed. Step 3 Run: description description The description of the interface is configured. By default, the description of an interface is "HUAWEI, Quidway Series, X interface". X specifies an interface. ----End 1.3.3 (Optional) Setting the Cable Type Context Do as follows on the S9300 where you need to set the cable type of interfaces.
  • Page 25: Optional) Setting The Duplex Mode

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Step 2 Run: interface interface-type interface-number The Ethernet electrical interface view is displayed. Step 3 Run: mdi { across | auto | normal } The cable type is set for the Ethernet electrical interface.
  • Page 26: Optional) Switching Between Optical And Electrical Interfaces

    Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet 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: undo negotiation auto The auto-negotiation mode is disabled on the interface.
  • Page 27: Optional) Enabling Auto-Negotiation

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration By default, the optical interface is used. ----End 1.3.7 (Optional) Enabling Auto-Negotiation Context Do as follows on the S9300 where you want to enable auto-negotiation and on the switch connected to this S9300.
  • Page 28: Configuring The Advanced Attributes Of An Ethernet Interface

    Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet Speed : 1000, Loopback: NONE Duplex: FULL, Negotiation: ENABLE : NORMAL Last 300 seconds input rate 0 bits/sec, 0 packets/sec Last 300 seconds output rate 0 bits/sec, 0 packets/sec...
  • Page 29: Optional) Configuring Loopback Test On The Ethernet Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration Ports enabled with port isolation cannot communicate with each other, and thus ports on the same VLAN can be isolated. Port isolation provides secure and flexible networking schemes for customers.
  • Page 30: Optional) Configuring The Interface Group

    Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet 1.4.3 (Optional) Configuring the Interface Group Context Do as follows on the S9300 where you need to configure interface groups. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 31: Optional) Enabling Flow Control

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration 1.4.5 (Optional) Enabling Flow Control Context Do as follows on the S9300 where you need to enable flow control. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 32: Optional) Enabling The Interface Protection Function

    Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet By default, auto-negotiation of flow control is disabled on a GE interface. You also need to configure auto-negotiation of flow control on the peer interface. ----End 1.4.7 (Optional) Enabling the Interface Protection Function Context Do as follows on the S9300 where you need to enable the interface protection function.
  • Page 33: Checking The Configuration

    Quidway S9300 Terabit 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 Interface cable test is enabled. ----End 1.4.9 Checking the Configuration...
  • Page 34: Maintaining Ethernet Interfaces

    Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet <Quidway> display sticky-mac interface GigabitEthernet 2/0/0 MAC Address VLAN/VSI Port Type ---------------------------------------------------------------------- 0018-2000-0083 GigabitEthernet2/0/0 sticky mac Total 1 printed 1.5 Maintaining Ethernet Interfaces This section describes how to maintain Ethernet interfaces.
  • Page 35: Figure 1-1 Networking Diagram For Configuring Port Security Protection

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 1 Ethernet Interface Configuration to enable the sticky MAC function on the port connected to PCs of employees and set the maximum number of MAC addresses learned by the port to the number of trusted PCs.
  • Page 36 Quidway S9300 Terabit Routing Switch 1 Ethernet Interface Configuration Configuration Guide - Ethernet [Quidway-GigabitEthernet1/0/1] port-security protect-action protect # Set the maximum number of MAC addresses that the port can learn. [Quidway-GigabitEthernet1/0/1] port-security maximum 4 # Enable the sticky MAC function on the port.
  • Page 37: Link Aggregation Configuration

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

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

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Active Interface and Inactive Interface Active interfaces refer to the interfaces that are in active state and are responsible for forwarding data. The interfaces that do not forward data and are in inactive state are called inactive interfaces.
  • Page 40: Creating An Eth-Trunk

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet 2.3.5 (Optional) Configuring the Load Balancing Mode 2.3.6 Checking the Configuration 2.3.1 Establishing the Configuration Task Applicable Environment When the bandwidth or the reliability of two devices should be increased and either of the two...
  • Page 41: Configuring The Eth-Trunk To Work In Manual Load Balancing Mode

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Step 2 Run: interface eth-trunk trunk-id An Eth-Trunk is created. ----End 2.3.3 Configuring the Eth-Trunk to Work in Manual Load Balancing Mode Context NOTE Check whether the Eth-Trunk contains member interfaces before you configure the operation mode of the Eth-Trunk.
  • Page 42: Optional) Configuring The Load Balancing Mode

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet Run: system-view The system view is displayed. Run: interface eth-trunk trunk-id The Eth-Trunk interface view is displayed. Run: trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-8>...
  • Page 43: Checking The Configuration

    Quidway S9300 Terabit 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: load-balance { dip | dmac | sip | sipxordip | smac | smacxordmac | enhanced profile profile-name } The load balancing mode is configured for the Eth-Trunk.
  • Page 44: Configuring Enhanced Link Aggregation In Manual Load Balancing Mode

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet <Quidway> display eth-trunk 50 Eth-Trunk50's state information is: WorkingMode: NORMAL Hash arithmetic: According to SA-XOR-DA Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: down Number Of Up Port In Trunk: 0...
  • Page 45: Configuring A Profile Of Enhanced Eth-Trunks In Manual Load Balancing Mode

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Powering on the S9300s Creating an Eth-Trunk Data Preparation To configure an enhanced Eth-Trunk in manual load balancing mode, you need the following data. Data Number of the enhanced Eth-Trunk in manual load balancing mode Type and number of each member interface 2.4.2 Configuring a Profile of Enhanced Eth-Trunks in Manual Load...
  • Page 46: Configuring An Enhanced Eth-Trunk In Manual Load Balancing Mode

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet The load balancing mode of MPLS packets is specified in the profile. By default, load balancing of MPLS packets is based on the two outmost labels ( top-label and 2nd-label) of each packet.
  • Page 47: Configuring Link Aggregation In Static Lacp Mode

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration GigabitEthernet4/0/6 Down GigabitEthernet4/0/7 Down GigabitEthernet4/0/8 Down GigabitEthernet4/0/9 Down By running the display load-balance-profile profile-name command, you can view the details of a profile of enhanced Eth-Trunks in manual load balancing mode.
  • Page 48: Configuring The Eth-Trunk To Work In Static Lacp Mode

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet Pre-configuration Tasks Before configuring an Eth-Trunk in static LACP mode, complete the following tasks: Powering on the S9300 Creating the Eth-Trunks Data Preparation To configure basic functions of link aggregation in static LACP mode, you need the following data.
  • Page 49: Adding Member Interfaces To An Eth-Trunk

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration If the local device is configured with an Eth-Trunk of static LACP mode, you must configure the Eth-Trunk of static LACP mode on the peer device. ----End 2.5.3 Adding Member Interfaces to an Eth-Trunk...
  • Page 50: Optional) Setting The Lacp Priority Of The System

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet Ethernet interfaces on different LPUs can be added to the same Eth-Trunk. – The peer interface directly connected to the Eth-Trunk on the local end must also be –...
  • Page 51: Optional) Setting The Lacp Priority Of The Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration By default, the upper threshold of the number of active interfaces is 8. In static LACP mode, you can limit the maximum number (M) of active interfaces in the Eth-Trunk by setting the upper threshold.
  • Page 52: Optional) Enabling Lacp Preemption And Setting The Delay For Lacp Preemption

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet interface interface-type interface-number The interface view is displayed. Step 3 Run: lacp priority priority The interface LACP priority of the S9300 is set. By default, the interface LACP priority is 32768.
  • Page 53: Optional) Setting The Timeout Interval For Receiving Lacp Packets

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration 2.5.8 (Optional) Setting the Timeout Interval for Receiving LACP Packets Context Do as follows on the S9300 where you need to set the timeout interval for receiving LACP packets.
  • Page 54: Maintaining Link Aggregation

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet Working Mode : Static Number Of Ports in Trunk = 3 Number Of UP Ports in Trunk = 0 operate status: down Interface GigabitEthernet1/0/1, valid, selected, operate down, weight=1,...
  • Page 55: Debugging The Link Aggregation Group

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Procedure Step 1 Run the reset lacp statistics eth-trunk [ trunk-id ] command to clear statistics of received and sent LACP packets. ----End 2.6.2 Debugging the Link Aggregation Group...
  • Page 56: Configuration Examples

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet Procedure Run the display eth-trunk [ trunk-id [ interface interface-type interface-number ] ] command to display the status of the link aggregation group. Run the display lacp statistics eth-trunk [ trunk-id [ interface interface-type interface- number ] ] command to display the statistics of sent and received LACP packets.
  • Page 57 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Precautions During the configuration, pay attention to the following: The Ethernet interfaces on the two ends that form an Eth-Trunk must be directly connected. The two ends of the Eth-Trunk must contain the same number of member interfaces.
  • Page 58: Example For Configuring Link Aggregation In Static Lacp Mode

    Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet [S9300] interface eth-trunk 120 [S9300-Eth-Trunk120] port link-type trunk [S9300-Eth-Trunk120] port trunk allow-pass vlan 100 to 200 [S9300-Eth-Trunk120] quit Step 4 Verify the configuration. Run the display trunkmembership command in any view to check whether Eth-Trunk 120 is created and whether member interfaces are added.
  • Page 59: Figure 2-6 Networking Diagram For Configuring Link Aggregation In Static Lacp Mode

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration Networking Requirements To improve the bandwidth and the connection reliability, configure the link aggregation group on two directly connected S9300s, as shown in Figure 2-6. The requirements are as follows: M active links can implement load balancing.
  • Page 60 Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet <Quidway> system-view [Quidway] sysname S9300-B [S9300-B] interface eth-trunk 1 [S9300-B-Eth-Trunk1] mode lacp-static [S9300-B-Eth-Trunk1] quit Step 2 Add member interfaces to the Eth-Trunk. # Configure S9300-A. [S9300-A] interface gigabitethernet 1/0/1...
  • Page 61 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 2 Link Aggregation Configuration GigabitEthernet1/0/3 Unselect 32768 6147 2865 11100000 Partner: ------------------------------------------------------------------------------ PartnerPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet1/0/1 32768 00e0-fca6-7f85 32768 6145 2609 11111100 GigabitEthernet1/0/2 32768 00e0-fca6-7f85 32768 6146...
  • Page 62 Quidway S9300 Terabit Routing Switch 2 Link Aggregation Configuration Configuration Guide - Ethernet Configuration file of S9300-B sysname S9300-B interface Eth-Trunk1 mode lacp-static interface GigabitEthernet1/0/1 eth-trunk 1 interface GigabitEthernet1/0/2 eth-trunk 1 interface GigabitEthernet1/0/3 eth-trunk 1 return 2-26 Huawei Proprietary and Confidential Issue 03 (2009-08-20) Copyright ©...
  • Page 63: Vlan Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLAN Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring VLAN. 3.1 Introduction to VLAN This section describes the concept of the VLAN.
  • Page 64: Introduction To Vlan

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet 3.1 Introduction to VLAN This section describes the concept of the VLAN. Definition of a VLAN A local area network (LAN) can be divided into several logical LANs. Each logical LAN is a broadcast domain, which is called a virtual LAN (VLAN).
  • Page 65: Table 3-1 Processing Of Packets On Different Ports

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Table 3-1 Processing of packets on different ports Port Type For a Received Packet For a Received Packet For a Packet to Be Without a Tag with a Tag...
  • Page 66: Vlan Trunk

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet VLAN Broadcast Attribute When an interface of a VLAN receives a broadcast packet or a unicast packet whose destination MAC address does not exist in the MAC address table, this interface broadcasts this packet to other interfaces in the VLAN.
  • Page 67: Creating Vlans

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration MUX VLAN A MUX VLAN is used to isolate Layer 2 traffic between the interfaces of a VLAN. For example, on an intranet, a user interface can communicate with a server interface, but the user interfaces cannot communicate with each other.
  • Page 68: Creating A Vlan

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Data Preparation To create a VLAN, you need the following data. Data VLAN ID 3.3.2 Creating a VLAN Context Do as follows on the S9300 that need to be configured with VLANs.
  • Page 69: Optional) Enabling Traffic Statistic In A Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration VLANs are created in a batch. ----End 3.3.4 (Optional) Enabling Traffic Statistic in a VLAN Context Do as follows on the S9300 configured with VLANs. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 70: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet 3.3.6 Checking the Configuration Procedure Step 1 Run the display vlan [ vlan-id [ verbose ] ] command to display basic information about a VLAN. ----End Example By running the display vlan command, you can display the created VLANs.
  • Page 71: Adding Interfaces To A Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.4 Adding Interfaces to a VLAN This section describes how to add an access interface, a QinQ interface, a hybrid interface, or a trunk interface to a VLAN.
  • Page 72 Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Context You can add an access interface to the VLAN. Procedure Adding an access interface to a VLAN in the VLAN view Run: system-view The system view is displayed.
  • Page 73: Adding A Trunk Interface To A Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration By default, VLAN 1 is the default VLAN for all interfaces. ----End 3.4.3 Adding a Trunk Interface to a VLAN Context Do as follows on the S9300 on which interfaces need to be added to a VLAN.
  • Page 74: Adding A Qinq Interface To A Vlan

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Step 3 Run: port link-type hybrid The link type of the interface is set to hybrid. By default, the interface type is hybrid. Step 4 Run the following commands as required: To add the hybrid interface to a VLAN or multiple VLANs in tagged mode, run port hybrid tagged vlan { vlan-id1 [ to vlan-id2 ] }&<1-10>.
  • Page 75: Optional) Specifying The Default Vlan Of A Trunk Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Adding a QinQ interface to a VLAN in the interface view Run: system-view The system view is displayed. Run: interface interface-type interface-number The interface view is displayed. Run: port link-type dot1q-tunnel The link type of the interface is set.
  • Page 76: Optional) Specifying The Default Vlan Of A Hybrid Interface

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet 3.4.7 (Optional) Specifying the Default VLAN of a Hybrid Interface Context Do as follows on the S9300 where you specify the default VLAN of a hybrid interface. Procedure...
  • Page 77: Configuring A Vlanif Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Last 300 seconds input rate 0 bits/sec, 0 packets/sec Last 300 seconds output rate 0 bits/sec, 0 packets/sec Input: 0 packets, 0 bytes Unicast: NUnicast: Discard: Error Jumbo...
  • Page 78: Creating A Vlanif Interface

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Data VLAN ID IP address of a VLANIF interface 3.5.2 Creating a VLANIF Interface Context Do as follows on the S9300 where you need to configure the VLANIF interface.
  • Page 79: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.5.4 Checking the Configuration Procedure Step 1 Run the display interface vlanif [ vlan-id ] [ | { begin | exclude | include } regular- expression ] command to display basic information about the VLANIF interface.
  • Page 80: Configuration Sub-Vlans

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Figure 3-1 Application scenario of VLAN aggregation Super VLAN4 Sub-VLAN 3 Sub-VLAN 2 When a great number of VLANs exist on the Ethernet, VLAN aggregation can simplify the configuration.
  • Page 81: Creating A Super-Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN 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 access The link type of the interface is set to access.
  • Page 82: Assigning An Ip Address To The Vlanif Interface

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet A super-VLAN and sub-VLANs must use different VLAN IDs. A supper-VLAN cannot contain any physical interfaces. Step 4 Run: access-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>...
  • Page 83: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Do as follows on the S9300 where you need to configure proxy ARP. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface vlanif vlan-id The VLANIF interface is created.
  • Page 84: Configuring Mux Vlan

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet By running the display interface vlanif command, you can see the information including the physical status, link protocol status, IP address, and mask of the VLANIF interface. The following is an example: <Quidway>...
  • Page 85: Configuring The Mux Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data VLAN ID of the subordinate group VLAN and interface numbers VLAN ID of the subordinate separate VLAN and interface numbers 3.7.2 Configuring the MUX VLAN Context Do as follows on the S9300 where you need to configure the MUX VLAN.
  • Page 86: Enabling The Mux Vlan Function On The Interface

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet NOTE vlan-id1 and vlan-id2 are integers that range from 2 to 4094. vlan-id2 must be greater than vlan-id1. Configuring the subordinate separate VLAN Run: system-view The system view is displayed.
  • Page 87: Configuring Vlan Damping

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Procedure Step 1 Run the display mux-vlan command to display information about the VLAN. ----End Example By running the display mux-vlan command, you can view the MUX VLAN. The following is an example: <Quidway>...
  • Page 88: Configuring Vlan Damping

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet 3.8.2 Configuring VLAN Damping Context Do as follows on the VLANIF interface. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface vlanif interface-number The VLANIF interface view is displayed.
  • Page 89: Maintaining The Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration 3.9 Maintaining the VLAN This section describes how to maintain a VLAN. 3.9.1 Clearing Statistics on a VLAN 3.9.1 Clearing Statistics on a VLAN Context CAUTION The statistics on a VLAN cannot be restored after you clear them. So, confirm the action before you use the command.
  • Page 90: Figure 3-2 Networking Diagram For Configuring Trunk

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Department 1 and Department 2 in VLAN 2 are isolated from Department 3 and Department 4 in VLAN 3. Department 1 and Department 2 in VLAN 2 can communicate with each other.
  • Page 91 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration [Quidway-GigabitEthernet1/0/1] port trunk allow-pass vlan 2 [Quidway-GigabitEthernet1/0/1] quit # Set the link type of GE 1/0/2 to trunk and add GE 1/0/2 to VLAN 2. [Quidway]interface gigabitethernet 1/0/2...
  • Page 92: Example For Configuring A Trunk

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet 3.10.2 Example for Configuring a Trunk Networking Requirements As shown in Figure 3-3, the DSLAM forwards packets of Internet access users to the S9300 after the users go online. The S9300 adds VLAN tags to user packets, and then relays the user packets to the BRAS.
  • Page 93 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration In this configuration example, the user-side interfaces of the S9300 are access interfaces, and the network-side interface is a trunk interface. Configuration Roadmap The configuration roadmap is as follows: Create VLANs.
  • Page 94: Example For Configuring Communication Between Vlans Through Vlanif Interfaces

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet -------------------------------------------------------------------------------- common enable enable forward forward forward default ---------------- Untagged Port: GigabitEthernet1/0/0 ---------------- Tagged Port: GigabitEthernet2/0/0 ---------------- Interface Physical GigabitEthernet1/0/0 GigabitEthernet2/0/0 # Display the configuration of VLAN 3000.
  • Page 95: Figure 3-4 Networking Diagram For Communication Between Vlans Through Vlanif Interfaces

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-4 Networking diagram for communication between VLANs through VLANIF interfaces S9300 GE1/0/1 GE0/0/1 SwitchA E0/0/1 E0/0/2 VLAN 10 VLAN 20 10.10.10.2/24 20.20.20.2/24 Configuration Roadmap The configuration roadmap is as follows: Add Ethernet interfaces to the VLAN.
  • Page 96 Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet [Quidway] interface vlanif 10 [Quidway-Vlanif10] ip address 10.10.10.1 24 [Quidway-Vlanif10] quit [Quidway] interface vlanif 20 [Quidway-Vlanif20] ip address 20.20.20.1 24 [Quidway-Vlanif20] quit Step 2 Configure SwitchA. # Create VLANs.
  • Page 97: Example For Configuring Vlan Aggregation

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration vlan batch 10 20 interface Ethernet0/0/1 port link-type access port default vlan 10 interface Ethernet0/0/2 port link-type access port default vlan 20 interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 return 3.10.4 Example for Configuring VLAN Aggregation...
  • Page 98 Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet 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. GE 3/0/0 and GE 4/0/0 belong to VLAN 3.
  • Page 99 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Step 4 Configure VLAN 4. # Configure the super-VLAN. [Quidway] vlan 4 [Quidway-vlan4] aggregate-vlan [Quidway-vlan4] access-vlan 2 to 3 # Configure the VLANIF interface. [Quidway] interface vlanif 4 [Quidway-Vlanif4] ip address 100.1.1.12 255.255.255.0...
  • Page 100: Example For Configuring The Mux Vlan

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet port default vlan 3 return 3.10.5 Example for Configuring the MUX VLAN Networking Requirements As shown in Figure 3-6, VLAN 2 is configured on GE 1/0/1 of the S9300 and VLAN 2 is set as the MUX VLAN;...
  • Page 101 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Data Preparation To complete the configuration, you need the following data: GE 1/0/1 belongs to VLAN 2. GE 1/0/2 and GE 1/0/3 belong to VLAN 3. GE 1/0/4 and GE 1/0/5 belong to VLAN 4.
  • Page 102: Example For Configuring Vlan Damping

    Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Configuration Files Configuration file of the S9300 sysname Quidway vlan batch 2 to 4 vlan 2 mux-vlan subordinate group 3 subordinate separate 4 interface gigabitethernet 1/0/1 port link-type access...
  • Page 103: Figure 3-7 Typical Networking Of Vlan Damping Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 3 VLAN Configuration Figure 3-7 Typical networking of VLAN damping configuration S9300-A S9300-B GE1/0/0 GE2/0/0 10.100.101.10/24 10.100.101.20/24 VLANIF10 10.100.100.100/24 10.100.100.111/24 10.100.100.110/24 VLAN 10 Configuration Roadmap The configuration roadmap is as follows: Create VLAN 10.
  • Page 104 Quidway S9300 Terabit Routing Switch 3 VLAN Configuration Configuration Guide - Ethernet Step 4 Verify the configuration. By running the display interface vlanif command on S9300-A, you can view the delay for VLAN damping. <A> display interface vlanif 10 Vlanif10 current state : DOWN...
  • Page 105: Vlan Mapping Configuration

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

    VLAN mapping of single tag or double tags based on the traffic policy For the commands related to VLAN mapping of single tag based on the traffic policy, see the Quidway S9300 Terabit Routing Switch Command Reference - QoS. 4.3 Configuring VLAN Mapping of Single VLAN Tag This section describes how to configure VLAN mapping.
  • Page 107: Configuring Vlan Mapping Of A Single Tag On An Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Data Preparation To configure VLAN mapping, you need the following data. Data Outer VLAN ID Local VLAN ID matching the outer VLAN ID 4.3.2 Configuring VLAN Mapping of a Single Tag on an Interface...
  • Page 108: Configuring Vlan Mapping Of Double Vlan Tags

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet 4.3.3 Checking the Configuration Procedure Run the display vlan vlan-id command to check whether the interface is added to the local VLAN. Run the display current-configuration [ | { begin | exclude | include } regular- expression ] command to display information about the VLAN mapping of single VLAN tag on the interface.
  • Page 109: Replacing The Outer Vlan Tag

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Pre-configuration Tasks Before replacing the outer VLAN tag, configure the VLAN. Before replacing the inner VLAN tag, configure the VLAN. Data Preparation To configure VLAN mapping of double VLAN tags, you need the following data.
  • Page 110: Replacing The Double Vlan Tags

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet 4.4.3 Replacing the Double VLAN Tags Context Do as follows on the S9300 where you need to replace the double VLAN tags. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 111: Configuring Flow-Based Vlan Mapping

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Example In the user view, run the display current-configuration interface command, and you can check the configuration of VLAN mapping of double tags on an interface. <Quidway> display current-configuration interface gigabitethernet 1/0/1...
  • Page 112: Replacing A Single Tag

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet 4.5.2 Replacing a Single Tag Context Do as follows as the S9300 that needs to replace a single tag of packets. Procedure Applying a traffic policy in the inbound direction of an interface...
  • Page 113 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration The interface view is displayed. 12. Run: port link-type trunk The link type of the interface is set to trunk. 13. Run: port trunk allow-pass vlan vlan-id2 The interface is added to the VLAN specified by the translated VLAN ID.
  • Page 114: Replacing Double Tags

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet quit Return to the system view. 11. Run: interface interface-type interface-number The interface view is displayed. 12. Run: traffic-policy name2 outbound The traffic policy is applied in the outbound direction of the interface.
  • Page 115 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration The S9300 is configured to replace the outer VLAN ID of the packets matching the traffic classifier with the specified VLAN ID. Run: remark cvlan-id vlan-id4 The S9300 is configured to replace the inner VLAN ID of the packets matching the traffic behavior with the specified VLAN ID.
  • Page 116: Replacing The Outer Vlan Tag

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet Run: if-match cvlan-id vlan-id4 The packet matching rule, that is, the inner VLAN IDs of packets matching the classifier, is set. Run: quit Return to the system view.
  • Page 117 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Context Do as follows as the S9300 that needs to replace the outer tags of packets. Procedure Applying a traffic policy in the inbound direction of an interface...
  • Page 118 Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet 12. Run: interface interface-type interface-number The interface view is displayed. 13. Run: port link-type trunk The link type of the interface is set to trunk. 14. Run: port trunk allow-pass vlan vlan-id3 The interface is added to the VLAN specified by the translated VLAN ID.
  • Page 119: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration A traffic policy is created and the policy view is displayed. 10. Run: classifier name2 behavior name2 The traffic classifier is bound to the traffic behavior in the traffic policy.
  • Page 120: Configuration Examples

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet return 4.6 Configuration Examples This section provides several examples of VLAN mapping configuration. 4.6.1 Example for Configuring Mapping of Single VLAN Tag 4.6.2 Example for Configuring Mapping of Double VLAN Tags 4.6.3 Example for Configuring Flow-based VLAN Mapping...
  • Page 121 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Add interfaces of 9300-A, S9300-B, S9300-C, and S9300-D to the corresponding VLANs. Configure VLAN mapping of single tag on GE 1/0/1 of S9300-A. Configure VLAN mapping of single tag on GE 2/0/2 of S9300-B.
  • Page 122 Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet [S9300-B-Gigabitethernet3/0/1] port trunk allow-pass vlan 5 [S9300-B-Gigabitethernet3/0/1] quit [S9300-B] interface gigabitethernet 3/0/2 [S9300-B-Gigabitethernet3/0/2] port link-type trunk [S9300-B-Gigabitethernet3/0/2] port trunk allow-pass vlan 5 [S9300-B-Gigabitethernet3/0/2] quit # Add GE 2/0/2 of S9300-B to VLAN 5.
  • Page 123: Example For Configuring Mapping Of Double Vlan Tags

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration vlan batch 6 interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 6 port vlan-mapping outside-vlan 10 map-vlan 6 interface GigabitEthernet3/0/1 port link-type trunk port trunk allow-pass vlan 6...
  • Page 124: Figure 4-2 Networking Diagram For Configuring Vlan Mapping Of Double Vlan Tags

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet Networking Requirements As shown in Figure 4-2, outer VLAN ID 100 and inner VLAN ID 10 are assigned to Enterprise A; outer VLAN ID 200 and inner VLAN ID 20 are assigned to Enterprise B. Hosts in Enterprise A and Enterprise B communicate through the ISP network.
  • Page 125 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration # Create VLAN 200 on S9300-B. <Quidway> system-view [Quidway] sysname S9300-B [S9300-B] vlan 200 # Create VLAN 300 on S9300-C. <Quidway> system-view [Quidway] sysname S9300-C [S9300-C] vlan 300 # Create VLAN 300 on S9300-D.
  • Page 126: Example For Configuring Flow-Based Vlan Mapping

    Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet Configuration Files Configuration file of S9300-A sysname S9300-A vlan batch 100 interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 100 port vlan-mapping outside-vlan 300 inside-vlan 30 map-outside-vlan 100 map-inside-...
  • Page 127: Figure 4-3 Networking Diagram For Configuring Flow-Based Vlan Mapping

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration Figure 4-3 Networking diagram for configuring flow-based VLAN mapping Outer: VLAN 300 Inner: VLAN 30 S9300-C S9300-D GE1/0/1 GE1/0/2 S9300-A S9300-B GE1/0/2 GE1/0/1 Enterprise A Enterprise B...
  • Page 128 Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet # Create VLAN 300 on S9300-C. <Quidway> system-view [Quidway] sysname S9300-C [S9300-C] vlan 300 # Create VLAN 300 on S9300-D. <Quidway> system-view [Quidway] sysname S9300-D [S9300-D] vlan 300 Step 2 Add interfaces to VLANs.
  • Page 129 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration # On S9300-B, configure the traffic classifier, traffic behavior, and traffic policy applied in the inbound direction. [S9300-B] traffic classifier name1 operator and [S9300-B-classifier-name1] if-match vlan-id 300...
  • Page 130 Quidway S9300 Terabit Routing Switch 4 VLAN Mapping Configuration Configuration Guide - Ethernet remark cvlan-id 10 traffic behavior name2 remark vlan-id 300 remark cvlan-id 30 traffic policy name1 classifier name1 behavior name1 traffic policy name2 classifier name2 behavior name2 interface GigabitEthernet1/0/1...
  • Page 131 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 4 VLAN Mapping Configuration interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 300 return Issue 03 (2009-08-20) Huawei Proprietary and Confidential 4-27 Copyright © Huawei Technologies Co., Ltd.
  • Page 133: Qinq Configuration

    Quidway S9300 Terabit 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 134: Concept Of Qinq

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

    Quidway S9300 Terabit 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 S9300. The inner VLAN tag of the private network is distributed for the internal network such as the intranet;...
  • Page 136: Specifying The Outer Vlan Id

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet 5.3.3 Specifying the Outer VLAN ID Context Do as follows on the S9300 to be configured with interface QinQ. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 137: Configuring Selective Qinq

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.4 Configuring Selective QinQ This section describes how to configure the interface type, the outer VLAN ID, and selective QinQ. 5.4.1 Establishing the Configuration Task 5.4.2 Setting the Link Type of an Interface 5.4.3 Adding an Outer VLAN Tag...
  • Page 138: Adding An Outer Vlan Tag

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: port link-type trunk port link-type hybrid The link type of the interface is set to hybrid or trunk.
  • Page 139: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration The interface view is displayed. Step 3 Run: port vlan-stacking outside-vlan vlan-id1 [ to vlan-id2 ] stack-vlan vlan-id3 The selective QinQ is configured. The meanings of the parameters are as follows: vlan-id1 [ to vlan-id2 ] specifies the C-VLAN ID of the VLAN to which you need to add the VLAN tag.
  • Page 140: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet 5.5.1 Establishing the Configuration Task Applicable Environment To enable users to communicate through the ISP network, the ISP devices need to add outer VLAN tags to the packets passing through the ISP network to identify the packets from different user networks.
  • Page 141: Setting The Packet Matching Rule

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration By default, the interface type is hybrid. ----End 5.5.3 Setting the Packet Matching Rule Context Do as follows on the S9300 where you need to configure selective QinQ.
  • Page 142: Configuring A Traffic Policy

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet You must specify an existing VLAN ID on the S9300 in this command. You do not need to create the VLANs specified by the original VLAN tags of received packets.
  • Page 143: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration 5.5.7 Checking the Configuration Procedure Step 1 Run the display current-configuration command to check the configuration of flow-based selective QinQ. ----End Example By running the display current-configuration command in the user view, you can view the configuration of the selective QinQ.
  • Page 144: Setting The Link Type Of An Interface

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet Data Preparation To set the protocol type in the outer VLAN tag, you need the following data. Data Interface number Protocol type in the outer VLAN tag 5.6.2 Setting the Link Type of an Interface Context Do as follows on the S9300 where you need to set the protocol type in the outer VLAN tag.
  • Page 145: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration The interface view is displayed. Step 3 Run: qinq protocol protocol-id The protocol type of the outer VLAN tag is set. The qinq protocol command cannot be used on a QinQ interface.
  • Page 146: Figure 5-1 Networking Diagram For Configuring Qinq On Interfaces

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet office locations of the two enterprises access S9300-G or S9300-F of the ISP network. The network of Enterprise 1 is divided into VLAN 2 to VLAN 1500; the network of Enterprise 2 is divided into VLAN 500 to VLAN 4094.
  • Page 147 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Procedure Step 1 Create VLANs. # Create VLAN 10 and VLAN 20 on S9300-F. <Quidway> system-view [Quidway] sysname S9300-F [S9300-F] vlan batch 10 20 # Create VLAN 20 on S9300-G.
  • Page 148: Example For Configuring Selective Qinq

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet Ping a remote host on the same VLAN in another office location of Enterprise 2 from a host of Enterprise 2. If it can ping the remote host, it indicates that hosts in different locations of Enterprise 2 can communicate with each other.
  • Page 149: Figure 5-2 Typical Networking Of Selective Qinq

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration of User 1, namely, common access users (PC1) and multicast users (TV1). Only one kind of users exist on the network of User 2, namely, VIP user (PC2), for example, Internet cafe. It is required that the common access users, the multicast users, and the VIP users be isolated from each other but each type of users can communicate remotely.
  • Page 150 Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet Procedure Step 1 Create VLANs. # On S9300-A, create VLAN 2 and VLAN 3, that is, the VLAN IDs of the outer VLAN tag to be added. <Quidway> system-view...
  • Page 151 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration # Add GE 2/0/3 of S9300-B to VLAN 2 and VLAN 3. [S9300-B] interface gigabitethernet 2/0/3 [S9300-B-GigabitEthernet2/0/3] port link-type trunk [S9300-B-GigabitEthernet2/0/3] port trunk allow-pass vlan 2 3 [S9300-B-GigabitEthernet2/0/3] quit Step 4 Verify the configuration.
  • Page 152: Example For Configuring Flow-Based Selective Qinq

    Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet The networks of User 1 and User 2 are isolated from each other. ----End Configuration Files The following lists the configuration files of the S9300. Configuration file of S9300-A...
  • Page 153: Figure 5-3 Typical Networking Of Selective Qinq

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration Figure 5-3 Typical networking of selective QinQ User 1 User 2 GE1/0/1 GE2/0/1 GE1/0/3 S9300-A GE2/0/3 S9300-B GE2/0/2 GE1/0/2 User 2 User 1 Configuration Roadmap The configuration roadmap is as follows: Create VLAN 2 and VLAN 3 on S9300-A;...
  • Page 154 Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet <Quidway> system-view [Quidway] sysname S9300-A [S9300-A] vlan batch 2 3 # On S9300-B, create VLAN 2 and VLAN 3, that is, the VLAN IDs of the outer VLAN tag to be added.
  • Page 155 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration [S9300-A] interface gigabitethernet 1/0/2 [S9300-A-GigabitEthernet1/0/2] port link-type hybrid [S9300-A-GigabitEthernet1/0/2] port hybrid untagged vlan 3 [S9300-A-GigabitEthernet1/0/2] traffic-policy name2 inbound [S9300-A-GigabitEthernet1/0/2] quit # Configure GE 2/0/1 of S9300-B. [S9300-B] interface gigabitethernet 2/0/1...
  • Page 156 Quidway S9300 Terabit Routing Switch 5 QinQ Configuration Configuration Guide - Ethernet traffic-policy name2 inbound return <S9300-B> display current-configuration interface gigabitethernet 2/0/2 interface GigabitEthernet2/0/2 port hybrid untagged vlan 2 traffic-policy name1 inbound return <S9300-B> display current-configuration interface gigabitethernet 2/0/3 interface GigabitEthernet2/0/3...
  • Page 157 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 5 QinQ Configuration port link-type trunk port trunk allow-pass vlan 2 to 3 return Configuration file of S9300-B sysname S9300-B vlan batch 2 to 3 traffic classifier name1 operator or precedence 5...
  • Page 159: Mac Address Table Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration MAC Address Table Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring the MAC address table. 6.1 Introduction to the MAC Address Table This section describes the concept of the MAC address table.
  • Page 160: Introduction To The Mac Address Table

    Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet 6.1 Introduction to the MAC Address Table This section describes the concept of the MAC address table. Each Line Processing Unit (LPU) on the S9300 has a MAC address table. The MAC address table stores the MAC addresses of other devices learned by the S9300, the VLAN IDs, and the outgoing interfaces that are used to send data.
  • Page 161: Configuring The Mac Address Table

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration 6.3 Configuring the MAC Address Table This section describes how to configure the static entries, blackhole entries, and dynamic entries of a MAC address table. 6.3.1 Establishing the Configuration Task 6.3.2 Creating a Static MAC Address Entry...
  • Page 162: Creating A Static Mac Address Entry

    Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet 6.3.2 Creating a Static MAC Address Entry Context Do as follows on the S9300 where you need to configure the MAC address entries. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 163: Optional) Setting The Aging Time Of Dynamic Mac Address Entries

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration 6.3.4 (Optional) Setting the Aging Time of Dynamic MAC Address Entries Context Do as follows on the S9300 where you need to configure the MAC address entries.
  • Page 164: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet vlan vlan-id The VLAN view is displayed. Run: mac-address learning disable The MAC address learning is disabled in the VLAN. By default, MAC address learning is enabled in a VLAN.
  • Page 165: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration 6.4.5 Checking the Configuration 6.4.1 Establishing the Configuration Task Applicable Environment This function is applicable to the network that has fixed access users but is vulnerable to the attacks from hackers, for example, users in the residential community or an intranet that lacks security management.
  • Page 166: Limiting Mac Address Learning Based On Vlans

    Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet mac-limit action { discard | forward } The action to be taken on the packets when the number of learned MAC addresses reaches the limit is set.
  • Page 167: Limiting Mac Address Learning Based On Vsis

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration By default, an alarm is generated when the packets received after the number of learned MAC addresses reaches the limit. ----End 6.4.4 Limiting MAC Address Learning Based on VSIs Context Do as follows on the S9300 where you need to limit MAC address learning.
  • Page 168: Maintaining The Mac Address Table

    Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet Procedure Step 1 Run the display mac-limit [ interface-type interface-number [ vlan vlan-id ] | vlan vlan-id | [ vsi vsi-name ] ] command to display the rule of limiting MAC address learning.
  • Page 169: Example For Configuring The Mac Address Table

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration 6.6.1 Example for Configuring the MAC Address Table 6.6.2 Example for Configuring the Limitation on MAC Address Learning Based on VLAN 6.6.3 Example for Configuring the Limitation on MAC Address Learning Based on VSI 6.6.1 Example for Configuring the MAC Address Table...
  • Page 170 Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet Create a VLAN and add interfaces to the VLAN. Add static MAC address entries. Set the aging time of dynamic MAC address entries. Data Preparation To complete the configuration, you need the following data:...
  • Page 171: Example For Configuring The Limitation On Mac Address Learning Based On Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration 0002-0002-0002 2 GE1/0/1 static ------------------------------------------------------------------------------- Total matching items displayed = 3 # Run the display mac-address aging-time command in any view. You can check whether the aging time of dynamic entries is set successfully.
  • Page 172: Figure 6-2 Networking Diagram For Configuring The Limitation On Mac Address Learning Based On Vlan

    Quidway S9300 Terabit Routing Switch 6 MAC Address Table Configuration Configuration Guide - Ethernet Figure 6-2 Networking diagram for configuring the limitation on MAC address learning based on VLAN S9300 GE2/0/1 GE1/0/1 User User network 1 network 2 VLAN 2...
  • Page 173: Example For Configuring The Limitation On Mac Address Learning Based On Vsi

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration [Quidway] interface gigabitethernet 2/0/1 [Quidway-GigabitEthernet2/0/1] port hybrid pvid vlan 2 [Quidway-GigabitEthernet2/0/1] port hybrid untagged vlan 2 [Quidway-GigabitEthernet2/0/1] quit # Configure the rule of limiting MAC address learning in VLAN 2: A maximum of 100 MAC addresses can be learned;...
  • Page 174: Figure 6-3 Networking Diagram For Configuring The Limitation On Mac Address Learning Based On Vsi

    # 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 175 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 6 MAC Address Table Configuration # Run the display mac-limit command in any view. You can check whether the rule of limiting MAC address learning is successfully configured. [Quidway] display mac-limit...
  • Page 177: Arp Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration ARP Configuration About This Chapter This chapter describes the principle of the Address Resolution Protocol (ARP), and provides configuration procedures and examples of ARP. 7.1 Introduction to ARP This section describes the basic concepts and principle of ARP.
  • Page 178: Introduction To Arp

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet 7.1 Introduction to ARP This section describes the basic concepts and principle of ARP. Each device in a local area network (LAN) has a 32-bit IP address for communicating with all other hosts.
  • Page 179: Configuring Arp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration 7.3 Configuring ARP This section describes how to configure static ARP and dynamic ARP. Dynamic ARP entries are maintained by ARP, but you can optimize dynamic ARP entries by setting the number of detection times before deleting dynamic ARP entries, aging time of dynamic ARP entries, and other parameters.
  • Page 180: Creating A Static Arp Entry

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet To configure dynamic ARP, you need the following data. Data Number of detection times before deleting dynamic ARP entries Aging time of dynamic ARP entries 7.3.2 Creating a Static ARP Entry Context Do as follows on the S9300.
  • Page 181: Optimizing Dynamic Arp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration NOTE Static ARP entries are always valid when the S9300 works normally. ----End 7.3.3 Optimizing Dynamic ARP Context Do as follows on the S9300. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 182: Configuring Routed Proxy Arp

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Procedure Run the display arp [ all ] command to check all the ARP mapping tables, including static and dynamic ARP entries. Run the display arp dynamic [ | { begin | exclude | include } regular-expression ] command to check the dynamic ARP mapping table.
  • Page 183: Assigning An Ip Address To An Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration Connecting interfaces and setting physical parameters of the interfaces to ensure that the physical layer of the interfaces is in the Up state Setting parameters of the link layer protocol for the interfaces to ensure that the status of...
  • Page 184: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface vlanif vlan-id The VLANIF interface view is displayed. Step 3 Run: arp-proxy enable Routed proxy ARP is enabled on the interface.
  • Page 185: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration 7.5.1 Establishing the Configuration Task 7.5.2 Assigning an IP Address to an Interface 7.5.3 Enabling Intra-VLAN Proxy ARP 7.5.4 Checking the Configuration 7.5.1 Establishing the Configuration Task Applicable Environment Users in a VLAN belong to the same broadcast domain;...
  • Page 186: Enabling Intra-Vlan Proxy Arp

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Intra-VLAN proxy ARP can be enabled on only the VLANIF interface of the S9300. Step 3 Run: ip address ip-address { mask | mask-length } The IP address is assigned to the interface.
  • Page 187: Configuring Inter-Vlan Proxy Arp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration Run the display arp network net-number net-mask [ dynamic | static ] [ | { begin | exclude | include } regular-expression ] command to check the dynamic ARP mapping table on a specified network segment.
  • Page 188: Assigning An Ip Address To An Interface

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Data IP address of the interface enabled with inter-VLAN proxy ARP 7.6.2 Assigning an IP Address to an Interface Context Do as follows on the S9300. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 189: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration Step 3 Run: arp-proxy inter-sub-vlan-proxy enable Inter-VLAN proxy ARP is enabled. ----End 7.6.4 Checking the Configuration Prerequisite The configurations of routed proxy ARP are complete. Procedure Run the display arp [ all ] command to check all the ARP mapping tables, including static and dynamic ARP entries.
  • Page 190: Checking The Ip Address By Using Arping-Ip

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Ethernet or VLAN is used to access, you can run the arp-ping ip command on the provider edge (PE) or customer edge (CE) to check whether the IP address is used by the local or remote host.
  • Page 191: Clearing Arp Statistics

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration 7.8.1 Clearing ARP Statistics 7.8.2 Monitoring the Running Status of ARP 7.8.3 Debugging ARP 7.8.1 Clearing ARP Statistics Context CAUTION Running the reset arp command deletes the mapping between IP addresses and MAC addresses;...
  • Page 192: Debugging Arp

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Run the display arp vpn-instance vpn-instance-name [ dynamic | static ] [ | { begin | exclude | include } regular-expression ] command to check the ARP mapping table of a specified VPN instance.
  • Page 193: Figure 7-1 Networking Diagram For Configuring Arp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration To ensure the security of the server and prevent invalid ARP packets, a static ARP entry should be created on GE 1/0/2 of the S9300, with the IP address of the router being 10.2.2.3 and the MAC address being 00e0-fc01-0000.
  • Page 194 Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet <Quidway> system-view [Quidway] vlan batch 2 3 # Add GE 1/0/0 to VLAN 2 and add GE 1/0/2 to VLAN 3. [Quidway] interface gigabitethernet 1/0/1 [Quidway-GigabitEthernet1/0/1] port hybrid tagged vlan 2...
  • Page 195: Figure 7-2 Networking Diagram For Configuring Routed Proxy Arp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration Configuration Files The following is the configuration file of the S9300. sysname Quidway vlan batch 2 to 3 interface Vlanif2 ip address 2.2.2.2 255.255.255.0 arp expire-time 60 arp detect-times 2 interface Vlanif3 ip address 10.2.2.2 255.255.255.0...
  • Page 196 Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Enable routed proxy ARP on the interface. Configure the default route. Data Preparation To complete the configuration, you need the following data: IP addresses of the interfaces Default route...
  • Page 197: Example For Configuring Inter-Vlan Proxy Arp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration Internet Address Physical Address Type 172.16.1.1 00e0-fc39-80aa dynamic ----End Configuration Files Configuration file of the S9300 sysname Quidway vlan batch 2 to 3 interface Vlanif2 ip address 172.16.1.1 255.255.255.0...
  • Page 198 Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Configuration Roadmap The configuration roadmap is as follows: Configure a super-VLAN and a sub-VLAN. Add an interface to the sub-VLAN. Create an VLANIF interface of the super-VLAN and assign an IP address to the VLANIF interface.
  • Page 199 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration [Quidway-vlan4] access-vlan 2 [Quidway-vlan4] access-vlan 3 [Quidway-vlan4] quit Step 2 Create and configure VLANIF 4. # Create VLANIF 4. [Quidway] interface vlanif 4 # Assign an IP address to VLANIF 4.
  • Page 200: Example For Configuring Layer 2 Topology Detection

    Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet 7.9.4 Example for Configuring Layer 2 Topology Detection Networking Requirements As shown in Figure 7-4, two GE interfaces are added to VLAN 100 in default mode and the IP addresses of the two GE interfaces are shown in the figure.
  • Page 201 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 7 ARP Configuration [Quidway-GigabitEthernet1/0/1] quit [Quidway] interface gigabitethernet 1/0/2 [Quidway-GigabitEthernet1/0/2] port link-type access [Quidway-GigabitEthernet1/0/2] port default vlan 100 [Quidway-GigabitEthernet1/0/2] quit Step 2 # Enable Layer 2 topology detection. [Quidway] l2-topology detect enable Step 3 Restart GE 1/0/1 and view changes of the ARP entries and aging time.
  • Page 202 Quidway S9300 Terabit Routing Switch 7 ARP Configuration Configuration Guide - Ethernet Configuration Files Configuration file of the Quidway sysname Quidway L2-topolgy detect enable vlan 100 interface Vlanif100 ip address 10.1.1.2 255.255.255.0 interface GigabitEthernet1/0/1 port link-type access port default vlan 100...
  • Page 203: Mstp Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration MSTP Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring the Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), and Multiple Spanning Tree Protocol (MSTP).
  • Page 204: Overview Of Stp, Rstp, And Mstp

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet 8.1 Overview of STP, RSTP, and MSTP This section describes the concepts of STP, RSTP, and MSTP. STP and RSTP The IEEE 802.1D standard issued in 1998 defines STP.
  • Page 205: Figure 8-2 Spanning Trees In An Mst Region

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration Host A and Host B belong to VLAN 2. The link between S9300B and S9300E is blocked and the link between S9300C and S9300F does not permit packets from VLAN 2 to pass through.
  • Page 206: Mstp Features Supported By The S9300

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet In this case, all VLANs can communicate, and packets of different VLANs are forwarded along different paths. Thus, load balancing is implemented. 8.2 MSTP Features Supported by the S9300 This section describes the MSTP features supported by the S9300.
  • Page 207: Figure 8-4 Mapping Table Of The Msti, Ist And Vlan

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration The common spanning tree (CST) is a single spanning tree that connects all MST regions on a switching network. If each MST region is considered as a switch, the CST is a spanning tree generated by STP and RSTP calculation.
  • Page 208: Figure 8-5 Root Port, Designated Port, Alternate Port And Backup Port

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet Root Port On a non-root switch, the port nearest to the root switch is the root port of the switch. A root switch does not have a root port.
  • Page 209: Figure 8-6 Master Port And Regional Edge Port

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration From the aspect of sending the BPDU, a backup port is a port that is blocked after learning the BPDU sent by itself. For forwarding traffic, a backup port, as a backup of the designated port, provides a backup path from the root switch to the leaf node.
  • Page 210: Adding An S9300 To A Specified Mst Region

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet BPDU Protection On a switch, the port that is directly connected to the user terminal such as a PC or a file server is configured as an edge port to ensure fast switch of the port status.
  • Page 211: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration 8.3.8 Checking the Configuration 8.3.1 Establishing the Configuration Task Applicable Environment You need to perform this configuration task when you want to: Add an S9300 that does not run MSTP to an MST region.
  • Page 212: Configuring The Mst Region

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet By default, the S9300 works in MSTP mode. ----End 8.3.3 Configuring the MST Region Context CAUTION Two switches belong to the same MST region when they have the same:...
  • Page 213: Activating The Configuration Of An Mst Region

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration By default, all VLANs in an MST region are mapped to MSTI 0. Step 5 Run: revision-level level The MSTP revision level of the MST region is set.
  • Page 214: Optional) Setting The Priority Of An S9300 In A Specified Msti

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet Context Do as follows on the S9300 that needs to be added to the MST region. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run either of the following commands as required.
  • Page 215: Enabling Mstp

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: stp [ instance instance-id ] priority priority The priority of the S9300 in the specified MSTI is set.
  • Page 216: Setting Mstp Parameters

    Run the display stp region-configuration command, and you can find that the effective MST region name is huawei, and the revision level of the MST region is 0. You can also view the mapping between MSTIs and VLANs. The following is an example: <Quidway>...
  • Page 217: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration 8.4.5 Setting the Format of MSTP Packets 8.4.6 Configuring Fast Transition Mechanism on an Interface 8.4.7 Checking the Configuration 8.4.1 Establishing the Configuration Task Applicable Environment On certain networks, you need to modify MSTP parameters of some switches to optimize their performance.
  • Page 218 Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: stp bridge-diameter diameter The network diameter is set. Step 3 Run: stp timer forward-delay forward-delay The forward delay of the S9300 is set.
  • Page 219: Setting Mstp Parameters Of An Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration stp timer max-age max-age The max age of the S9300 is set. It is recommended that you run the stp bridge-diameter command to set the network diameter instead of setting the max age directly. The S9300 calculates the optimal max age according to the network diameter.
  • Page 220 Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet The link type of the interface is set. On a point-to-point (P2P) link, the designated port enters the forwarding state without delay after one-way handshake with the downstream switch. The network convergence time is thus shortened.
  • Page 221: Switching An Interface To The Mstp Mode

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration Step 12 Run: stp config-digest-snoop The digest snooping function is enabled on the interface. When the S9300 is connected to a device of another vendor, the two devices cannot interoperate because their BPDU keys are different.
  • Page 222: Configuring Fast Transition Mechanism On An Interface

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run either of the following commands as required. Run: interface interface-type interface-number The Ethernet interface view or GE interface view is displayed.
  • Page 223: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration If the stp no-agreement-check command is used on an interface, the interface can perform fast state transition without the Agreement messages. ----End 8.4.7 Checking the Configuration Procedure Step 1 Run the display stp [ instance instance-id ] [ interface { interface-type interface-number [ to interface-number ] }&<1-10>...
  • Page 224: Establishing The Configuration Task

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet 8.5.1 Establishing the Configuration Task 8.5.2 Configuring BPDU Protection on the S9300 8.5.3 Configuring Root Protection on an Interface 8.5.4 Configuring Loop Protection on the S9300 8.5.5 Configuring TC Packet Suppression on the S9300 8.5.6 Checking the Configuration...
  • Page 225: Configuring Root Protection On An Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: stp bpdu-protection BPDU protection is configured on the S9300. The edge port is a port that is directly connected to terminals. If the S9300 has an edge port, you need to configure BPDU protection on the S9300 to prevent network flapping.
  • Page 226: Configuring Tc Packet Suppression On The S9300

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet Context Do as follows on the S9300 functioning as the root switch in the MST region. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run either of the following commands as required.
  • Page 227: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration The stp tc-protection threshold command sets the number of times the MSTP process parses TC packets in a certain period of time. By default, this period of time is 2 seconds, and the MSTP process parses TC packets 3 times in 2 seconds.
  • Page 228: Clearing Mstp Statistics

    Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet 8.6.1 Clearing MSTP Statistics Context CAUTION MSTP statistics cannot be restored after you clear them. So, confirm the action before you use the command. Procedure Step 1 Run the reset stp [ interface { interface-type interface-number [ to interface-number ] } &<1-10>...
  • Page 229: Configuration Examples

    On S9300C and S9300D, connect GE 1/0/1 to a PC and configure GE 1/0/1 as an edge port. Enable BPDU protection on S9300C and S9300D. Configure the S9300s to calculate the path cost by using the algorithm of Huawei. Issue 03 (2009-08-20)
  • Page 230 # Set the priority of S9300A in MSTI1 to 1 to ensure that S9300A functions as the regional root of MSTI1. [S9300A] stp instance 1 priority 0 # Configure S9300A to use Huawei private algorithm to calculate the path cost. [S9300A] stp pathcost-standard legacy # Create VLANs 1 to 20.
  • Page 231 # Set the priority of S9300B in MSTI0 to 4096 to ensure that S9300B functions as the CIST root. [S9300B] stp instance 0 priority 4096 # Configure S9300B to use Huawei private algorithm to calculate the path cost. [S9300B] stp pathcost-standard legacy # Create VLANs 1 to 20.
  • Page 232 # Set the priority of S9300D in MSTI1 to 0 to ensure that S9300D functions as the regional root of MSTI1. [S9300D] stp instance 1 priority 0 # Configure S9300D to use Huawei private algorithm to calculate the path cost. [S9300D] stp pathcost-standard legacy # Enable BPDU protection.
  • Page 233 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration [S9300D-GigabitEthernet1/0/2] port trunk allow-pass vlan 1 to 20 [S9300D-GigabitEthernet1/0/2] quit # Add GE 2/0/1 to the VLANs. [S9300D] interface GigabitEthernet 2/0/1 [S9300D-GigabitEthernet2/0/1] port link-type trunk [S9300D-GigabitEthernet2/0/1] port trunk allow-pass vlan 1 to 20 [S9300D-GigabitEthernet2/0/1] quit # Configure GE 1/0/1 as an edge port.
  • Page 234 Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet The priority of S9300B in the CIST is lower than that of S9300A; therefore, GE 6/0/2 of S9300B functions as the root port in the CIST. S9300A and S9300B belong to different regions; therefore, GE 6/0/2 of S9300B functions as the master port in MSTI1.
  • Page 235 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 8 MSTP Configuration stp region-configuration region-name RG2 instance 1 vlan 1 to 10 active region-configuration interface GigabitEthernet6/0/2 port link-type trunk port trunk allow-pass vlan 1 to 20 interface GigabitEthernet6/0/1 port link-type trunk...
  • Page 236 Quidway S9300 Terabit Routing Switch 8 MSTP Configuration Configuration Guide - Ethernet port link-type trunk port trunk allow-pass vlan 1 to 20 Return 8-34 Huawei Proprietary and Confidential Issue 03 (2009-08-20) Copyright © Huawei Technologies Co., Ltd.
  • Page 237: Bpdu Tunnel Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration BPDU Tunnel Configuration About This Chapter This chapter describes the basic knowledge, methods, and examples for configuring BPDU tunnel. 9.1 Introduction to the BPDU Tunnel This section describes the concept of the BPDU tunnel.
  • Page 238: Introduction To The Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet 9.1 Introduction to the BPDU Tunnel This section describes the concept of the BPDU tunnel. Definition of the BPDU Tunnel BPDUs are Layer 2 protocol packets. As shown in...
  • Page 239: Figure 9-2 Transparent Transmission Of Bpdus On The Isp Network

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Table 9-1 Description of fields in BPDUs Field Name Length Description Destination 48 bits Destination MAC address of a BPDU. For a user, this field address is fixed to 0180-C200-0000.
  • Page 240: Bpdu Tunnel Features Supported By The S9300

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet To meet the preceding conditions, you can configure BPDU tunnels on the network devices on the PSN of the ISP. The BPDU tunnels then transparently transmit BPDUs between branches of different user networks.
  • Page 241: Figure 9-4 Networking Of Vlan-Based Bpdu Tunnels

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Configure the ISP devices, that is, the PE devices, as providers. Thus, the destination MAC address of the BPDUs sent from the ISP network is changed from 01-80-C2-00-00-00 to 01-80-C2-00-00-08.
  • Page 242 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Generally, a PE device functions as a convergence device. As shown in Figure 9-4, the convergence port on PE1 can receive BPDUs from LAN-A and LAN-B. BPDUs sent from a CE device to a PE device must contain VLAN tags so that the PE can distinguish BPDUs from the two LANs.
  • Page 243: Figure 9-5 802.1Q Encapsulation And Qinq Encapsulation

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration an outer tag or a public tag and contains the VLAN ID of the public network. The inner tag is usually known as the private tag and contains the VLAN ID of the private network.
  • Page 244: Configuring A Port-Based Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet BPDU tunnel. To save VLAN IDs, you can configure the QinQ-based BPDU tunnel to forward BPDUs on the ISP network. As shown in Figure 9-6, VLAN-based BPDU tunnels are configured on the convergence ports of the PE devices.
  • Page 245: Enabling Spanning Tree Calculation On The Pe And Ce

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration transparent transmission of BPDUs on an ISP network. After the configuration, BPDUs of different user networks are transmitted to their destination networks through different BPDU tunnels on the ISP network. Thus, spanning trees are calculated correctly.
  • Page 246: Configuring A Port-Based Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Step 2 Run: vlan vlan-id A VLAN is created and the VLAN view is displayed. The VLAN ID ranges from 1 to 4094. If the VLAN specified in the command exists, the VLAN view is displayed.
  • Page 247: Configuring A Pe Interface At The Psn Side To Forward Bpdus With The Specified Vlan Tags

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration The view of the PE interface at the CE side is displayed. Run: stp disable STP is disabled and the PE interface is configured not to participate in calculation of the spanning tree.
  • Page 248 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The view of the PE interface at the PSN side is displayed.
  • Page 249: Configuring A Vlan-Based Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration TCN: 0, Config: 0, RST: 0, MST: 6 BPDU Received :4351 TCN: 0, Config: 0, RST: 0, MST: 4351 <Quidway2> display stp -------[CIST Global Info] [Mode MSTP] ------- CIST Bridge :32768.00e0-fc9a-4315...
  • Page 250: Enabling Spanning Tree Calculation On The Pe And Ce

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet networks are transmitted to their destination networks through different BPDU tunnels on the ISP network. Thus, spanning trees are calculated correctly. Pre-configuration Tasks Before configuring a VLAN-based BPDU tunnel, complete the following tasks:...
  • Page 251: Configuring A Vlan-Based Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Step 2 Run: vlan vlan-id A VLAN is created and the VLAN view is displayed. The VLAN ID ranges from 1 to 4094. To create multiple VLANs, perform this step repeatedly.
  • Page 252 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Run: bpdu-tunnel stp bridge role provider The PE or P device is configured as a provider. Run: interface interface-type interface-number The view of the PE interface at the CE side is displayed.
  • Page 253: Configuring A Pe Interface At The Psn Side To Forward Bpdus With The Specified Vlan Tag

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration STP is disabled and the PE interface is configured not to participate in calculation of the spanning tree. Run: bpdu-tunnel stp vlan low-vid [ to high-vid ] The PE interface is configured to transparently transmit BPDUs with the specified VLAN tag.
  • Page 254 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Run the display bpdu-tunnel global config command to check the global configuration of the BPDU tunnel. Run the display stp [ brief ] command to check information about the spanning tree.
  • Page 255: Configuring A Qinq-Based Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 0 BPDU Sent TCN: 0, Config: 0, RST: 0, MST: 6 BPDU Received :4351 TCN: 0, Config: 0, RST: 0, MST: 4351 <Quidway2>...
  • Page 256: Enabling Spanning Tree Calculation On The Pe And Ce

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet on the ISP network transmit BPDUs through different BPDU tunnels according to the outer tags of BPDUs. Thus, BPDUs from different VLANs are transmitted across the ISP network through different BPDU tunnels.
  • Page 257: Configuring A Qinq-Based Bpdu Tunnel

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration The system view is displayed. Step 2 Run: vlan vlan-id A VLAN is created and the VLAN view is displayed. The VLAN ID ranges from 1 to 4094. To create multiple VLANs, perform this step repeatedly.
  • Page 258 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet The system view is displayed. Run: bpdu-tunnel stp bridge role provider The PE or P device is configured as a provider. Run: interface interface-type interface-number The view of the PE interface at the CE side is displayed.
  • Page 259: Configuring A Pe Interface At The Psn Side To Forward Bpdus With The Specified Vlan Tags

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration port vlan-stacking outside-vlan vlan-id1 [ to vlan-id2 ] stack-vlan vlan- The PE is configured to add outer tags to the received BPDUs. Run: stp disable STP is disabled and the PE interface is configured not to participate in calculation of the spanning tree.
  • Page 260: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet 9.5.6 Checking the Configuration Procedure Run the display bpdu-tunnel interface config command to check the configuration of the BPDU tunnel configured in the interface view. Run the display bpdu-tunnel global config command to check the global configuration of the BPDU tunnel.
  • Page 261 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Time since last TC received :0 days 2h:24m:36s ----[Port1(GigabitEthernet1/0/0)] [FORWARDING] ---- Port Protocol :enabled Port Role :CIST Root Port Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=199999 Desg.
  • Page 262: Configuration Examples

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet 9.6 Configuration Examples This section provides several configuration examples of BPDU tunnels. 9.6.1 Example for Configuring Port-based BPDU Tunnels (Different Roles) 9.6.2 Example for Configuring Port-based BPDU Tunnels (Same Role) 9.6.3 Example for Configuring VLAN-based BPDU Tunnels...
  • Page 263 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Configuration Roadmap The configuration roadmap is as follows: Enable STP on the CE and PE devices. Add the PE interfaces at the CE side to the specified VLANs.
  • Page 264 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet [PE1] vlan 100 [PE1-vlan100] quit [PE1] interface GigabitEthernet 1/0/0 [PE1-GigabitEthernet1/0/0] port hybrid pvid vlan 100 [PE1-GigabitEthernet1/0/0] port hybrid untagged vlan 100 [PE1-GigabitEthernet1/0/0] stp disable [PE1-GigabitEthernet1/0/0] bpdu enable...
  • Page 265 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration TC or TCN received STP Converge Mode :Fast Time since last TC received :0 days 2h:24m:36s ----[Port1(GigabitEthernet1/0/0)] [FORWARDING] ---- Port Protocol :enabled Port Role :CIST Root Port...
  • Page 266 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Desg. Bridge/Port :32768.000b-0952-f13e / 128.82 Port Edged :Config=disabled / Active=disabled Point-to-point :Config=auto / Active=true Transit Limit :3 packets/hello-time Protection Type :None PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 0...
  • Page 267 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration sysname CE4 stp enable return Configuration file of PE1 sysname PE1 vlan batch 100 200 bpdu-tunnel stp bridge role provider stp enable interface GigabitEthernet1/0/0 port hybrid pvid vlan 100...
  • Page 268: Example For Configuring Port-Based Bpdu Tunnels (Same Role)

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet 9.6.2 Example for Configuring Port-based BPDU Tunnels (Same Role) Networking Requirements As shown in Figure 9-8, the CE devices communicate with each other through the PE devices.
  • Page 269 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration VLAN IDs of the PE interfaces at the CE side IDs of VLANs whose BPDUs are allowed to pass through the PE interfaces at the PSN side Procedure Step 1 Enable spanning tree calculation on the CE and PE devices.
  • Page 270 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet [PE1-GigabitEthernet1/0/1] bpdu-tunnel enable [PE1-GigabitEthernet1/0/1] quit # Configure PE2. [PE2] vlan 100 [PE2-vlan100] quit [PE2] interface GigabitEthernet 1/0/0 [PE2-GigabitEthernet1/0/0] port hybrid pvid vlan 100 [PE2-GigabitEthernet1/0/0] port hybrid untagged vlan 100...
  • Page 271 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Transit Limit :3 packets/hello-time Protection Type :None PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 0 BPDU Sent TCN: 0, Config: 0, RST: 0, MST: 6 BPDU Received...
  • Page 272 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet CIST Bridge :32768.000b-0952-f13e Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :32768.000b-0952-f13e / 0 CIST RegRoot/IRPC :32768.000b-0952-f13e / 0 CIST RootPortId :0.0 BPDU-Protection...
  • Page 273: Example For Configuring Vlan-Based Bpdu Tunnels

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration bpdu-tunnel stp group-mac 0100-5e00-0011 stp enable interface GigabitEthernet1/0/0 port hybrid pvid vlan 100 port hybrid untagged vlan 100 bpdu-tunnel enable stp disable interface GigabitEthernet1/0/1 port hybrid pvid vlan 200...
  • Page 274: Figure 9-9 Networking Diagram For Configuring Vlan-Based Bpdu Tunnels

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet In this example, the CE and PE devices are all configured as customer bridges. The default destination MAC address of BPDUs is 0180-C200-0000. The PE devices cannot transparently transmit BPDUs from the CE devices.
  • Page 275 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration [CE3] stp enable # Configure CE4. [CE4] stp enable # Configure PE1. [PE1] stp enable # Configure PE2. [PE2] stp enable Step 2 Configure the BPDUs sent from CE1 and CE2 to contain VLAN tag 100. Configure the BPDUs sent from CE3 and CE4 to contain VLAN tag 200.
  • Page 276 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet [PE1] vlan 200 [PE1-vlan200] quit [PE1] interface gigabitethernet 1/0/0 [PE1-GigabitEthernet1/0/0] port link-type trunk [PE1-GigabitEthernet1/0/0] port trunk allow-pass vlan 100 200 [PE1-GigabitEthernet1/0/0] quit [PE1] interface gigabitethernet 1/0/1 [PE1-GigabitEthernet1/0/1] port link-type trunk...
  • Page 277 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration CIST RegRoot/IRPC :32768.000b-09f0-1b91 / 0 CIST RootPortId :128.82 BPDU-Protection :disabled TC or TCN received STP Converge Mode :Fast Time since last TC received :0 days 3h:53m:43s ----[Port17(GigabitEthernet1/0/0)][FORWARDING]----...
  • Page 278 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Port Priority :128 Port Cost(Dot1T ) :Config=auto / Active=199999 Desg. Bridge/Port :32768.00e0-fc9a-4315 / 128.82 Port Edged :Config=disabled / Active=disabled Point-to-point :Config=auto / Active=true Transit Limit :3 packets/hello-time...
  • Page 279 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 100 stp bpdu vlan 100 return Configuration file of CE3 sysname CE3 vlan batch 200 stp enable interface GigabitEthernet1/0/0...
  • Page 280: Example For Configuring Qinq-Based Bpdu Tunnels

    Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet vlan batch 100 200 interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 100 200 interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 100 200 return...
  • Page 281: Figure 9-10 Networking Diagram For Configuring Qinq-Based Bpdu Tunnels

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration Figure 9-10 Networking diagram for configuring QinQ-based BPDU tunnels VLAN100 VLAN100 GE1/0/0 GE1/0/0 GE1/0/1 GE1/0/1 GE1/0/0 GE1/0/0 GE1/0/2 GE1/0/2 GE1/0/0 GE1/0/0 VLAN200 VLAN200 Configuration Roadmap The configuration roadmap is as follows: Enable STP on the CE and PE devices.
  • Page 282 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet [CE3] stp enable # Configure CE4. [CE4] stp enable # Configure PE1. [PE1] stp enable # Configure PE2. [PE2] stp enable Step 2 Configure the BPDUs sent from CE1 and CE2 to contain VLAN tag 100. Configure the BPDUs sent from CE3 and CE4 to contain VLAN tag 200.
  • Page 283 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration # Configure PE1. [PE1] vlan 10 [PE1-Vlan10] quit [PE1] interface gigabitethernet 1/0/0 [PE1-GigabitEthernet1/0/0] port link-type trunk [PE1-GigabitEthernet1/0/0] port trunk allow-pass vlan 10 [PE1-GigabitEthernet1/0/0] bpdu enable [PE1-GigabitEthernet1/0/0] quit...
  • Page 284 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet Point-to-point :Config=auto / Active=true Transit Limit :3 packets/hello-time Protection Type :None PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 0 BPDU Sent :237 TCN: 0, Config: 0, RST: 0, MST: 237...
  • Page 285 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration <CE4> display stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.00e0-fc9a-4315 Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :32768.00e0-fc9a-4315 / 0 CIST RegRoot/IRPC :32768.00e0-fc9a-4315 / 0...
  • Page 286 Quidway S9300 Terabit Routing Switch 9 BPDU Tunnel Configuration Configuration Guide - Ethernet vlan batch 100 stp enable interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 100 stp bpdu vlan 100 return Configuration file of CE3 sysname CE3 vlan batch 200...
  • Page 287 Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 9 BPDU Tunnel Configuration sysname PE2 bpdu-tunnel stp bridge role provider stp enable interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 10 bpdu enable interface GigabitEthernet1/0/1 port hybrid untagged vlan 10...
  • Page 289: Ldt Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 10 LDT Configuration LDT Configuration About This Chapter This chapter describes the concepts, configuration procedures, and configuration examples of loop detection (LDT). 10.1 Introduction to LDT This section describes the concept of LDT.
  • Page 290: Introduction To Ldt

    Quidway S9300 Terabit Routing Switch 10 LDT Configuration Configuration Guide - Ethernet 10.1 Introduction to LDT This section describes the concept of LDT. After the LDT function is configured on an interface, the interface sends loopback detection packets to detect loops in the local VLAN.
  • Page 291: Enabling Ldt Globally

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 10 LDT Configuration Data Preparation To configure LDT, you need the following data. Data ID of the VLAN where LDT is configured Type and number of each interface to be detected...
  • Page 292: Enabling Ldt Control On An Interface

    Quidway S9300 Terabit Routing Switch 10 LDT Configuration Configuration Guide - Ethernet By default, LDT is disabled in all VLANs. ----End 10.2.4 Enabling LDT Control on an Interface Context Do as follows on the S9300. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 293: Optional) Setting The Ldt Interval On An Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 10 LDT 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: loop-detection disable LDT is disabled on the interface.
  • Page 294: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 10 LDT Configuration Configuration Guide - Ethernet Step 2 Run: interface { ethernet | gigabitethernet } interface-number The interface view is displayed. Step 3 Run: loop-detection recovery-time recovery-time The recovery time of the blocked interface is set. The blocked interface is unblocked after the recovery time.
  • Page 295: Example For Configuring Ldt

    Quidway S9300 Terabit Routing Switch Configuration Guide - Ethernet 10 LDT Configuration 10.3.1 Example for Configuring LDT Networking Requirements When packets sent from a port are sent back to the port, it indicates that a loop exists on the port.
  • Page 296 Quidway S9300 Terabit Routing Switch 10 LDT Configuration Configuration Guide - Ethernet Configuration Files Configuration file of the S9300 sysname Quidway vlan batch 200 loop-detection enable loop-detection interval-time 50 loop-detection enable vlan 200 interface GigabitEthernet9/0/1 port hybrid pvid vlan 200...

Table of Contents