Basic QinQ, also called QinQ tunneling, is performed based on interfaces. After basic QinQ is configured on an interface, packets received by the interface are tagged with the default VLAN ID of the interface. After being processed by basic QinQ on an interface, single-tagged packets change into double-tagged packets, and untagged packets change into single-tagged packets with the default VLAN tag of the interface.
Basic QinQ can be configured to expand VLAN space when multiple VLANs are required.
PE1 adds outer VLAN 10 to packets received on Port1 and Port2, and outer VLAN 20 to packets received on Port3.
PE2 adds outer VLAN 20 to packets received on Port1 and Port2.
Port4 on PE1 and Port3 on PE2 allow packets of VLAN 20 to pass.