You should read the FAQ. Q: How do I connect two bridges?
A: First, why do you want to do this? Two connected bridges are not much different from a single bridge, so you might as well just have a single bridge with all your ports on it. If you still want to connect two bridges, you can use a pair of patch ports. The following example creates bridges br0 and br1, adds eth0 and tap0 to br0, adds tap1 to br1, and then connects br0 and br1 with a pair of patch ports. ovs-vsctl add-br br0 ovs-vsctl add-port br0 eth0 ovs-vsctl add-port br0 tap0 ovs-vsctl add-br br1 ovs-vsctl add-port br1 tap1 ovs-vsctl \ -- add-port br0 patch0 \ -- set interface patch0 type=patch options:peer=patch1 \ -- add-port br1 patch1 \ -- set interface patch1 type=patch options:peer=patch0 Bridges connected with patch ports are much like a single bridge. For instance, if the example above also added eth1 to br1, and both eth0 and eth1 happened to be connected to the same next-hop switch, then you could loop your network just as you would if you added eth0 and eth1 to the same bridge (see the "Configuration Problems" section below for more information). If you are using Open vSwitch 1.9 or an earlier version, then you need to be using the kernel module bundled with Open vSwitch rather than the one that is integrated into Linux 3.3 and later, because Open vSwitch 1.9 and earlier versions need kernel support for patch ports. This also means that in Open vSwitch 1.9 and earlier, patch ports will not work with the userspace datapath, only with the kernel module. On Sun, Sep 29, 2013 at 11:14:51AM -0500, jiten shah wrote: > Thanks Ben. So in that case I need to use Patch Ports right ? > > Consider a scenario where I have (I am using Floodlight controller for > inserting rules into the switch) > > Bridge 1 : VM 1 and VM2 > Bridge 2 : VM3 and VM4 > > and 2 Bridges are connected using Patch Ports, so now when I ping VM4 from > VM1, > first the packet goes to OVSwitch where it says it go to the Patch port on > the other Bridge and now once its received on the other bridge does it > again refer the OVSwitch to tell it how to direct it to the VM4. Is that > how I can achieve ping from VM1 to VM4 ? > > > > On Sun, Sep 29, 2013 at 10:29 AM, Ben Pfaff <b...@nicira.com> wrote: > > > On Sat, Sep 28, 2013 at 08:55:28PM -0500, jiten shah wrote: > > > I am new to OpenVSwitch and had a quick question. Can I configure 2 > > > instances of OpenVSwitch on a native OS ? > > > > No, not in an ordinary way. > > > > > I want to have 2 instances of Switches connected and need them to > > > communicate with Floodlight controller. > > > > Use a single instance of Open vSwitch, but create two bridges. > > _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss