linux - Interfaces cannot ping each other over ovs vxlan -


network topology

i'm setting layer 2 network on 2 virtual machines using openvswitch-2.5.2, above picture shows.

after reading ovs official tutorials , other articles, i've tried following cmds on each virtual machine:

# on vm1  ip link add dev veth0 type veth peer name veth1 ip link add dev veth3 type veth peer name veth4 ip netns add ns0 ip netns add ns1 ip link set veth0 netns ns0 ip link set veth3 netns ns1 ip link set veth1 ip link set veth4 ip netns exec ns0 ip link set veth0 ip netns exec ns1 ip link set veth3 ip netns exec ns0 ip addr add 10.0.0.1/24 dev veth0 ip netns exec ns1 ip addr add 10.0.0.3/24 dev veth3 ovs-vsctl add-br br0 ovs-vsctl add-port br0 veth1 ovs-vsctl add-port br0 veth4 ovs-vsctl add-port br0 vx1 -- set interface vx1 type=vxlan options:remote_ip=192.168.99.101  # on vm2  ip link add dev veth0 type veth peer name veth1 ip netns add ns0 ip link set veth0 netns ns0 ip link set veth1 ip netns exec ns0 ip link set veth0 ip netns exec ns0 ip addr add 10.0.0.2/24 dev veth0 ovs-vsctl add-br br0 ovs-vsctl add-port br0 veth1 ovs-vsctl add-port br0 vx1 -- set interface vx1 type=vxlan options:remote_ip=192.168.99.100 

turns out,

#vm1 ip netns exec ns0 ping 10.0.0.2 failed.

even worse,

#vm1 ip netns exec ns0 ping 10.0.0.3 failed.

however, if delete vxlan port, on vm1, ping veth0 veth3 works expected.

am missing whole overlay network won't behave?

solved upgrading kernel version 3.13.x 4.4.x.

similar problem reported user here.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -