Multiples VLAN OVS

Sebastian Antunez

New Member
Apr 5, 2018
5
0
1
49
Hello Guys

In two nodes with Proxmox 5.1-3 have dedicated to management of proxmox.

My problem is the following.

Each node have 4 interface qlogic 57810 with LAG from server to Juniper.

Understand with openvswitch I can create a bridge and assign the vlan tag so that the VMs can have access.

The problem is that no VM has access to the network and I have reviewed everything and I can not find the error.

This is my configuration in Proxmox.

-------------------------------------------------------------------
auto lo
iface lo inet loopback

iface ens192 inet manual

iface ens256 inet manual

iface ens224 inet manual

allow-vmbr1 bond0
iface bond0 inet manual
ovs_bonds ens224 ens256
ovs_type OVSBond
ovs_bridge vmbr1
ovs_options bond_mode=active-backup

auto vmbr0
iface vmbr0 inet static
address 192.168.0.70
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports ens192
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.1.100
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports bond0 vlan100 vlan200

allow-vmbr1 vlan100
iface vlan100 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=100

allow-vmbr1 vlan200
iface vlan200 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=200

-----------------------------------------------------

Thanks for your help.

Regards

SAN
 
My guess is a mismatch between the link aggregation protocol/mode used on Proxmox and the switch. Also, assign IP addresses to the interfaces, not the bridge itself.

FWIW, here's my setup below. A basic two NIC LAGG plus a single management interface. VMs/CTs are assigned to a VLAN in their individual configs.

Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual

allow-vmbr0 bond0
iface bond0 inet manual
        ovs_bonds eno1 eno2
        ovs_type OVSBond
        ovs_bridge vmbr0
        ovs_options lacp=active bond_mode=balance-slb

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 vlan99

allow-vmbr0 vlan99
iface vlan99 inet static
        address  192.168.99.10
        netmask  255.255.255.0
        gateway  192.168.99.1
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=99
 
Hello

Thanks for your help, Post reboot all communication is lost through the administration network and I must remove the vmbr2 configuration. This problem is being presented to me every time I add the OVS for VM traffic

  • The vmbr0 it must be only for management, not you should not pass VM traffic through that network.
  • The vmbr1 it must be only for cluster communications.
  • The vmbr2 is for VM traffic with their respective vlan tag
This is my configuration now:

iface eno4 inet manual

iface enp8s0f0 inet manual

iface enp8s0f1 inet manual

iface enp7s0f1 inet manual

iface enp7s0f0 inet manual

allow-vmbr2 bond0
iface bond0 inet manual
ovs_bonds enp7s0f0 enp7s0f1
ovs_type OVSBond
ovs_bridge vmbr2
ovs_options bond_mode=balance-slb lacp=active

auto vmbr0
iface vmbr0 inet static
address 172.31.42.40
netmask 255.255.255.0
gateway 172.31.42.1
bridge_ports eno3
bridge_stp off
bridge_fd 0


auto vmbr1
iface vmbr1 inet static
address 172.31.47.40
netmask 255.255.255.0
bridge_ports eno4
bridge_stp off
bridge_fd 0


auto vmbr2
iface vmbr2 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan13


allow-vmbr2 vlan13
iface vlan13 inet static
address 10.226.1.240
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr2
ovs_options tag=13


Thanks for your help

Regards

Sebastian
 
Please do not double post.
 

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!