[ovs-discuss] combining Geneve and VXLAN tunnels

Gerhard Stenzel gstenzel at linux.vnet.ibm.com
Wed Nov 23 09:35:41 UTC 2016


On 11/22/2016 11:20 PM, Ben Pfaff wrote:
> On Thu, Nov 17, 2016 at 03:58:25PM +0100, Gerhard Stenzel wrote:
>> I have a setup with three machines with an OVS switch each. 1 and 2 are connected via VXLAN tunnel, 2 and 3 are connected via Geneve tunnel. The OVSs have each an IP address assigned. ping from 1 to 2 works and ping from 2 to 3 works.
>> But trying to ping from 1 to 3 or 3 to 1 does not work, because the packet coming via the Geneve tunnel from 3 is sent to Geneve port instead of to the VXLAN port on 1.
>>
>> tcpdump on 2 looks like this:
>>
>> IP 192.168.124.68.hp-device-disc > 192.168.124.132.6081: UDP, length 50
>> IP 192.168.124.132.37695 > 192.168.124.111.6081: UDP, length 50
>> IP 192.168.124.111 > 192.168.124.132: ICMP 192.168.124.111 udp port 6081 unreachable, length 86
>>
>> Is this working as expected or is this a bug?
> 
> We don't know, because you didn't give us information like how the ports
> are set up or what you put in the flow table.

Thanks for asking. Please let me know if you need any other details ...

Host 1 (192.168.124.111):
#########################

ovs-vsctl  add-br br0
ovs-vsctl add-port br0 vxlan0 -- set interface vxlan0 type=vxlan options:remote_ip=192.168.124.132

# ovs-vsctl  show               
a8b6e27e-34a0-4eca-bdd0-f6640181560f
    Bridge "br0"
        Port "vxlan0"
            Interface "vxlan0"
                type: vxlan
                options: {remote_ip="192.168.124.132"}
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.3.2"

# ovs-ofctl  dump-flows br0  
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=503291.537s, table=0, n_packets=299, n_bytes=19030, idle_age=65534, hard_age=65534, priority=0 actions=NORMAL


Host 2 (192.168.124.132):
#########################

ovs-vsctl  add-br br0
ovs-vsctl add-port br0 vxlan0 -- set interface vxlan0 type=vxlan options:remote_ip=192.168.124.111
ovs-vsctl add-port br0 geneve0 -- set interface geneve0 type=geneve options:remote_ip=192.168.124.68

# ovs-vsctl show                 
a8b6e27e-34a0-4eca-bdd0-f6640181560f
    Bridge "br0"
        Port "geneve0"
            Interface "geneve0"
                type: geneve
                options: {remote_ip="192.168.124.68"}
        Port "vxlan0"
            Interface "vxlan0"
                type: vxlan
                options: {remote_ip="192.168.124.111"}
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.5.0"

# ovs-ofctl  dump-flows br0        
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=503166.829s, table=0, n_packets=4442, n_bytes=198164, idle_age=59, hard_age=65534, priority=0 actions=NORMAL


Host 3 (192.168.124.68):
########################

ovs-vsctl  add-br br0
ovs-vsctl add-port br0 geneve0 -- set interface geneve0 type=geneve options:remote_ip=192.168.124.132

# ovs-vsctl show                 
a8b6e27e-34a0-4eca-bdd0-f6640181560f
    Bridge "br0"
        Port "geneve0"
            Interface "geneve0"
                type: geneve
                options: {remote_ip="192.168.124.132"}
        Port "br0"
            Interface "br0"
                type: internal
    ovs_version: "2.5.0"

# ovs-ofctl  dump-flows br0  
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=503102.515s, table=0, n_packets=4313, n_bytes=186442, idle_age=90, hard_age=65534, priority=0 actions=NORMAL









More information about the discuss mailing list