On Thu, May 30, 2013 at 06:59:10PM +0000, Ashraf Khalid wrote:
> I have 2 KVM nodes using OpenvSwitch 1.10 on CentOS 6.x. The intention is to
> have a redundant KVM HA cluster hereafter, and allowing VMs to migrate
> easily between the KVM hosts.
> 
> I have not bonded the physical interfaces on the CENTOS machines yet, and
> intent to do so through openvswitch using physical interfaces eth1 and eth2.
> 
> Now, I need to create a main bridge (cloudbr) and associate it with a bond
> device bond0 (which is non-existant until now) and specify that eth1 and
> eth2 are its associated interfaces.
> 
> Do I need to define any Ports or Interfaces for that?
> 
> Again, how do I configure IP address? and where to assign it?
> 
> I see that I can configure IP address using ifconfig on the main bridge
> (cloudbr) or the bond device (bond0) which I define in the ovs-vsctl
> command, or any ports that I create (example: mgmt0) and associate any
> interface to it (example: mgmt0).

A bond doesn't have a device, so you can't put the IP on there.

> Then again, in none of these cases, it is not reachable or pingable...so I
> am missing something here.
> 
> Hence, just as our friend asked on configuring bond interfaces in this blog,
> and assigning IPs to it.....it is still confusing to people like me!

"this blog"?  Do you mean the ovs-dev mailing list?

Anyway, just create a bridge, add a bond to it, and configure your IP
address on the bridge:

        ovs-vsctl add-br br0
        ovs-vsctl add-bond br0 bond0 eth0 eth1
        ifconfig br0 192.168.0.1
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to