Docker Community Forums

Share and learn in the Docker community.

Docker networking with physical interface

Hi I have one interface eth0 with ip 192.168.7.22. I have only 5 ips free 192.168.7.23-28, so i want to configure my docker container to connect using this ips. I tried many thing but its not working.

Hi have you tried to use the ipvlan driver, take a look https://github.com/docker/docker/blob/master/experimental/vlan-networks.md#ipvlan-network-driver , I the recents versions this driver is included .

1 Like

I cant use that driver, because my host is Redhat, and its kernel is 3.10 and that driver is not supported their, their is any another method… because i tried almost everything… even pipework script also… but its not working.
My setup is like:

My bridge : br0 with physical interface eth0 192.168.7.24/19

I want to attach this bridge as docker bridge, so whatever container i will create it ip will be in that subnet and i could able to ping from outside host, wherever my this subnet goes.