/srv/irclogs.ubuntu.com/2021/11/30/#netplan.txt

eivnaesHello anyone here?17:42
eivnaesI am looking for a way to create a network configuration using netplan where eth0 is brought up and the requests N unique IP addresses via DHCP. Is there a way I can do this, e.g. by configuring interface aliasing, or specifying multiple dhcp configurations with different uuids for identifiers?18:36
schopineivnaes: I think you'll need macvlan aliases for this as the DHCP server usually matches the lease with a MAC. I don't think those are supported in netplan.18:41
eivnaesneither is interface aliasing, any idea if network-manager supports this, or would it matter? netplan is a layer on top of networkd or network-manager if I understand this correctly?18:49
eivnaesI found interface aliasing as a TODO on the github repo18:49
schopineivnaes: https://bugs.launchpad.net/netplan/+bug/1664847 lists several workarounds for the lack of macvlans. I'd probably go with using a systemd unit to create the macvlan interfaces and use a match: block in the netplan config to enable dhcp on all of them.18:54
eivnaesThanks shopin, I'll take a look18:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!