From 9ab95e37d2593ccd31681b06c0a6d0ed1082b3ae Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 2 Jan 2025 17:48:04 -0600 Subject: [PATCH] network: Use MAC address as DHCP client ID _systemd-networkd_ uses a randomly-generated ID as the DHCP client identifier by default. On Aimee OS, it is not able to persist this ID between boots; I think it may derive the value from the machine ID. To avoid getting a new IP address every boot, we can configure it to use the MAC address of the device as the DHCP client ID. --- overlay/etc/systemd/network/95-default.network | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/etc/systemd/network/95-default.network b/overlay/etc/systemd/network/95-default.network index 3a1192d..ccd31c5 100644 --- a/overlay/etc/systemd/network/95-default.network +++ b/overlay/etc/systemd/network/95-default.network @@ -5,6 +5,7 @@ Type=ether wlan DHCP=yes [DHCPv4] +ClientIdentifier=mac UseDomains=yes [DHCPv6]