802.1Q Tunneling (Q-in-Q) Configuration


I am using Cumulus Linux 2.5.7. This is a followup question to this previous post.

I am hoping to insert a VLAN id into packets that are already VLAN tagged without VLAN translation. I would like to preserve the original VLAN id and place an outer VLAN tag into the packet as well.

I hope to accomplish this:



Switch inserts additional VLAN id before original VLAN id:



Here is what I have tried so far:

# cat /etc/network/interface
auto swp1.100iface swp1.100

auto swp2.37
iface swp2.37

auto brQinQ
iface brQinQ
bridge-ports swp1.100 swp2.37

# sysctl -p /etc/sysctl.d/multiple_vlans.conf
net.bridge.bridge-allow-multiple-vlans = 1

With this configuration, traffic passing into swp1 with VLAN 100 egresses out of swp2 with VLAN 37. The original VLAN (100) is lost however. I would like to preserve the original VLAN and place the new VLAN before the original. Is this possible?

Additionally, I have tried the following:

# cat /etc/network/interface
auto swp1.100
iface swp1.100

auto swp2.100
iface swp2.100

auto swp2.100.37
iface swp2.100.37

#ifreload -a
warning: could not determine vlanid
error:

10 replies

Userlevel 3
Hi Bryan,

QinQ (or the standardized 802.1ad) is not supported in 2.5 or 3.0 currently. It should be coming in 3.1 or 3.2, not sure specifically, but it is definitely on the roadmap. The Linux kernel support for QinQ was not great previously, but it is finally usable in 4.1. Stay tuned...

Jason
Jason Guy wrote:

Hi Bryan,

QinQ (or the standardized 802.1ad) is not supported in 2.5 or 3.0 currently. It should...

Thank you very much for the info!
Hi,
is it supported now (in 3.2)?
Userlevel 2
Mhk wrote:

Hi,
is it supported now (in 3.2)?

No, QinQ wasn't in 3.2. It is the near term plans though.
Mhk wrote:

Hi,
is it supported now (in 3.2)?

Thank you.

Is it on the roadmap for a future minor release (3.2.x) ?

Userlevel 2
Mhk wrote:

Hi,
is it supported now (in 3.2)?

Don't believe it's going to be in a 3.2.x build, but early access support is planned for the next month or two.
Mhk wrote:

Hi,
is it supported now (in 3.2)?

It's a good news !

I'm really interested by this feature, could you mail me when it's available ?

Userlevel 2
Mhk wrote:

Hi,
is it supported now (in 3.2)?

Please include me in the distro as well. Very interested in QinQ
Is this solution now valid as of 3.3.2? If so, could we get some proper documentation on the process to add the extra tag.

from the qinq doc in 3.4, https://docs.cumulusnetworks.com/display/DOCS/Hybrid+Cloud+Connectivity+with+QinQ+and+VXLANs

I wonder if qinq access can achieve this, not sure if vxlan must be enabled or not.

Reply