slyongreg: 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:15
slyonWell.. 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:16
Guest65736hi folks, is there a way to specify the dhcp timeout?12:26
Guest65736Use-case: I have a device with 2 network adapters, I want to to dhcp on both, but often only 1 is plugged in12:26
slyonGuest65736: 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:09
slyonBut 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.conf13:11
slyonhave a look at /lib/systemd/system/systemd-networkd-wait-online.service to see which parts need to be overwriten13:12
Guest65736ah thanks for pointing me in the correct direction14:01
gregslyon 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=018:04
gregso 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 macaddress18:05
gregmaybe this is the cause? https://github.com/systemd/systemd/blob/dc0e90d2e00552df3a45e5ccad74ed37dc23a38e/src/network/netdev/bond.c#L52618:09
gregyep, that is it, look at this https://github.com/systemd/systemd/pull/13837/files18:23

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