< Home

Configuring Basic QinQ

Background

Basic QinQ enables the switch to add a public tag to user packets so that they can be forwarded on the public network. To separate private networks from the public network and conserve VLAN resources, configure double 802.1Q tags on QinQ interfaces of the device. Private VLAN tags are used on private networks such as enterprise networks, and public VLAN tags are used on external networks such as carrier networks. Basic QinQ expands VLAN space to up to 16.7 million (4094 x 4094) and allows packets on different private networks with the same VLAN ID to be transparently transmitted.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    A VLAN used on the public network is created.

  3. Run quit

    Exit from the VLAN view.

  4. Run interface interface-type interface-number

    The interface view is displayed.

    The interface can be a physical interface or an Eth-Trunk interface.

  5. Run port link-type dot1q-tunnel

    The link type of the interface is set to dot1q-tunnel.

    By default, the link type of an interface on the S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI is negotiation-auto, and the link type of an interface on other models is negotiation-desirable.

    Dot1q-tunnel interfaces do not support Layer 2 multicast.

  6. Run port default vlan vlan-id

    The VLAN ID of the public VLAN tag, that is, the default VLAN ID of the interface, is configured.

    By default, VLAN 1 is the default VLAN of all interfaces.

Verifying the Configuration

  • Run the display current-configuration interface interface-type interface-number command to check the QinQ configuration on the interface.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >