Configuring 1-to-1 QinQ Mapping
Context
1-to-1 QinQ mapping allows a sub-interface to map a tag in a received single-tagged packet to a specified tag.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The interface view is displayed.
- Run:
port link-type { hybrid | trunk }
The port link-type is set.
- Run:
quit
Return to the system view.
- Run:
interface interface-type interface-number.subinterface-number
The view of the CE-side Ethernet or Eth-Trunk sub-interface of the PE is displayed.
- Run:
qinq mapping vid vlan-id1 [ to vlan-id2 ] map-vlan vid vlan-id3
The sub-interface is configured to map a tag of a packet to a specified tag.
The original VLAN IDs of single-tagged packets specified in the command must be different from the outer VLAN IDs specified on all the other sub-interfaces.
QinQ mapping cannot be used with stacking, QinQ termination, and Dot1q termination commands on the same sub-interface.
If the PW-side interface is a Layer 3 interface switched by the undo portswitch command, the AC-side interface cannot be a Layer 3 interface or subinterface belonging to a Layer 3 interface; otherwise, traffic forwarding is abnormal.