On Sun, 20 Apr 2025 18:51:10 +0200 Daniel =?utf-8?Q?Gr=C3=B6ber?= <d...@darkboxed.org> wrote: > Hi Martin, > > On Sat, Apr 19, 2025 at 05:27:12PM +0300, Martin-Éric Racine wrote: > > > Uff. I hadn't even considered that aspect yet. Yeah this would get people > > > fuming :D > > > > It happened recently with one of my hosts. Thank goodness it happens > > to sit in the next room, so I was able to just walk over and restart > > ifupdown. That's one aspect where I prefer dhclient's behavior of > > retrying at regular intervals, rather than giving up and reverting to > > IPv4LL. > > Now imagine having to do that with a fleet of thousands or more and > exponentially scale effort to account for the rage factor ;-)
It just occured to me that merely disabling ipv4ll in the config that Debian ships won't be enough. Once that's done, instead of reverting to ipv4ll, dhcpcd will exit. Fixing this requires a kuldge in ifupdown at the stanza that calls dhcpcd: if dhcpcd exits, we need to sleep 1 minute and call dhdpcd again. It's basically a poor man's implementation of dhclient's periodic attempt at reconnecting if no IP was obtained. Martin-Éric