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.
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
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.
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-tunnelcarries them transparently. - Native VLAN: on provider trunks,
vlan dot1q tag nativeis 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.