[12:15] <slyon> greg: You could specify the "macaddress:" field manually, but then it would need to be customized for every server, as you said... I think this is a limitation of systemd-networkd: https://github.com/systemd/systemd/issues/3375 – maybe you could try the modprobe.d/systemd.conf fix they are proposing.
[12:16] <slyon> Well.. actually I'm not sure. As here they describe this to be the default behavior: https://www.freedesktop.org/software/systemd/man/systemd.netdev.html "If this option is not set, "vlan" devices inherit the MAC address of the physical interface. For other kind of netdevs, if this option is not set, then MAC address is generated based on the interface name and the machine-id(5)."
[12:26] <Guest65736> hi folks, is there a way to specify the dhcp timeout?
[12:26] <Guest65736> Use-case: I have a device with 2 network adapters, I want to to dhcp on both, but often only 1 is plugged in
[13:09] <slyon> Guest65736: I think there is not such option. Systemd-networkd-wait-online.service will wait up to 120 sec during boot (by default), before it continues.
[13:11] <slyon> But I think you could overwrite that behavior by specifying the timeout: "systemd-networkd-wait-online --timeout=SECS" in a systemd drop-in overwrite unit, like /etc/systemd/system/systemd-networkd-wait-online.service.d/10-dhcp.conf
[13:12] <slyon> have a look at /lib/systemd/system/systemd-networkd-wait-online.service to see which parts need to be overwriten
[14:01] <Guest65736> ah thanks for pointing me in the correct direction
[18:04] <greg> slyon thanks for the help, that systemd issue seems to indicate the issue is fixed long ago :(  I confirmed by running modprobe -c|grep bond and sure enough I see max_bonds=0
[18:05] <greg> so yeah it appears to be the desired default behavior of netdev, and the docs for netplan say the macaddress specification is unreliable unless you also match on macaddress
[18:09] <greg> maybe this is the cause? https://github.com/systemd/systemd/blob/dc0e90d2e00552df3a45e5ccad74ed37dc23a38e/src/network/netdev/bond.c#L526
[18:23] <greg> yep, that is it, look at this https://github.com/systemd/systemd/pull/13837/files