Connecting to ODL disconnect internet and ping capability in ovs switch

asked 2017-02-15 08:25:50 -0800

din gravatar image

In the host1, I have created a bridge called br1

ovs-vsctl add-br br1
ovs-vsctl add-port br1 enp3s0
ifconfig enp3s0 0
ifconfig br1 <ip1> netmask 255.255.0.0
route add default gw 1x.12x.x.x br1

Now at this stage I can ping to other hosts and to the internet

then I connected the br in host1 to the ODL controller running on <ip2> port 6633 using the following command

ovs-vsctl set-controller br1 tcp:<ip2>:6633

Now at this point I cannot ping from host1 and host1 doesn't have internet .

My intention is to add a virtual port to br1 and connect a VM on top of host1 . if host1 doesn't have network connection VM will not get the network, any suggestion to fix this ?

edit retag flag offensive close merge delete