Comment 18 for bug 1664847

Revision history for this message
Thiago Martins (martinx) wrote :

Hey guys, here is my workaround with Netplan:

---
$ cat /etc/networkd-dispatcher/routable.d/10-macvlan-interfaces.sh
#! /bin/bash

ip link add macvlan0 link eth0 type macvlan mode bridge
ip link add macvlan1 link eth0 type macvlan mode bridge
---

Then, I can use the `macvlan[0|1]` interfaces on Netplan as regular "ethernets"!

There is a Reddit post about trying to do this with `systemd-network` but, not there yet:

https://www.reddit.com/r/systemd/comments/k17jcf/how_to_create_macvlan_interfaces_with/