/srv/irclogs.ubuntu.com/2024/07/12/#netplan.txt

yoggHi09:56
yoggIf I run "netplan ip leases ens18" netplan shows me the current dhcp lease for this interface with the "CLIENTID=..." used. Where is this CLIENTID stored, or how can I change that CLIENTID? I have a template and need to regenerate this ID for every copy of the template.09:56
danilogondolfothat's the DHCP client identifier, it's generated by the client and based on rfc4361 by default. You can change it to be the MAC address though with "dhcp-identifier: mac" in Netplan10:12
yoggI know that, but how can i change the random generated one?10:39
yoggOn isc-dhcp-client there is a "/var/lib/dhcp/dhclient.*.leases" file for every interface. In the the first line of this file is the random identifier and if I delete this file a new random ID will be generated.10:45
yoggI think netplan does something similar but I can't find where the ID is stored.10:45
danilogondolfoI believe you can change it in systemd-networkd (see DUIDRawData in man networkd.conf) but you can't do that through netplan I'm afraid. You could create a drop in systemd config for your interface with DUIDRawData= though.10:47
danilogondolfoit's systemd thing, not netplan's...10:47
danilogondolfonetplan doesn't support setting DUIDRawData yet unfortunately 10:48
yoggahh, its a systemd thing. Thank you that helps a lot10:52
yoggOk, the ID is generated out of the machine-id (/etc/machine-id), so if I do not need to do an extra step for dhcp (only a reboot).12:19

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