Skip to content
Snippets Groups Projects
Commit 48a0f29e authored by Mikhail Vanyulin's avatar Mikhail Vanyulin
Browse files

systemd-conf:wired.network: do not send DHCP release on service stop


Fix the problem with floating IP addresses after first reboot in Edgehog
image.

Even when a stable MAC is assigned to device via device-tree, an IP address
may change after the first reboot.
This is due to default implementation of built-in DHCP client provided by
systemd-network daemon - DHCP RELEASE packet is sent to the DHCP server
during reboot by this daemon. So, next time a new IP address is allocated
to the same DHCP client (device).

To change this behavior of the DHCP client, a
"KeepConfiguration=dhcp-on-stop" option is enabled in configuration file
for systemd-networkd.

Signed-off-by: default avatarMikhail Vanyulin <mikhail.vanyulin@rtsoft.de>
parent 71ffe532
No related branches found
No related tags found
1 merge request!458systemd-conf:wired.network: do not send DHCP release on service stop
Pipeline #82264 passed with stage
in 34 seconds
--- a/wired.network
+++ b/wired.network
@@ -6,6 +6,7 @@
[Network]
DHCP=yes
+KeepConfiguration=dhcp-on-stop
[DHCP]
UseMTU=yes
FILESEXTRAPATHS:prepend := "${THISDIR}/systemd-conf:"
SRC_URI += " \
file://wired.network-do-not-send-DHCP-release.patch \
"
S = "${WORKDIR}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment