< Home

Enabling QinQ-based Layer 2 Transparent Transmission on an Interface

Context

Perform the following operations on PEs based on the required Layer 2 protocol tunneling mode.

The l2protocol-tunnel vlan and l2protocol-tunnel commands cannot specify the same protocol type on the same interface. Otherwise, the configurations conflict.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The user-side interface view is displayed.

  3. Run port link-type hybrid

    The link type of the interface is set to hybrid.

  4. Run port hybrid untagged vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

    The interface is added to specified VLANs in untagged mode.

  5. Run qinq vlan-translation enable

    VLAN translation is enabled on the interface.

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

    The interface is configured to add an outer VLAN tag to Layer 2 protocol packets.

  7. Run l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } vlan { low-id [ to high-id ] } &<1-10>

    QinQ-based Layer 2 protocol tunneling is enabled on the interface.

    • The outer VLAN tag (vlan-id3) specified in the port vlan-stacking command must be included in the VLAN range specified in the port hybrid untagged vlancommand.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >