yogg | Hi | 09:56 |
---|---|---|
yogg | If 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 |
danilogondolfo | that'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 Netplan | 10:12 |
yogg | I know that, but how can i change the random generated one? | 10:39 |
yogg | On 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 |
yogg | I think netplan does something similar but I can't find where the ID is stored. | 10:45 |
danilogondolfo | I 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 |
danilogondolfo | it's systemd thing, not netplan's... | 10:47 |
danilogondolfo | netplan doesn't support setting DUIDRawData yet unfortunately | 10:48 |
yogg | ahh, its a systemd thing. Thank you that helps a lot | 10:52 |
yogg | Ok, 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!