[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: send-hostname/DHCP Option 12 for lab environment?
From: |
Felix Lechner |
Subject: |
Re: send-hostname/DHCP Option 12 for lab environment? |
Date: |
Wed, 09 Oct 2024 16:38:22 -0700 |
Hi Thom,
On Wed, Oct 09 2024, Thom R Harmon wrote:
> I cannot configure how to tell Guix System DHCP client nodes to use
> send-hostname/DHCP Option 12.
Did you already try the 'host-name' option from the example in the
manual page for dhclient? [1]
I never tried it but you can probably pass a file-like object [2] as a
'config-file' field [3] to the dhcp-client-service-type.
The '-H' option to dhclient looks like DHCP option twelve. [4]
Kind regards
Felix
[1] https://linux.die.net/man/5/dhclient.conf
[2] like this,
https://codeberg.org/lechner/system-config/src/commit/a61e3731399bcd0f26a85688cd7ee37107b3266c/host/wallace-server/operating-system.scm#L473
[3]
https://guix.gnu.org/manual/devel/en/html_node/Networking-Setup.html#index-dhcp_002dclient_002dconfiguration
[4]
https://github.com/isc-projects/dhcp/blob/572032cb0e514606559de3784e3f7ca8e1539d17/includes/dhcp.h#L101