[SOLVED] 2 hosts with Proxmox 5.1 OVS Switch VLAN

Turbohosting

New Member
Nov 10, 2017
2
0
1
34
Dear All,

I am trying to achive a network with two hosts installed with Proxmox 5.1 and they are in cluster.

The connection between them is direct cable and will be the same later. The connection from Host OS using the vlan ports is working

Participants:
Host A vmbr1 - pve-manager/5.1-36/131401db (running kernel: 4.13.4-1-pve)
Host B vmbr1 - pve-manager/5.1-36/131401db (running kernel: 4.13.4-1-pve)
VM 1
VM 2

In the example I am going to use one VLAN, but I would need to use many more.

Host A and Host B has vlan14 interface and they ping each other
VM 1 and VM 2 has interface with taged with 14.
Each VMs can ping the phyiscal hosts vlan14 adress but cannot ping each other.

I might be missing a kernel config or sth.

Host A
Code:
allow-vmbr1 enp3s4f1

iface enp3s4f1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr1

allow-vmbr1 vlan14
iface vlan14 inet static
    address  192.168.254.2
    netmask  255.255.255.0
    ovs_type OVSIntPort
    ovs_bridge vmbr1
    ovs_options tag=14

allow-vmbr1 vlan10
iface vlan10 inet static
        address  192.168.123.254
        netmask  255.255.255.0
        ovs_type OVSIntPort
        ovs_bridge vmbr1
        ovs_options tag=10

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


auto vmbr1
iface vmbr1 inet manual
    ovs_type OVSBridge
    ovs_ports vlan10 vlan12 enp3s4f1

Host B
Code:
allow-vmbr1 enp3s4f1
iface enp3s4f1 inet manual
    ovs_type OVSPort
    ovs_bridge vmbr1

auto vmbr1
iface vmbr1 inet manual
    ovs_type OVSBridge
    ovs_ports enp3s4f1 vlan14

allow-vmbr1 vlan14
iface vlan14 inet static
    address  192.168.254.1
    netmask  255.255.255.0
    ovs_type OVSIntPort
    ovs_bridge vmbr1
    ovs_options tag=14

llow-vmbr1 vlan10
iface vlan10 inet static
        address  192.168.123.253
        netmask  255.255.255.0
        ovs_type OVSIntPort
        ovs_bridge vmbr1
        ovs_options tag=10

allow-vmbr1 vlan13
iface vlan13 inet static
        address  192.168.124.253
        netmask  255.255.255.0
        ovs_type OVSIntPort
        ovs_bridge vmbr1
        ovs_options tag=13
 
Last edited:
Problem solved. Appearantly VM 1 and VM 2 had firewall blocking the ping (pfsense). For now it seems it is working, but slow.
 
So besides the config you presented, is there anything that need to be done elsewhere ? Like on the switch ?
 
So i think ill answer this, but i think the ports used in the switch need to be configured as trunk ports (in the switch).
This depends on the switch but i think that every vlan number used needs to be defined as well.

Anyway, i will try this.
 

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!