openvswitch, bridges and routing

v-gar

New Member
Nov 2, 2016
4
0
1
25
Hello,

up to this point I ran this network configuration on my Proxmox 4.4 node:

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  192.168.2.2
        netmask  255.255.255.0
        gateway  192.168.2.1
        post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet static
        address  192.168.1.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

The node worked as a router for the virtual network. Everything was fine.

Then I've added a new Proxmox node to the cluster and upgraded to version 5.

The config of the first node works fine but I have to extend the network: the two nodes shall host the virtual network 192.168.1.0/24. I've read something about GRE tunneling at Heinlein/Infratix and tried the config on the second node which doesn't host production VMs right now.

Code:
auto lo
iface lo inet loopback

auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports enp2s0 admin0 tep0 tep1

auto vmbr1
allow-ovs vmbr1
iface vmbr1 inet manual
        ovs_type OVSBridge
        post-up /root/ovs/gre1.sh

auto vmbr2
allow-ovs vmbr2
iface vmbr2 inet manual
        ovs_type OVSBridge

auto enp2s0
allow-vmbr0 enp2s0
iface enp2s0 inet manual
        ovs_bridge vmbr0
        ovs_type OVSPort

allow-vmbr0 admin0
iface admin0 inet static
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        address 192.168.2.3
        netmask 255.255.255.0
        gateway 192.168.2.1

#allow-vmbr0 tep0
#iface tep0 inet static
#       address 192.168.1.2
#       netmask 255.255.255.0
#       ovs_type OVSIntPort
#       ovs_bridge vmbr0

allow-vmbr0 tep1
iface tep1 inet static
        address 192.168.6.1
        netmask 255.255.255.0
        ovs_type OVSIntPort
        ovs_bridge vmbr0

As you can see tep0 and vmbr1 aren't configured now but I'm testing with tep1 and vmbr2 to see how it's working.

I created a VM on the second node and attached it to vmbr2 with the address 192.168.6.11. The network doesn't work - it doesn't forward ARP requests.

I think it might work when GRE is configured properly but I have one simple question now: how to "connect" an OVSBridge like vmbr2 with vmbr0? VLAN configuration is not needed.

I'm using openvswitch-switch from the Proxmox repository.