[ovs-discuss] OVS Docker

Guru Shetty guru at ovn.org
Thu Apr 11 16:04:37 UTC 2019


On Sun, 7 Apr 2019 at 11:39, Tu Nguyen Phuoc <embechauphi2102 at gmail.com>
wrote:

> Hi OVS Community.
> I have 1 Physical host which had docker and ovs installed.
> I want to set up 2 ovs bridges (ovsbr1 and ovsbr2), each bridge has 1
> container connects to (h1 and h2), here is my set up:
> #### On Physical host ####
> *** Create 2 bridges ***
>
> *# ovs-vsctl add-br ovsbr1# ovs-vsctl add-br ovsbr2*
> *** Set ip for bridges ****
>
> *# ifconfig ovsbr1 172.16.1.1 netmask 255.255.255.0 up*
> *# ifconfig ovsbr2 172.16.2.1 netmask 255.255.255.0 up*
> *** Connect 2 containers to 2 bridges ***
>
> *# ovs-docker add-port ovs-br1 eth1 h1 --ipaddress=172.16.1.10/24
> <http://172.16.1.10/24> # ovs-docker add-port ovs-br2 eth1 h2
> --ipaddress=172.16.2.10/24 <http://172.16.2.10/24>   *
> *** Create link (for LLDP SDN) between ovsbr1 - ovsbr2 ***
> *# ip link add veth1 type veth peer name veth2*
> *# ifconfig veth1 up*
> *# ifconfig veth2 up*
> *# ovs-vsctl add-port ovsbr1 veth1*
> *# ovs-vsctl add-port ovsbr2 veth2*
>
> I've connected 2 ovs bridges to Floodlight and they worked fine. But when
> i removed *docker0 (default docker NIC)* on each container, the
> containers cannot ping each other through *eth1*.
>
> What is my mistake? How can the containers communicate through the NIC
> eth1 that ovs-docker command added on them?
>
> Thanks in advance. I appreciate any response (sorry my my bad English btw)
>

Looks like you are trying to connect 2 different networks together. You
will need something that acts a router in-between. That can either be flows
or a network namespace.


> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190411/3250de42/attachment.html>


More information about the discuss mailing list