[SOLVED] Q-in-Q Support on Hetzner Dedicated Switch

rsmvdl

Member
Jul 15, 2016
31
2
13
27
Hello,

I've got a small setup at Hetzner with a dedicated 10 Gbit/S SFP+ Switch (EdgeSwitch 16 XG) to interconnect my Hosts privatly.
The switch is also 802.1q capable but sadly im only able to make Q-In-Q working between 2 hosts and not three as i have to.

This is how my config looks like:

server 1:

auto vmbr4
iface vmbr4 inet manual
ovs_type OVSBridge
post-up ovs-vsctl add-port vmbr1 gre0 -- set interface gre0 type=gre options:remote_ip=''100.100.100.20''
post-up ovs-vsctl add-port vmbr1 gre0 -- set interface gre0 type=gre options:remote_ip=''100.100.100.30''


server 2:

auto vmbr4
iface vmbr4 inet manual
ovs_type OVSBridge
post-up ovs-vsctl add-port vmbr1 gre0 -- set interface gre0 type=gre options:remote_ip=''100.100.100.10''
post-up ovs-vsctl add-port vmbr1 gre0 -- set interface gre0 type=gre options:remote_ip=''100.100.100.30''


server 3:

auto vmbr4
iface vmbr4 inet manual
ovs_type OVSBridge
post-up ovs-vsctl add-port vmbr1 gre0 -- set interface gre0 type=gre options:remote_ip=''100.100.100.10''
post-up ovs-vsctl add-port vmbr1 gre0 -- set interface gre0 type=gre options:remote_ip=''100.100.100.20''


Does smb. have a similar config and is able to share it? i just wanted to verify that i'm doing nothing wrong here.
In the end i only want to give my VM's a VLAN tag for private networking, thats it.

Thanks and kind regards
 

Alwin

Proxmox Staff Member
Staff member
Aug 1, 2017
3,443
295
88
I've got a small setup at Hetzner with a dedicated 10 Gbit/S SFP+ Switch (EdgeSwitch 16 XG) to interconnect my Hosts privatly.
If that is already a private switch, why use Q-in-Q? And couldn't you drop the switch all together and ask for a meshed network configuration?
 

spirit

Famous Member
Apr 2, 2010
3,821
195
83
www.odiso.com
Hi,

I don't see any q-in-q (vlan stack) config here.
What you have done is gre tunnel, and I don't think you can do it with 3 hosts, without have network loop.

you can use vxlan for this (this need ifupdown2 package installed)

Code:
%for v in range(1000,2001):
auto vxlan${v}
 iface vxlan${v}
        vxlan-id ${v}
        bridge-access ${v}
        vxlan_remoteip 100.100.100.20
        vxlan_remoteip 100.100.100.30
 %endfor


 auto vmbr2
 iface vmbr2 inet manual
        bridge_ports glob vxlan1000-2001
        bridge_stp off
        bridge_fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
This will create a vlan aware bridge, and map vlan to different vxlan (here vlanid 1000 to 2000)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!