Except it turns out that getting IPv4 address via DHCP takes long enough that my NFS mounts then don't come up.

I ended up writing an exit-hook, documented here: https://github.com/NetworkConfiguration/dhcpcd/issues/100#issuecomment-2429121515

It works, but still feels a little fragile. Perhaps I should attempt converting `/etc/network/if-up.d/nfsmounts` to systemd paradigms....

#debian #linux #dhcp #dhcpcd #isc

nfs mount at boot · Issue #100 · NetworkConfiguration/dhcpcd

How do I manage to mount nfs shares like the if-up.d/mountnfs script does with ifup?

GitHub
Posted a followup on the freebsd-net mailing list about importing #dhcpcd into the #FreeBSD base system: https://lists.freebsd.org/archives/freebsd-net/2024-June/005024.html
Importing dhcpcd(8) into FreeBSD base

So, the #Mikrotik DHCP server accepts multiple leases with the same MAC address, if they send different ClientIDs.

At some point since the last reboot, the config of #dhcpcd changed and used a different algorithm to pick a ClientID, so the machine wasn't receiving the correct address.

Amusingly, #IPv6 saved my ass because SLAAC did pick the correct address.

Bizarre bug of the week: after a reboot, #dhcpcd will try and get a v4 lease, but not get one for minutes (if ever).DHCPv6 is fine. Restarting dhcpcd reliably gets a v4 lease in <1s.

Config and DUID have not changed, but the OS was reinstalled (same OS: Debian Trixie). NIC hardware has changed and will again, soon. So I'm hoping it's just the weird D-Link USB Ethernet thing, which will be replaced with boring Intel NIC.

#Linux #networking

OK, this post from the link I originally shared got it right: https://forums.FreeBSD.org/threads/is-there-a-working-dhcpv6-client-for-freebsd.60168/post-453562

The trick to a working #DHCPv6 client in #FreeBSD seems to be to install #dhcpcd and then add the following lines to /etc/rc.conf:
```
rtsold_enable="YES"
dhcpcd_enable="YES"
```
*Avoid* having an ifconfig_<interface>_ipv6 line in addition to that, and all seems to work well.

Solved - Is there a working DHCPv6 client for FreeBSD?

It seems dhclient and dhcp6 are all broken at this point. dhcp6c couldn't fetch an IPv6 address from my OpenWrt router.

The FreeBSD Forums
@meka Thanks! I tried the regular #dhcpcd package yesterday, and while it did grab a lease it did not seem to respect a reservation. Without having delved too deep there seemed to be some weirdness in the DUID.

I'm certain that I didn't *used* to have to put `noarp` in my /etc/dhcpcd.conf to avoid wifi taking 5 seconds to "wake up" after opening my laptop.

Maybe that means it's finally time to get off my old #netctl + #wpa_supplicant + #dhcpcd setup and look at this new `iwd` thing.

#Parabola #GNULinux #bitrot

The new #RaspberryPi OS (Bookworm) is a much more exciting upgrade than I would expect from them. The switch to #Wayland and #PipeWire from #X11 and #PulseAudio, a #Firefox browser optimised for Raspberry Pis as an option in addition to the dreadful #Chromium, and #NetworkManager as the default now instead of #dhcpcd. Honestly the best thing about this upgrade is their documentation all about it, it's very well written and even I was able to learn all about why they did what they did, and what these changes mean for Raspberry Pis in the long run.

Bookworm Raspberry Pi OS is available for a clean install on all the Raspberry Pis now, but with some certain features missing or coming for Raspberry Pi 3 or older. 4 and 5 should already support all that Bookworm has to offer.

🔗 https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os
Bookworm — the new version of Raspberry Pi OS - Raspberry Pi

It's an odd-numbered year, so there is a new major Debian release, and we are now releasing the corresponding version of Raspberry Pi OS.

Raspberry Pi
Migrating tree from #dhclient to #dhcpcd since dhclient is EOL. Seems like our friends at #Fedora and #Redhat are doing that too. https://www.spinics.net/lists/fedora-devel/msg312675.html
Fedora Development — Re: Plans for dhclient / ISC dhcp?

Fedora Development: Re: Plans for dhclient / ISC dhcp?

I've updated #ArchLinux on my router and on the way it pushed dhcpcd from 9.4.1-1 to 10.0.1-1.
After reboot, I was offline...
Looks like I ran into a bug in #dhcpcd (see https://github.com/NetworkConfiguration/dhcpcd/issues/201). It seems to be an issue when running dhcpcd 10.x to get an IPv6 prefix (PD) over PPP (pppoe).
I didn't have time to investigate the problem yet, so I've just downgraded to 9.x to fix the issue for now.
But that's another example why it's always a good idea to keep old packages around...
IFA_ADDRESS and IFA_LOCAL confusion for dhcpv6 over ppp? · Issue #201 · NetworkConfiguration/dhcpcd

I am using dhcpv6 over PPP (yes my ISP is weird), I am on Gentoo Linux, and this issue is only happening with dhcp-10.x, the older 9.4.1 and 9.5.0 were fine where I am able to get an IPv6 address n...

GitHub