openvswitch cannot communicate

caris

New Member
Apr 1, 2016
2
0
1
42
Hello Proxmox,

Hopefully I've posted this in the correct forum.

I'm interested in better understanding Open vSwitch within our environment. I'm running a cluster of Proxmox Hosts and will be connecting them to Ceph. All Ceph and Proxmox servers will run Proxmox 4.1 and will be in the same cluster.

I use GUI to create OVS Bridge in pve1 and pve2, such as :
upload_2016-4-13_11-15-0.png

upload_2016-4-13_11-15-5.png

But by ping, pve1 and pve2 can't communicate with each other, what should I do?

thanks very much~!

PS :Before I use the eth3 nic to create Linux Bridge of communication is normal,so I'm sure eth3 is to be able to normal communication.
 
Thanks aychprox!

The /etc/network/interfaces configuration :
root@pve1:~# more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual

allow-vmbr1 eth3
iface eth3 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
ovs_options tag=102

allow-ovs vmbr1
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports eth3 vlan102

allow-vmbr1 vlan102
iface vlan102 inet static
address 10.10.10.10
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=102
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif


root@pve2:~# more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual

allow-vmbr1 eth3
iface eth3 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
ovs_options tag=102

allow-ovs vmbr1
auto vmbr1
iface vmbr1 inet static
address 10.10.10.2
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports eth3 vlan102

allow-vmbr1 vlan102
iface vlan102 inet static
address 10.10.10.11
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=102
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif

pve1 and pve2 still can't communication.
 
Thanks aychprox!

The /etc/network/interfaces configuration :
root@pve1:~# more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual

allow-vmbr1 eth3
iface eth3 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
ovs_options tag=102

allow-ovs vmbr1
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports eth3 vlan102

allow-vmbr1 vlan102
iface vlan102 inet static
address 10.10.10.10
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=102
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif


root@pve2:~# more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual

allow-vmbr1 eth3
iface eth3 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
ovs_options tag=102

allow-ovs vmbr1
auto vmbr1
iface vmbr1 inet static
address 10.10.10.2
netmask 255.255.255.0
ovs_type OVSBridge
ovs_ports eth3 vlan102

allow-vmbr1 vlan102
iface vlan102 inet static
address 10.10.10.11
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=102
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif

pve1 and pve2 still can't communication.
Hi,
do you use the right openvswitch-package? the normal debian-one has issues with vlan-tagging. If you have the pve-repositorys enabled (enterprise or no-subsription) you get newer ones.

And don't use an IP on the brigde... use someting like this (and tag vlan 102 on the switch side):
Code:
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual
iface eth2 inet manual

auto vmbr1
iface vmbr1 inet manual
   ovs_type OVSBridge
   ovs_ports eth3 vlan102


auto eth3
allow-vmbr1 eth3
iface eth3 inet manual
   ovs_type OVSPort
   ovs_bridge vmbr1
   ovs_options vlan_mode=native-untagged
   ovs_options tag=1

allow-vmbr1 vlan102
iface vlan102 inet static
   ovs_type OVSIntPort
  ovs_bridge vmbr1
   address 10.10.10.11
   netmask 255.255.255.0
   ovs_options tag=102
   ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
Udo
 

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!