[ovs-discuss] documentation about setting up GRE tunnel

senthil arumugam hai_senthil at yahoo.com
Thu Jan 19 20:06:57 UTC 2012


Hi

I tried to setup the same but did not work. The only difference is I have 
directly connected host1 and host2 over one ethernet card.


Host1 (etho)---------------------------------(eth0)Host2
   10.193.1.1                                  10.193.1.2

I could ping these IP addresses from both hosts

- Created one VM on each host with 10.1.1.10 and 10.1.1.20.

- Created one openvswitch bro on each host and assigned IP 10.193.1.1 (bro on 
host1) and
  10.193.1.2 (bro on host2)
- Created GRE tunnels on each host 
    - sudo ovs-vsctl add-port br0 gre0 -- set Interface gre0 type=gre 
options:remote_ip=10.193.1.2 (on host1)
    - sudo ovs-vsctl add-port br0 gre0 -- set Interface gre0 type=gre 
options:remote_ip=10.193.1.1 (on Host2)


- -Added ports tap0, gre0 and eth0 to br0 in each host

Tried to ping from VM1 at host 1 to VM2 at Host2  - 10.1.1.20 and did not work 

The route table:
Host1:
  

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.193.1.0      *               255.255.255.0   U     0      0        0 br0

Host2:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.193.1.0      *               255.255.255.0   U     0      0        0 br0

    

Question:

1. Should I add any vifs for VMS in bro? 

2. When you ping across VMs, how the switch knows to send it to gre port. Just 
flodding as other l2 ports?
    If so, should we assign the same vlan to gre0 as applied to tp0.. ( 
rightnow, I have added ports with no tag option(default)

Please see if anything I miss


Thanks
=Senthil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120119/c23d2179/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: --static--liam_fetch_bl.gif
Type: image/gif
Size: 9852 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120119/c23d2179/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: --static--liam_fetch_lb.gif
Type: image/gif
Size: 4545 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120119/c23d2179/attachment-0005.gif>


More information about the discuss mailing list