This is the post from jesse regarding GRE tunnels in OVS mailing list:
http://www.mail-archive.com/discuss@openvswitch.org/msg00360.html

I replicated the same steps here for both tunnel1 and tunnel2:

*tunnel1:*

# ovs-vsctl  create interface name=tunnel1 type gre options:remote_ip
=x.x.x.x
# ovs-vsctl create port name=tunnel1 interfaces= [uuid]
# ovs-vsctl  add bridge br0 ports uuid

Now bridge br0 is assigned to IP address:
# ifconfig br0 xx.xx.xx.xx up

*tunnel2:*
# ovs-vsctl  create interface name=tunnel2 type gre options:remote_ip
=y.y.y.y
# ovs-vsctl create port name=tunnel2 interfaces=[uuid]
# ovs-vsctl  add bridge br1 ports uuid

Now bridge br1 is assigned to IP address:
# ifconfig br1 yy.yy.yy.yy up

Here, bridge br0 creates corresponding datapath dp0 and bridge br1 creates
datapath dp1 in OpenVswitch.

*Possible alternatives:*

We can add the interface "tunnel2" with br0 without creating br1 ( single
data path dp0 only).
In this scenario, one IP address with br0, but in order to distinguish two
tunnels we need two IP addresses
( two bridges, implies two data paths).
And one more thing is, we can't assign IP address to tunnel interfaces in
openvswitch
directly with out creating bridges. ( In Ordinary linux, we can directly
assign IP address to GRE-tunnel).

Is there any method to create two different tunnels with single data path in
OVS. If not how we can forward one data path (dp0) to
another datapath (dp1).

Thanks,
Ramana.






On Fri, Dec 17, 2010 at 12:01 AM, Ben Pfaff <b...@nicira.com> wrote:

> On Thu, Dec 16, 2010 at 11:29:45PM +0530, Ramana Reddy wrote:
> > Thanks for your quick reply. Yaa its work if I set a GRE tunnel "tunnel1"
> > from
> > VM1 to OpenVswitch( External) /Linux Machine and "tunnel2" from VM2 to
> > OpenVswitch(External)/Linux Machine.
> > In this setup, the OpenVswitch (External) creating two data paths dp0 and
> > dp1 as each tunnel requires one bridge.
>
> I don't understand why each tunnel requires a bridge.  Can you explain
> why?
>
> (I'm not very good with tunnels, though.  I hope that Jesse jumps in if
> I get in over my head.)
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to