[ovs-discuss] Interroperability between openvswitch and linux

Benjamin benjamin.reis at vates.fr
Thu Sep 19 07:56:04 UTC 2019


Hello,

Is it possible to create a GRE tunnel between an openvswitch bridge and 
a linux bridge?
I'm trying to but as for now I've failed.

On the OVS bridge:
```
ovs-vsctl add-port xapi0 gre0 -- set interface gre0 type=gre 
options:remote_ip=<ip of linux bridge's host>
ifconfig xapi0 up 192.168.42.2
```

On the Linux bride:
```
|sudo ip tunnel add test0 mode gre remote <ip of OVS bridge's host> 
local ||<ip of linux bridge's host> ttl 255
sudo ip link set |||test0| up
sudo ip addr add 192.168.42.1 dev |||test0|
sudo ip route add 192.168.42.0/24 dev |||test0||
```

When displaying the configuration everythong looks good (to me):
On the OVS bridge:
```
[09:42 host-1 ~]# ovs-vsctl show
fb3475e5-bade-4000-975c-dd1791420ea7
     Manager "pssl:6640"
     Bridge "xapi0"
         fail_mode: standalone
         Port "xapi0"
             Interface "xapi0"
                 type: internal
         Port "gre0"
             Interface "gre0"
                 type: gre
                 options: {remote_ip="|<ip of linux bridge's host>|"}
     Bridge "xenbr0"
         fail_mode: standalone
         Port "xenbr0"
             Interface "xenbr0"
                 type: internal
         Port "eth0"
             Interface "eth0"
     ovs_version: "2.5.3"
```

On the Linux bride:
```
|> ip tunnel show
test0: gre/ip remote 192.168.5.30 local 10.200.200.13 ttl 255
|

|
 > ip route show
192.168.42.0/24 dev test0 scope link |
```

But I can't ping my hosts on their |192.168.42.x addresses...
Any idea?

Thanks !
Benjamin
|



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190919/4d3450d1/attachment.html>


More information about the discuss mailing list