[ovs-discuss] HELP: Docker Container on ovs bridge unable connect host's LAN and access Internet

Mah, Yock Gen yock.gen.mah at intel.com
Tue Nov 2 07:03:33 UTC 2021


Hi all,

Docker container on the OVS Bridge not able to ping Host machine LAN:
1. OVS Host able to ping container's IP
2. Container able to ping OVS Host's IP 
3. OVS Host able to ping other nodes on LAN and Internet
4. Container unable to ping any OVS host's LAN devices or Internet
5. However, if running the container on Docker default network (instead of connecting it to OVS), it able to ping host's LAN devices and Internet

Configuration of ovs bridge and container as below:
===========================================================
ovs-vsctl add-br ovs-br1  
ovs-vsctl add-port ovs-br1 wlo1        //<--wlo1 is my host wifi interface connecting to LAN
ifconfig wlo1  0
ifconfig ovs-br1 192.168.0.175 netmask 255.255.255.0 up 
route add default gw 192.168.0.1 ovs-br1
 
docker run -it --name yockgen01 ubuntu bash   
ovs-docker add-port ovs-br1 eth1 yockgen01 --ipaddress=102.168.0.176/24    
docker network disconnect bridge yockgen01     

==============================================================
root at yockgenm-tgl01:~# ovs-vsctl show
3a0b9bb1-6db4-4dd9-9df4-c239559a7c5f
    Bridge ovs-br1
        Port ovs-br1
            Interface ovs-br1
                type: internal
        Port wlo1
            Interface wlo1        
        Port fcfc749d6f3d4_l
            Interface fcfc749d6f3d4_l
    ovs_version: "2.13.3"
===========================================================

I've been stuck on the issue for many hours, and couldn't find any hints from Internet search. 

Any help and guidance is really appreciate.

Thanks!

Regards,
Mah



More information about the discuss mailing list