The qinq termination l2 command configures the mode in which a sub-interface for QinQ VLAN tag termination connects to a virtual private wire service (VPWS) or 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 VPWS/VPLS network.
By default, a sub-interface for QinQ VLAN tag termination connects to a VPWS/VPLS network in asymmetrical mode.
Parameter | Description | Value |
---|---|---|
symmetry |
Specifies that the sub-interface for QinQ VLAN tag termination connects to a VPWS/VPLS network in symmetrical mode. |
- |
user-mode |
Specifies that the sub-interface for QinQ VLAN tag termination connects to a VPWS/VPLS network in symmetry mode and supports QoS. In symmetry mode, a sub-interface sends inner tags as part of data to the peer. In this case, inner tags can be specified with a range of VLAN IDs. |
- |
asymmetry |
Specifies that the sub-interface for QinQ VLAN tag termination connects to a VPWS/VPLS network in asymmetrical mode. In asymmetry mode, a sub-interface does not send inner tags as part of data to the peer. Inner tags cannot be used to identify users, and therefore cannot be specified with a range of VLAN IDs. Generally, of the two tags carried by a packet sent by a Huawei device, the inner tag specifies the user, and the outer tag specifies the service. |
- |
100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view
Usage Scenario
More QinQ encapsulation and termination modes are provided to identify users and services and save VLAN ID resources. These modes are widely used for refined service operation.
If users communicate over an L2VPN (a VPWS or VPLS network), you can run the qinq termination l2 command on a sub-interface for QinQ VLAN tag termination of an L2VPN edge device to configure the mode in which the sub-interface connect to the L2VPN.Prerequisites
Configuration Impact
If the qinq termination l2 asymmetry command is used on a sub-interface for QinQ VLAN tag termination, the sub-interface connects to the L2VPN in asymmetrical mode. MAC address learning is performed on both inner and outer tags carried in packets. The sub-interface does not send inner tags as part of the data to the peer.
If the qinq termination l2 symmetry command is used on a sub-interface for QinQ VLAN tag termination, the sub-interface connects to the L2VPN in symmetrical mode. MAC address learning is performed only on the outer tags carried in packets. The sub-interface sends inner tags as part of data to the peer. To configure QoS for inner tags, run the qinq termination l2 symmetry user-mode command.Precautions
When you configure a sub-interface for QinQ VLAN tag termination to access an L2VPN, run the qinq termination l2 command to configure the mode in which a sub-interface for QinQ VLAN tag termination connects to the L2VPN and then run the qinq termination pe-vid ce-vid command to configure QinQ VLAN tag termination.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.2 [*HUAWEI-GigabitEthernet0/1/1.2] encapsulation qinq-termination [*HUAWEI-GigabitEthernet0/1/1.2] qinq termination l2 asymmetry
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] encapsulation qinq-termination [*HUAWEI-GigabitEthernet0/1/1.1] qinq termination l2 symmetry user-mode