No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - LAN Access and MAN Access
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the QinQ Function

Configuring the QinQ Function

A QinQ-enabled device is capable of virtual local area network (VLAN) stacking, which expands VLAN space and reduces the consumption of VLAN ID resources.

Applicable Environment

The 12-bit VLAN tag defined in IEEE 802.1Q identifies only a maximum of 4096 VLANs, unable to isolate and identify massive users in the growing metro Ethernet (ME) network. QinQ is therefore developed to expand the VLAN space by adding another 802.1Q tag to an 802.1Q tagged packet. In this way, the number of VLANs increases to 4096 x 4096.

The major differences between QinQ tunneling and selective QinQ are as follows:

Table 9-5 QinQ tunneling application scenario

QinQ Function

Description

Application Scenario

QinQ tunneling

All data frames that arrive on a QinQ interface are encapsulated with the same outer tag. This encapsulation mode does not distinguish users or services and therefore does not support multi-user and multi-service scenarios.

QinQ tunneling applies where there is no need to distinguish users and services.

Selective QinQ

All data frames that arrive on a QinQ interface can be encapsulated with different VLAN tags that distinguish users or services. This encapsulation mode supports multi-user and multi-service scenarios.

Selective QinQ applies when users and services must be distinguished.

Pre-configuration Tasks

Before configuring the QinQ function, plan user VLANs so that packets from the CE to PE carry one VLAN tag.

Configuration Procedures

You can choose one or more configuration tasks (excluding "Checking the Configuration") as required.

Configuring a QinQ Tunnel

After the QinQ tunnel is configured, the interface adds an outer VLAN tag to packets that carry an inner VLAN tag. These packets can then be forwarded on the public network.

Context

Perform the following steps on the device on which the QinQ tunnel is to be configured:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A VLAN is created, and the VLAN view is displayed.

    The VLAN ID refers to the value of the outer tag specified in the QinQ tunnel. The VLAN ID ranges from 1 to 4094.

  3. Run quit

    Return to the system view.

  4. Run interface interface-type interface-number

    The user-side Ethernet interface view is displayed.

  5. (Optional) Run portswitch

    The interface is configured as a Layer 2 interface.

    Skip this step if the interface is already a Layer 2 interface.

  6. Run port link-type dot1q-tunnel

    The interface is configured as a QinQ interface.

  7. Run port default vlan vlan-id

    An outer VLAN tag is configured for packets passing through the QinQ Layer 2 interface.

    NOTE:

    vlan-id must be the same as the VLAN ID created in Step 2.

  8. (Optional) Run qinq protocol ethertype-value

    The protocol type of the outer tag is configured.

    The value of ethertype-value ranges from 0x0600 to 0xFFFF.

    NOTE:

    The qinq protocol command takes effect both on double-tagged and single-tagged packets.

  9. Run commit

    The configuration is committed.

Configuring Selective QinQ

You can configure selective QinQ on a Layer 2 interface. This configuration allows the interface to add a public virtual local area network (VLAN) tag to a user packet that carries a private VLAN tag so that the user packet can be forwarded over the public network.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A VLAN is created, and the VLAN view is displayed.

    The VLAN ID must be the same as the value of the outer VLAN tag specified in the command for configuring selective QinQ.

  3. Run quit

    Return to the system view.

  4. Run interface interface-type interface-number

    The user-side Ethernet interface view is displayed.

  5. (Optional) Run portswitch

    The Layer 3 interface is switched to a Layer 2 interface.

    If the interface is a Layer 2 interface, skip this step.

  6. Run port link-type { hybrid | trunk }

    The link type of an Ethernet interface is set as a hybrid or trunk

  7. Run port vlan-stacking vlan vlan-id1 [ to vlan-id2 ] stack-vlan vlan-id3

    The interface is configured as a Layer 2 selective QinQ interface.

    NOTE:

    vlan-id3 must be the same as the vlan-id created in Step 2.

  8. (Optional) Run qinq protocol ethertype-value

    The protocol type of the outer tag is configured.

    The value of ethertype-value ranges from 0x0600 to 0xFFFF.

    NOTE:

    The qinq protocol command takes effect both on double-tagged and single-tagged packets.

  9. Run commit

    The configuration is committed.

Verifying the QinQ Function Configuration

After configuring QinQ, check the detailed information about the outer virtual local area network (VLAN) and the protocol type of the outer VLAN tag.

Prerequisites

QinQ has been configured.

Procedure

  • Run the display vlan vlan-id verbose command to check detailed information about the outer VLAN.
  • Run the display interface interface-type interface-number command to check the protocol type of the outer VLAN tag.

Example

If QinQ tunneling is configured, run the display vlan command to view detailed information about the outer VLAN. The command output shows that the QinQ tunnel interface is Untagged. For example:

<HUAWEI> display vlan 20 verbose
* : Management-VLAN
---------------------
  VLAN ID      : 20
  VLAN Name    :
  VLAN Type    : Common
  Description  : VLAN 0020
  Status       : Enable
  Broadcast    : Enable
  MAC Learning : Enable
  Statistics   : Disable
  Property     : Default
  VLAN State   : Up
    ----------------
  Untagged      Port: GigabitEthernet0/1/1
  ----------------
  Active Untag  Port: GigabitEthernet0/1/1
---------------------
Interface                   Physical
GigabitEthernet0/1/1        UP
If selective QinQ is configured, run the display vlan command. The command output shows detailed information about the outer VLAN and indicates that the interface on which selective QinQ is configured is a QinQ stacking interface.
<HUAWEI> display vlan 20 verbose
* : Management-VLAN
---------------------
  VLAN ID      : 20
  VLAN Name    :
  VLAN Type    : Common
  Description  : VLAN 0020
  Status       : Enable
  Broadcast    : Enable
  MAC Learning : Enable
  Statistics   : Disable
  Property     : Default
  VLAN State   : Up
    ----------------
  QinQ-stack      Port: GigabitEthernet0/1/1
  ----------------
  Active Untag  Port: GigabitEthernet0/1/1
---------------------
Interface                   Physical
GigabitEthernet0/1/1        UP

Run the display interface command to view the protocol type of the outer VLAN tag. For example:

<HUAWEI> display interface gigabitethernet0/1/2
GigabitEthernet0/1/2 current state : UP
Line protocol current state : UP (ifindex: 12)
Description: HUAWEI, Quidway Series, GigabitEthernet0/1/2 Interface
Switch Port, TPID : 9100(Hex), The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 38ec-d911-0110
Last physical up time   : 0000-00-00 00:00:00
Last physical down time : 0000-00-00 00:00:00
Current system time: 2012-06-28 03:59:19
Statistics last cleared:never
    Last 300 seconds input rate: 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate: 0 bits/sec, 0 packets/sec
    Input peak rate 0 bits/sec, Record time: -
    Output peak rate 0 bits/sec, Record time: -
    Input: 0 bytes, 0 packets
    Output: 0 bytes, 0 packets
    Input:
      Unicast: 0 packets, Multicast: 0 packets
      Broadcast: 0 packets, JumboOctets: 0 packets
      CRC: 0 packets, Symbol: 0 packets
      Overrun: 0 packets, InRangeLength: 0 packets
      LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets
      Fragment: 0 packets, Undersized Frame: 0 packets
      RxPause: 0 packets
    Output:
      Unicast: 0 packets, Multicast: 0 packets
      Broadcast: 0 packets, JumboOctets: 0 packets
      Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets
      System: 0 packets, Overruns: 0 packets
      TxPause: 0 packets
    Last 300 seconds input utility rate:  0.00%
    Last 300 seconds output utility rate: 0.00%
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055378

Views: 16796

Downloads: 35

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next