Hi,
I try to switch some libvirt/kvm hypervisors from linux bridge to ovs. So far
so good, using migrate with a custom xml, I can do this without interruption.
But, I do not understand the network configuration between ovs and the
interfaces system of Debian (used here).
On each host I basically create an ovs bridge with two internals interfaces for the local
host, on two separate vlans. As I need IP adresses on them, I do this in
/etc/network/interfaces. It works, but then it seems that the whole configuration of OVS
has to be done in interfaces (as we specify here trunks=...) which is not desired because
I just want to setup host ip addresses here, but configure my other vlans, maybe vxlan,
using OVS only so I can do it programmatically without editing the "interfaces"
file for each new vlan.
Is this possible, maybe I'm doing something wrong?
Here is a part of my interfaces, the physical port as a default untagged vlan "1" and I
use a tagged vlan "2":
# OVS bridge
allow-ovs br0
iface br0 inet manual
ovs_type OVSBridge
ovs_extra set port ${IFACE} tag=1 trunks=1,2 vlan_mode=native-untagged
# HW bridge port
allow-br0 enp2s0
iface enp2s0 inet manual
ovs_bridge br0
ovs_type OVSPort
ovs_options tag=1 trunks=1,2 vlan_mode=native-untagged
# Bridge lan port
allow-br0 lan0
iface lan0 inet static
ovs_bridge br0
ovs_type OVSIntPort
ovs_options tag=1
address 10.0.0.25
network 10.0.0.0
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.1
up sysctl -w net.ipv6.conf.lan0.autoconf=0
# Bridge adm port
allow-br0 adm0
iface adm0 inet static
ovs_bridge br0
ovs_type OVSIntPort
ovs_options tag=2
address 10.1.8.9
netmask 255.255.0.0
network 10.1.0.0
broadcast 10.1.255.255
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss