yum install -y systemd-networkd
modprobe macvlan # make sure this returns no errors
eth0.network
and mac0.{netdev,network}
go in /etc/systemd/network/
macvlan.service
goes in /etc/systemd/system/
...
systemctl daemon-reload
systemctl enable systemd-networkd
systemctl enable macvlan
- Promiscuous mode is supposed to be enabled on the parent device as a side effect of having a macvlan bridge added, but for some reason, in CentOS 7.2, we have to nudge it ourselves. Doesn't seem like a big deal. another reference.
- ¯\_(ツ)_/¯