← Wed, Nov 18 digest

IPv6 delegation, an unusually subtle failure mode

read article ↗ hn thread ↗

When an ISP assigns a new IPv6 prefix, systemd-networkd fails to deprecate old prefixes, causing connection loss until the author switched to OpenWrt's odhcpd.

read it A well-documented network troubleshooting postmortem that details an obscure IPv6 prefix delegation bug and its fix.

summary

The author noticed that restarting their router's pppd connection caused IPv6 traffic to break completely on local devices, even though DNS and IPv4 worked. Diagnostics revealed that client devices held onto old IPv6 prefixes because upstream renumbering events were not properly signaled. After discovering that systemd-networkd lacks support for RFC 9096, the author replaced it with OpenWrt's odhcpd daemon on NixOS. This successfully deprecated old prefixes on reconnect and restored seamless IPv6 failover.

key points

  1. Restarting a consumer ISP connection can trigger prefix renumbering, leaving client devices with stale IPv6 addresses if the router does not deprecate them.
  2. RFC 9096 requires customer edge routers to advertise old prefixes with preferred and valid lifetimes of zero during renumbering events.
  3. Systemd-networkd lacks full RFC 9096 compliance, making specialized daemons like odhcpd necessary for robust edge routing.

who should read it

Network engineers, home lab builders, and anyone running custom Linux routers.

discussion mixed

consensus

Commenters use the post to critique systemd's scope and its handling of network edge cases, suggesting that specialized or minimalist tools are better suited for routers.

pushback

A few note that consumer ISPs using non-sticky dynamic IPv6 prefixes are the true root cause of the issue by violating network best practices.

best comment by hylaride ↗

Networking is the biggest cause of issues I've had with systemd, mostly because of the systemd maintainer's insistence on strict adherence to modern RFC's to the detriment of legacy support. This has resulted in my having to deal with gross workarounds for various issues, including this 032 issue with multiple domains: https://docs.aws.amazon.com/linux/al2023/ug/deprecated-al2.h...

It highlights a recurring pain point with systemd networking where strict design choices clash with real-world compatibility.

Generated by an LLM from the article and thread. Check the sources before relying on it.