I've got a docker host with a interface on network 10.0.1.0/24 and ip address 10.0.1.9. I created a docker network as follows:
docker network create -d ipvlan \
--subnet=10.0.2.0/24 \
-o host_iface=ens3 \
-o ipvlan_mode=l3 \
ipvlan_net
I then create a container as follows:
docker run -itd --rm --network ipvlan_net --ip 10.0.2.10 --name test busybox
If I create multiple containers each container can ping each other, but no container can ping the host at 10.0.1.9, nor can the host ping the containers. I've searched online but none of the (what little) instruction I found was helpful.