title: What's wrong with my macvlan settings with docker?
body: <p>I'm studying <a href="https://docs.docker.com/engine/userguide/networking/get-started-macvlan/#macvlan-bridge-mode-example-usage" rel="nofollow noreferrer">"docker with macvlan"</a>. Below is my settings:  </p>
  
  <p><code>G</code> 192.168.1.1, gateway(physical)<br>
  <code>W</code> 192.168.1.2, windows 10, ether-net card(physical)<br>
  <code>V</code> 192.168.1.5, virtualbox+centos7, bridged network<br>
  <code>c1</code> 192.168.1.10, docker container in <code>macnet</code><br>
  <code>c2</code> 192.168.1.11, docker container in <code>macnet</code> </p>
  
  <p><code>macnet</code> is created by<br>
  <code>docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=enp0s3 macnet</code>  </p>
  
  <p><code>c1</code> and <code>c2</code> is created by<br>
  <code>docker run -it --net=macnet --ip=192.168.1.10 -h=c1 anapsix/alpine-java bash</code><br>
  <code>docker run -it --net=macnet --ip=192.168.1.11 -h=c2 anapsix/alpine-java bash</code></p>
  
  <p>docker version is 17.06.0-ce</p>
  
  <p>I'm expecting all below work but only the first works (<code>-&gt;</code> means <em>ping</em>):<br>
  <code>c1</code> &lt;--> <code>c2</code>  OK<br>
  <code>c1</code> &lt;--> <code>V</code> Fail<br>
  <code>c1</code> &lt;--> <code>W</code> Fail<br>
  <code>c1</code> --> <code>G</code> Fail </p>
  
  <p>Is there anything wrong with above steps?  </p>
  
  <p>By the way, could someone help to create the tag "macvlan" and "ipvlan"?</p>