<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Package: systemd
<div class="moz-forward-container">Version: 252.12-1~deb12u1<br>
Severity: normal<br>
Tags: patch<br>
X-Debbugs-Cc: <a class="moz-txt-link-abbreviated" href="mailto:alexandref75@hotmail.com">alexandref75@hotmail.com</a><br>
<br>
Dear Maintainer,<br>
<br>
DHCP client on systemd-networkd sends requests as broadcast so if
there is more than one DHCP server on the network<br>
all but one will answer NAK: <span style="font-family:monospace">wrong
server-ID. DHCP client stops at the first NAK and ignores the
ACK that will be sent. <br>
THe attached patch included a test refusing any NAK that does
not come from the same IP that the request was sent. <br>
This solution is not the best, since a better solution was
sending the request only to a server that sent an OFFER.<br>
<br>
Thanks,<br>
</span><br>
* What led up to the situation?<br>
<br>
Setting a interface as DHCP and use systemd-networkd to manage<br>
<br>
* What was the outcome of this action?<br>
<br>
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">Sep 20
22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: STARTED on ifindex 2
</span><br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client is configured, acquiring DHCPv4 lease.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv6
client is configured.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0:
Discovering IPv6 routers
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: NDISC:
Started IPv6 Router Solicitation client
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: IPv6
Router Discovery is configured and started.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: DISCOVER
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: Received message from RAW socket, processing.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: OFFER
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: REQUEST (requesting)
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: Received message from RAW socket, processing.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: NAK: <br>
<br>
</span> * What outcome did you expect instead?<br>
<br>
<span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">Sep 20
22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: STARTED on ifindex 2
</span><br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client is configured, acquiring DHCPv4 lease.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv6
client is configured.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0:
Discovering IPv6 routers
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: NDISC:
Started IPv6 Router Solicitation client
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: IPv6
Router Discovery is configured and started.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: DISCOVER
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: Received message from RAW socket, processing.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: OFFER
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: REQUEST (requesting)
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: Received message from RAW socket, processing.
<br>
Sep 20 22:51:15 BeagleBone systemd-networkd[610]: eth0: DHCPv4
client: ACK<br>
</span><br>
<br>
-- Package-specific info:<br>
<br>
-- System Information:<br>
Debian Release: 12.1<br>
APT prefers stable-updates<br>
APT policy: (500, 'stable-updates'), (500, 'stable-security'),
(500, 'stable')<br>
Architecture: armhf (armv7l)<br>
<br>
Kernel: Linux 6.5.3-bone10 (UP; PREEMPT)<br>
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE not set<br>
Shell: /bin/sh linked to /usr/bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages systemd depends on:<br>
ii libacl1 2.3.1-3<br>
ii libaudit1 1:3.0.9-1<br>
ii libblkid1 2.38.1-5+b1<br>
ii libc6 2.36-9+deb12u1<br>
ii libcap2 1:2.66-4<br>
ii libcryptsetup12 2:2.6.1-4~deb12u1<br>
ii libfdisk1 2.38.1-5+b1<br>
ii libgcrypt20 1.10.1-3<br>
ii libkmod2 30+20221128-1<br>
ii liblz4-1 1.9.4-1<br>
ii liblzma5 5.4.1-0.2<br>
ii libmount1 2.38.1-5+b1<br>
ii libp11-kit0 0.24.1-2<br>
ii libseccomp2 2.5.4-1+b3<br>
ii libselinux1 3.4-1+b6<br>
ii libssl3 3.0.9-1<br>
ii libsystemd-shared 252.12-1~deb12u1<br>
ii libsystemd0 252.12-1~deb12u1<br>
ii libzstd1 1.5.4+dfsg2-5<br>
ii mount 2.38.1-5+b1<br>
<br>
Versions of packages systemd recommends:<br>
ii dbus [default-dbus-system-bus] 1.14.8-2~deb12u1<br>
ii systemd-timesyncd [time-daemon] 252.12-1~deb12u1<br>
<br>
Versions of packages systemd suggests:<br>
ii libfido2-1 1.12.0-2+b1<br>
pn libqrencode4 <none><br>
pn libtss2-esys-3.0.2-0 <none><br>
pn libtss2-mu0 <none><br>
pn libtss2-rc0 <none><br>
pn polkitd | policykit-1 <none><br>
pn systemd-boot <none><br>
pn systemd-container <none><br>
pn systemd-homed <none><br>
pn systemd-resolved <none><br>
pn systemd-userdbd <none><br>
<br>
Versions of packages systemd is related to:<br>
ii dbus-user-session 1.14.8-2~deb12u1<br>
pn dracut <none><br>
ii initramfs-tools 0.142<br>
ii libnss-systemd 252.12-1~deb12u1<br>
ii libpam-systemd 252.12-1~deb12u1<br>
ii udev 252.12-1~deb12u1<br>
<br>
-- no debconf information<br>
<br>
</div>
</body>
</html>