Cisco QinQ – Multiple Provider VLANs on Dot1q-Tunnel Port

ciscodot1qqinqtunnelvlan

When we configure a qinq tunneling, the port, which performs the encapsulation, has the next command-lines:

interface g0/10
  switchport
  switchport mode dot1q-tunnel
  switchport access vlan xxx <-- s-vlan
exit

So, on my job environment, if i want encapsulate another c-vlan (customer vlan) using a diferent s-vlan, I have to use another port and this option isn't scalable (one port for each s-vlan).

Do you know about a method to encapsulate many c-vlans using different s-vlans on the same port? I tried with vlan-mapping or vlan translation, but this method doesn't perform encapsulation, only replaces the original tag with the s-vlan tag.

Help me!

Best Answer

Sounds like you need "Selective Q-in-Q" documented here

E.g.

interface GigabitEthernet1/23
 switchport mode trunk
 switchport vlan mapping 21 dot1q-tunnel 211
 switchport vlan mapping 31 dot1q-tunnel 311
Related Topic