title: How do I replicate a docker macvlan network with podman?
body: <p>I have a working docker implementation on a fedora workstation that I use to host a Unifi Network Controller application. I use a macvlan to assign a static IP to the controller. The docker network command to create the macvlan is:</p>
  
  <pre><code>docker network create -d macvlan -o parent=enp8s0  --subnet 192.168.110.0/24 --gateway 192.168.110.1 --ip-range 192.168.110.224/27 --aux-address 'host=192.168.110.225' unifinet
  </code></pre>
  
  <p>The container where the controller runs is assigned a static ip:</p>
  
  <p><code>docker run --rm --init --network unifinet --ip 192.168.110.226 ....</code></p>
  
  <p>I would like to implement this using podman as a replacement. Is there a useful online tutorial that explains how to use the implementation of CNI used by podman? Especially the macvlan plugin? I cannot decide if I should use the static IPAM plugin or the local-host IPAM plugin.</p>
  
  <p>Brent Baude's <a href="https://www.redhat.com/sysadmin/leasing-ips-podman" rel="nofollow noreferrer">Leasing Routable IP addresses with Podman containers</a> is a good start but is focused on using the dhcp IPAM plugin.</p>
  
  <p>thank you </p>