I'm studying "docker with macvlan". Below is my settings:
G
192.168.1.1, gateway(physical)
W
192.168.1.2, windows 10, ether-net card(physical)
V
192.168.1.5, virtualbox+centos7, bridged network
c1
192.168.1.10, docker container in macnet
c2
192.168.1.11, docker container in macnet
macnet
is created by
docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=enp0s3 macnet
c1
and c2
is created by
docker run -it --net=macnet --ip=192.168.1.10 -h=c1 anapsix/alpine-java bash
docker run -it --net=macnet --ip=192.168.1.11 -h=c2 anapsix/alpine-java bash
docker version is 17.06.0-ce
I'm expecting all below work but only the first works (->
means ping):
c1
<--> c2
OK
c1
<--> V
Fail
c1
<--> W
Fail
c1
--> G
Fail
Is there anything wrong with above steps?
By the way, could someone help to create the tag "macvlan" and "ipvlan"?