< Home

qinq termination l2

Function

The qinq termination l2 command configures the mode in which a sub-interface for QinQ VLAN tag termination connects to a Pseudo-Wire Emulation Edge to Edge (PWE3)/Virtual Leased Line (VLL)/Virtual Private LAN Service (VPLS) network.

The undo qinq termination l2 command deletes the mode configured for a sub-interface for QinQ VLAN tag termination in which the sub-interface connects to a PWE3/VLL/VPLS network.

By default, access attributes are not configured on a sub-interface for QinQ VLAN tag termination.

Format

qinq termination l2 { symmetry | asymmetry }

undo qinq termination l2

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this configuration.

Parameters

Parameter Description Value

symmetry

Configures the sub-interface for QinQ VLAN tag termination to connect to a PWE3/VLL/VPLS network in symmetry mode.

-

asymmetry

Configures the sub-interface for QinQ VLAN tag termination to connect to a PWE3/VLL/VPLS network in asymmetry mode.

-

Views

GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, Eth-Trunk sub-interface view, MultiGE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

More QinQ encapsulation and termination modes are provided to differentiate users and services and save VLAN resources. These modes are widely used for refined operation.

If users communicate over an L2VPN (a PWE3, VLL, or VPLS network), you can run the qinq termination l2 command on the sub-interfaces for QinQ VLAN tag termination of L2VPN edge devices to configure the mode in which the sub-interfaces connect to the L2VPN.

Prerequisites

A VLL, PWE3, or VPLS network-side has been deployed.

For VLL, PWE3, or VPLS configurations, see VLL Configuration, PWE3 Configuration, and VPLS Configuration in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - VPN.

When a sub-interface for QinQ VLAN tag termination is connected to the L2VPN, the PE processes packets based on the QinQ termination configuration, attributes of the sub-interface for QinQ VLAN tag termination when the sub-interface connects to the PWE3, VLL, or VPLS network, and encapsulation mode.

Select the encapsulation mode according to encapsulation (VSI view) or mpls l2vc.

Table 1 Packet processing on the inbound interface in the VPLS scenario

Inbound Interface Type

Ethernet Encapsulation

VLAN Encapsulation

Symmetrical mode

Removes the outer tag.

Reserves double tags. No action is required.

Asymmetrical mode

Removes double tags.

Removes the outer tag.

Default

Removes double tags.

Reserves double tags. No action is required.

Table 2 Packet processing on the outbound interface in the VPLS scenario

Inbound Interface Type

Ethernet Encapsulation

VLAN Encapsulation

Symmetrical mode

Removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

If packets carry the inner tag: removes the MPLS label and replaces the outer tag with the tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

If packets do not carry the inner tag: removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

Asymmetrical mode

S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry one inner tag: removes the MPLS label, removes one inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry double inner tags: removes the MPLS label, removes double inner tags, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Default

S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Removes the MPLS label and transparently transmits packets.

Table 3 Packet processing on the inbound interface in the VLL or PWE3 scenario

Inbound Interface Type

Raw Encapsulation

Tagged Encapsulation

Symmetrical mode

Removes the outer tag.

Reserves double tags. No action is required.

Asymmetrical mode

Removes double tags.

Removes the outer tag.

Default

Removes the outer tag.

Reserves double tags. No action is required.

Table 4 Packet processing on the outbound interface in the VLL or PWE3 scenario

Inbound Interface Type

Raw Encapsulation

Tagged Encapsulation

Symmetrical mode

Removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

If packets carry the inner tag: removes the MPLS label and replaces the outer tag with the tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

If packets do not carry the inner tag: removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

Asymmetrical mode

S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry the inner tag: removes the MPLS label, removes the inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Other models: If packets do not carry the inner tag: removes the MPLS label and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry one inner tag: removes the MPLS label, removes one inner tag, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination. If packets carry double inner tags: removes the MPLS label, removes double inner tags, and adds double tags according to ce-vid and pe-vid configured on the sub-interface for QinQ VLAN tag termination.

Default

Removes the MPLS label and adds the outer tag specified by pe-vid that is configured on the sub-interface for QinQ VLAN tag termination.

If packets carry the inner tag: removes the MPLS label and replaces the outer tag with the tag specified by pe-vid on the sub-interface for QinQ VLAN tag termination. If packets do not carry the inner tag: removes the MPLS label and adds the outer tag specified by pe-vid on the sub-interface for QinQ VLAN tag termination.

Example

# Configure the sub-interface for QinQ VLAN tag termination XGigabitEthernet0/0/1.1 to connect to an L2VPN in asymmetry mode.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface xgigabitethernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-XGigabitEthernet0/0/1] quit
[HUAWEI] interface xgigabitethernet 0/0/1.1
[HUAWEI-XGigabitEthernet0/0/1.1] qinq termination l2 asymmetry
[HUAWEI-XGigabitEthernet0/0/1.1] qinq termination pe-vid 100 ce-vid 200
[HUAWEI-XGigabitEthernet0/0/1.1] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >