The qinq mapping command configures QinQ mapping.
The undo qinq mapping command cancels QinQ mapping.
By default, QinQ mapping is not configured on sub-interfaces.
Parameter | Description | Value |
---|---|---|
vid vid |
Specifies the VLAN ID carried in single-tagged packets that the interface receives. |
The value is an integer ranging from 1 to 4094. |
map-vlan vid map-vid |
Specifies the VLAN ID to be mapped to the VLAN tag of single-tagged packets. |
The value is an integer ranging from 1 to 4094. |
vlan-group group-id |
Specifies the number of a VLAN group. If vlan-group group-id is specified, the command adds mapped VLAN IDs to a specified VLAN group. You can apply different QoS profiles to the VLAN groups. |
The value is an integer ranging from 1 to 16. |
Usage Scenario
QinQ mapping allows a device to map a user VLAN ID to a carrier VLAN ID, shielding different user VLAN IDs in packets. QinQ mapping is deployed on edge devices on Layer 2 networks to map user VLAN IDs in packets received from users. The devices map the VLAN IDs in user packets to specified VLAN IDs before forwarding the packets to the public network. QinQ mapping is applicable but not limited to the following scenarios:
Precautions
If the qinq mapping vid map-vlan vid command has been run on an Ethernet sub-interface, the sub-interface cannot be configured with commands for QinQ stacking/QinQ termination/Dot1q termination functions.
<HUAWEI> system-view [~HUAWEI] vlan batch 10 100 [*HUAWEI] interface GigabitEthernet 0/1/1.1 [*HUAWEI-GigabitEthernet0/1/0.1] vlan-group 1 [*HUAWEI-GigabitEthernet0/1/0.1-vlangroup1] quit [*HUAWEI-GigabitEthernet0/1/0.1] qinq mapping vid 100 map-vlan vid 10 vlan-group 1