CCNP · Lesson 5 of 5

QinQ: Carrying Customer VLANs Inside a Provider VLAN

A provider has 200 customers and each of them uses VLAN 10. How does it carry them without mixing them? It adds a second tag.

By topologia.appUpdated: Nov 13, 2026⏱ 6 min❓ 4 questions📶 Level advanced

In a nutshell

QinQ adds an outer provider tag (S-tag) on top of the customer tag (C-tag). Each customer keeps its VLANs and the provider uses one VLAN per customer.

In this lesson
  1. The idea
  2. Provider edge configuration
  3. Things to watch
  4. What you must remember
  5. Exam-style questions

The idea

In QinQ (802.1Q tunneling, standardized as 802.1ad) the provider switch receives the customer frames, already tagged with their VLANs, and adds a second tag:

  • C-tag (customer): the customer's original VLAN. It goes inside.
  • S-tag (service): the VLAN the provider assigns to that customer. It goes outside.
CE-A PE1 PE2 CE-B dot1q-tunneldot1q-tunnel DMAC SMAC S-tag 500 C-tag 10 Data +4 bytes → MTU 1504
The provider carries every VLAN of customer A inside its VLAN 500.

Provider edge configuration

PE1(config)# vlan 500
PE1(config)# interface gi1/0/1  ← port towards customer A
PE1(config-if)# switchport access vlan 500
PE1(config-if)# switchport mode dot1q-tunnel
PE1(config-if)# l2protocol-tunnel cdp stp vtp  ← carries the customer CDP/STP/VTP
PE1(config)# system mtu 1504  ← +4 bytes for the second tag

Links between provider switches are normal trunks that allow VLAN 500.

Things to watch

  • MTU: the second tag adds 4 bytes. If the provider core does not accept 1504-byte (or larger) frames, large frames are lost.
  • Layer 2 protocols: by default the provider consumes the customer CDP, STP and VTP. l2protocol-tunnel carries them transparently.
  • Native VLAN: on provider trunks, vlan dot1q tag native is recommended so no tag is lost.

What you must remember

  • QinQ = provider tag (S-tag) on top of the customer tag (C-tag).
  • Port towards the customer: switchport mode dot1q-tunnel + provider access vlan.
  • The second tag adds 4 bytes: adjust the MTU.
  • l2protocol-tunnel carries the customer CDP, STP and VTP.

Check what you learned

4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.

Question 1 of 4 · One answerIn QinQ, which tag is on the outside of the frame crossing the provider network?
Question 2 of 4 · Choose twoWhich two commands are applied on the provider port connected to the customer? (Choose two.)
Question 3 of 4 · One answerWhy is the MTU usually set to 1504 bytes when implementing QinQ?
Question 4 of 4 · One answerWhich command lets the customer CDP and STP cross the provider network?