Open luckylinux opened 6 months ago
We can see from the client logs that we have a REQUEST, the server sees it and sends an ACK. However, this doesn't hit dhcpcd, so it requests again and hits the 60 second backoff. This we need to diagnose and fix.
However, for Router Advertisements we're not soliciting so your router is just sending advertisements very fast. One recent change I made, slightly related but won't affect this issue is dfb0dc2577680ed2ac6dd7e2274f7f7e22804229. Can you upgrade the 9.4.1 client to 9.5.1 or 10.0.6 and see if that helps? There's nothing wrong with the 10.0.6 log you posted as that's jusr RA spam which needs your router to be fixed I guess.
This is what I have in the Router Advertisement Section of the Router
200 seconds = 3.3 minutes is minimum, 600 seconds = 10.0 minutes is maximum
So you are right, for DHCPCD 10.0.6 it's usually around 3-5 minutes, so "as intended".
About the DHCPCD 9.4.1 ... well .. you know Debian :smile: ?
I could (like I did on the Raspberry Pi which had some Glib/Libc Issue as we discussed previously, leading to very "weird" [at least to me] Error Messages) use APT Pinning method and pull DHCPCD 10.0.6 from Debian Testing.
But I'm not 100% sure that's a good idea stability wise :disappointed: .
Pulling DHCPCD from Debian Testing requires libc6 >= 2.38, while Debian Bookworm has only libc6 2.36-9+deb12u7.
Probably there are a few other Dependencies as well.
Bottom line is that it would most likely result in System Breakage in other areas.
I can't magically make Debian go any quicker with package updates. Nothing stops you from building dhcpcd yourself.
@luckylinux this should get you started:
dget https://deb.debian.org/debian/pool/main/d/dhcpcd/dhcpcd_10.0.6-4.dsc
sudo apt-get install libssl-dev libudev-dev
dpkg-buildpackage
@luckylinux this should get you started:
dget https://deb.debian.org/debian/pool/main/d/dhcpcd/dhcpcd_10.0.6-4.dsc sudo apt-get install libssl-dev libudev-dev dpkg-buildpackage
So this would NOT require libc6 >= 2.38 like the Packages in Debian Testing do ?
I'd have to setup a small Buildhost and local Repo, since I have like ~ 40 VMs/Machines that would need this Update.
I don't remember it being easy to distribute / sign the packages Locally (well certainly better than distributing them over the Internet though, there was a bit of a shortcut for a local package host).
So this would NOT require libc6 >= 2.38 like the Packages in Debian Testing do ?
Dependencies are generated at build time. Testing recently bumped these up because time_t() has recently been migrated to 64-bit. That's why you cannot just download the Testing binaries. If you build the package against Stable libraries, the minimum will match these.
Anyhow, we might have a dhcpcd 10.0.6 backport for Bookworm out over the next few days.
Yeah I just had a look, there was absolutely nothing about dhcpcd
in bookworm-backports
.
If that's the case (a few Days) then I'll just wait. That would be a GREAT thing if you could bring a more recent build of dhcpcd
in bookworm-backports
:+1:.
P.S.: are you a Debian Maintainer ?
I'll have to enable APT Pinning anyway since Backports are disabled by default (but that's easy to do).
About the "That's why you cannot just download the Testing binaries. If you build the package against Stable libraries, the minimum will match these." ... I think I did that (probably together with libc6
sigh) on a Raspberry Pi (for a separate Issue), but yeah, I'm not really using it much and I wouldn't recommend doing that in Production Environment.
The time_t
32 bits -> 64 bits ... is that to mitigate against year 2038 Overflow ?
We would be well in advance for that :laughing:.
@luckylinux Check here. Look for packages with a version that ends with bpo12.
@luckylinux Check here. Look for packages with a version that ends with bpo12.
That's nice, thank you @perkelix.
I'll have to update my Repositories on all Systems, which is going to take a while.
On another Note, any plans of backporting dhcpcd-base also to:
dhcpcd5 and dhcpcd are already for "All Architectures", but dhcpcd-base appears to be Architecture-specific.
It takes about 24 hours before all architectures are built and uploaded to backports. Check again tomorrow.
It takes about 24 hours before all architectures are built and uploaded to backports. Check again tomorrow.
Aaah, so it is scheduled to build for all Architectures. Super, many thanks :+1: !
I'm not sure why this is happening, but (at least on some hosts) I can see Network Connectivity Interruptions.
On my DHCP Server (OPNSense Firewall/Router) I am seeing some weird stuff in the Logs ...
One Host using DHCPCD 9.4.1 (this is Shown in the OPNSense Logs in Services -> ISC DHCPv4 -> Log File):
Another Host using DHCPCD v10.0.6 (yes ... this is Shown in the OPNSense Logs in Services -> ISC DHCPv4 -> Log File !!!):
First of all ... Why are the Clients recontacting the Server so Often ? And not sure why I have IPv6 addresses in my OPNSense DHCPv4 Log File ...
Client side with DHCPCD 9.4.1:
Client side with DHCPCD 10.0.6:
These are both Ethernet Connections. So WiFi is not yet another Factor to be considered within this Issue ...
OPNSense setup is High-Availability with CARP Master (192.168.1.7) + CARP Slave (192.168.1.8) and DHCP Configured with the Virtual IP of the Gateway (192.168.1.1).