Repository navigation
Description
systemd version the issue has been seen with
255.4-1ubuntu8.16 — code re-checked on main, still present
Used distribution
Ubuntu 24.04 (noble)
Linux kernel version used
6.8.0-136-generic
CPU architectures issue was seen on
x86_64
Component
systemd-networkd, sd-ndisc
Expected behaviour you didn't see
Per RFC 4861 §6.3.7, a host desists from sending solicitations only "Once the host sends a Router Solicitation, and receives a valid Router Advertisement with a non-zero Router Lifetime".
An RA with Router Lifetime 0 and no prefix information — in particular one the host emitted itself, which networkd goes on to explicitly discard — should not cancel an initial RS that has not been sent yet.
Unexpected behaviour you saw
ndisc_handle_router() disables both timers with no guard whatsoever:
(void) event_source_disable(nd->timeout_event_source);
(void) event_source_disable(nd->timeout_no_ra);No check on Router Lifetime, on source address, or on whether an RS was ever sent.
Consequence: if any RA lands inside the MAX_RTR_SOLICITATION_DELAY random window, the initial RS is never transmitted. When that RA carries nothing usable, networkd has neither solicited nor learned anything, and must wait for the next unsolicited RA — up to MaxRtrAdvInterval, which is 600 s on our upstream (odhcpd) and may be 1800 s per RFC 4861.
There is an internal inconsistency here: the very same RA is rejected a moment later by networkd —
enp1s0: No NDisc route added, gateway fe80::…:2b08 matches local address
— yet it has already been used to cancel the solicitation.
Steps to reproduce the problem
The host is an IPv6 router advertising a DNS-only RA (Router Lifetime 0, RDNSS only) on the same interface networkd manages for the uplink.
systemctl restart systemd-networkd- within ~10 ms, send a minimal RA (type 134, Router Lifetime 0, no options) to
ff02::1from this host's own link-local address - no RS is ever emitted; the SLAAC address stays gone until the upstream's next unsolicited RA
Isolated with a single-bit control — identical in every other respect, only IPV6_MULTICAST_LOOP on the injecting socket differs (the RA goes out on the wire either way; the bit only decides whether it loops back to networkd's ndisc socket on the same host):
IPV6_MULTICAST_LOOP |
RA reaches networkd | RS emitted | SLAAC address |
|---|---|---|---|
| 1 | yes | none in 60 s | never returns |
| 0 | no | +0.83 s | back at +1.11 s |
Additional program output to the terminal or log subsystem illustrating the issue
Working path (no RA inside the window):
09:31:55.971938 enp1s0: Requested configuring of the IPv6 Router Discovery.
09:31:57.231765 wire: fe80::…:2b08 > ff02::2: ICMP6, router solicitation
09:31:57.232489 wire: fe80::2e0:… > fe80::…:2b08: ICMP6, router advertisement
Broken path (RA at +6.6 ms):
09:35:38.132241 enp1s0: NDISC: Started IPv6 Router Solicitation client
09:35:38.132245 enp1s0: IPv6 Router Discovery is configured and started.
09:35:38.132562 enp1s0: State changed: configuring -> configured
09:35:38.138882 enp1s0: NDISC: Received Router Advertisement: flags none preference medium lifetime 0
09:35:38.139032 enp1s0: No NDisc route added, gateway fe80::…:2b08 matches local address
09:35:38.639951 enp1s0: NDISC: Received Router Advertisement: flags none preference medium lifetime 0
(no RS on the wire; global address absent for 90 s until forced with `rdisc6 -1`)
Suggested fix: gate the cancellation on the RFC 4861 §6.3.7 conditions — an RS having been sent and the RA carrying a non-zero Router Lifetime. At minimum, an RA whose source is one of the host's own addresses (already recognised as such downstream) should not suppress solicitation.
Activity
quanyeyang commentedon Sep 6, 2026
@yuwata I'd like to help work on this issue!
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA
sd-ndisc: stop solicitations only after an RS and non-zero-lifetime RA