Ben Pfaff <blp@...> writes: > > On Fri, Jul 01, 2011 at 07:10:46AM +0200, Sébastien Riccio wrote: > > On 01.07.2011 06:42, Ben Pfaff wrote: > > >On Fri, Jul 01, 2011 at 06:35:21AM +0200, Sébastien Riccio wrote: > > >>My machine has 6 nics and I wish to user the first two as a bonded > > >>trunk (for vlans) and I don't > > >>really get how to do it with the ovs command lines. > > >> > > >>Anyone knows what are the commands to setup a bond using eth0 and > > >>eth1, bond that will be > > >>my trunk for the vlans, and then how to create an interface attached > > >>to a specific vlan for > > >>my management interface ? > > >Something like this ought to do it: > > > > > >ovs-vsctl add-bond br0 bond0 eth0 eth1 > > >ovs-vsctl add-port br0 mgmt0 tag=1234 -- set interface mgmt0 type=internal > > >ifconfig mgmt0 192.168.0.1 > > > > > Ben, > > > > Wow thanks a lot for your fast answer. > > > > That almost didi it, the management interface is up. But I can't > > ping anything. > > Also i see no bond0 in ifconfig, neither in the bridge (brctl show). > > Shoult it appear ? Does the interface bond0 must be configured anyhow before > > creating it with ovs-vsctl ? > > In Open vSwitch a bond does not have a network device that you can > configure with ifconfig. If you need a network device to configure, you > can create an "internal" device (like mgmt0 above) and ifconfig that. > Since the internal device is bridged to the bond, the functionality is > equivalent. > > Make sure that whatever you want to talk to is connected to the bridge, > for example on eth0 or eth1 in this case. >
Dear Guys! The post was not complete...and hence not helping newbees like us to resolve similar issues. Kindly help! 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). 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! Can anyone extend your kind help here! thanks!! _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev