Hello,

I am a new user to Open vSwitch ("OVS").  I have searched for the answer to my 
question, and followed several examples on the Internet, but I can't seem to 
make networking work.  I may be misunderstanding how this works.

I have installed the latest OVS on a CentOS 7 host running KVM and libvirtd.  I 
have 6 NICs in my host server configured in pairs of bonds like this:

  * bond0: mode 1; eth0+eth1 => Management (IP: 10.215.1.251)
  * bond1: mode 6; eth2+eth3 => VM guest traffic (no IP)
  * bond2: mode 0; eth4+eth5 => Storage traffic (IP: 10.215.200.100)

(On my lab switch, I don't have LACP available, so I will be using 
"balance-slb" for bond1 and bond2 in OVS)

This is currently working fine with these bonds defined.

From what I understand, a bridge in OVS is essentially a seperate virtual 
switch.  My intention is to have a seperate bridge (or "vSwitch") for each of 
the above: Management (of the server), VM guest traffic, and storage traffic 
(would consist of external storage devices, but I also would like to be able to 
have VMs connect to the storage network if need be).  Possibly I am going about 
thisall wrong, which is fine to point out, and suggest a different/better way 
to do it.

Where my problem come sin is when I am creating the "Management" bridge: when I 
restart network, or even the server after implementing via the ifcfg-* scripts, 
I lose networking (I cannot ping out -- not even to the gateway IP, and o 
course also not to the Internet). Here are my ifcfg-* scripts for the 
Management bridge:

--- ifcfg-eth0 --
DEVICE=eth0
ONBOOT= yes
HOTPLUG=no

(Note: 'ifcfg-eth1' is identical to above except for the "DEVICE" line)

--- ifcfg-bond0 ---
DEVICE=bond0
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSBond
OVS_BRIDGE=ovsmgmt
BOOTPROTO=none
BOND_IFACES="eth0 eth1"
OVS_OPTIONS="bond_mode=active-backup lacp=off"
HOTPLUG=no

--- ifcfg-ovsmgmt ---
DEVICE=ovsmgmt
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=10.215.1.251
NETMASK=255.255.255.0
HOTPLUG=no

Note that I have my GATEWAY= defined in '/etc/sysconfig/network', and works 
fine when in my bonded config before I edit the files for OVS.

I have seen a couple of guides that create an internal port on a bridge for the 
management IP.  I think I did try that but didn't have much luck either, but I 
am willing to revisit that.  I guess what I want to know is:

  1.) Is what I am attempting to do (i.e., three seperate bridges based on 
function) the right or best way to do this?  If not, do you have any 
suggestions as to a better way to go about it?
  2.) If what I am trying to do above is OK, where might i be going wrong?

Thanks! :-)

Regards,

Alan
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to