[SOLVED] Setup VLANs with OVS, need help

vooze

Member
May 11, 2017
77
21
8
36
Hi

I'm trying to setup VLANs for my Proxmox 5.0 server.

Looking at https://www.reddit.com/r/homelab/comments/5zt504/proxmox_vlans/ I have made the following /etc/network/interfaces:

Code:
auto lo
iface lo inet loopback

auto enp6s0
iface enp6s0 inet manual

auto enp5s0
iface enp5s0 inet manual

allow-vmbr0 bond0
iface bond0 inet manual
    ovs_bonds enp6s0 enp5s0
    ovs_type OVSBond
    ovs_bridge vmbr0
    ovs_options lacp=active bond_mode=balance-tcp other_config:lacp-time=fast

auto vmbr0
iface vmbr0 inet manual
    ovs_type OVSBridge
    ovs_ports bond0 vlan2

allow-vmbr0 vlan2
iface vlan2 inet static
    address  172.16.1.1
    netmask  255.255.0.0
    gateway  172.16.0.1
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=2

In my HP switch I have tagged both VLAN 2 + 4 on my BAGG2 (LACP LAGG) and set it to trunk (Just like my pfSense LAGG, which works just fine!)

After a reboot, 172.16.1.1 is down and no VMs are starting. Looking at ip addr, I can't see the IP (172.16.1.1) only lo,enp5s0 and enp6s0 (vlan2 and vmbr0 should be there right??)

What am I missing here?

I tried various things (removing the bond0, and only using one NIC with tagged VLAN2) and other things, none seem to work :(

Please help.
 
Hi,
looks not bad for me.

I would check with simpler bond mode first.

With such settings I have run some Cluster on two switche:
Code:
auto lo
iface lo inet loopback

iface enp6s0 inet manual

iface enp5s0 inet manual

allow-vmbr0 bond0
iface bond0 inet manual
    ovs_bonds enp6s0 enp5s0
    ovs_type OVSBond
    ovs_bridge vmbr0
    ovs_options bond_mode=active-backup

auto vmbr0
iface vmbr0 inet manual
    ovs_type OVSBridge
    ovs_ports bond0 vlan2

allow-vmbr0 vlan2
iface vlan2 inet static
    address  172.16.1.1
    netmask  255.255.0.0
    gateway  172.16.0.1
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=2
tcpdump is very helpfull for debugging.

Udo
 
Hi,
looks not bad for me.

I would check with simpler bond mode first.

With such settings I have run some Cluster on two switche:
Code:
auto lo
iface lo inet loopback

iface enp6s0 inet manual

iface enp5s0 inet manual

allow-vmbr0 bond0
iface bond0 inet manual
    ovs_bonds enp6s0 enp5s0
    ovs_type OVSBond
    ovs_bridge vmbr0
    ovs_options bond_mode=active-backup

auto vmbr0
iface vmbr0 inet manual
    ovs_type OVSBridge
    ovs_ports bond0 vlan2

allow-vmbr0 vlan2
iface vlan2 inet static
    address  172.16.1.1
    netmask  255.255.0.0
    gateway  172.16.0.1
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=2
tcpdump is very helpfull for debugging.

Udo

Thank for for your reply.

I have already tried without bonds (just using one nic) and it did not make a difference.

I can't really just tcpdump, since the host have no interfaces up and running, when trying to ping something, I simply get "no network connection" or something along those lines (can't remember the exact output)
 
Hi,
how looks
Code:
ip a s
Are your interface up?

Udo

Wow, do I feel stupid, I forgot to install openvswitch-switch. The thread on reddit did not mention that I needed a package, and I just found out on proxmox wiki.

Everything works with the initial config. Hope this helps others!

Thanks for lot for your help :D
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!