FULL AI ANALYSIS

systemd-networkd drops IPv6 default route after netplan apply/resume on Ubuntu 22.04 — RA visible but no ::/0 route

Generated Oct 29, 2026, 9:46:59 AM

Analysis summary

When RAs are received but the kernel/systemd-networkd does not install the default route, common causes are the kernel's per-interface accept_ra sysctl being 0 (sometimes toggled by network manager or after resume), a race or conflict between network managers (networkd vs NetworkManager) leaving interfaces unmanaged or with incorrect settings, or netplan/systemd-networkd configured to ignore RA-supplied routes. Router firmware bugs or filtering of ICMPv6 by host firewall are less common but possible. The immediate safe remediation is to re-enable accept_ra and restart the network daemon; persistent fixes include adjusting sysctl settings to persist across resume or configuring systemd-networkd to accept RAs explicitly or to manage the interface exclusively.

Possible causes

Kernel per-interface accept_ra gets set to 0 after resume or by another manager, preventing automatic installation of RA routes.

85%

Conflicting controllers (NetworkManager vs systemd-networkd) or netplan renderer mismatch causes race or partial/unmanaged state at resume.

65%

Netplan/systemd-networkd is configured to ignore RA-provided routes (e.g., use of DHCPv6 overrides or 'use-routes' disabled), so RAs are received but not installed.

55%

Router firmware or RA contents set flags/metric that the host rejects (low probability but reproduces on some vendor routers after sleep).

30%

Suggested fixes

1

Diagnostic step 1

Check current routes and RA presence: sudo ip -6 route && sudo tcpdump -n -i enp3s0 icmp6 -c 5 (install 'tcpdump' if missing) to confirm RAs arrive but default route missing.

2

Diagnostic step 2

Inspect accept_ra values: sysctl net.ipv6.conf.all.accept_ra && sysctl net.ipv6.conf.default.accept_ra && sysctl net.ipv6.conf.enp3s0.accept_ra. If any report 0, temporarily enable: sudo sysctl -w net.ipv6.conf.all.accept_ra=1 && sudo sysctl -w net.ipv6.conf.enp3s0.accept_ra=1.

3

Diagnostic step 3

Solicit RAs and restart network stack: install ndisc6 (sudo apt install ndisc6) then run sudo rdisc6 enp3s0 to force router solicitation; if that doesn't help, restart: sudo systemctl restart systemd-networkd && sudo journalctl -u systemd-networkd -n 200 --no-pager to inspect errors.

4

Diagnostic step 4

If manual route restoration is acceptable while troubleshooting: sudo ip -6 route add default via <router-ipv6> dev enp3s0 (remove with 'ip -6 route del default').

5

Diagnostic step 5

Make persistent if fix works: create /etc/sysctl.d/99-ipv6-accept-ra.conf with net.ipv6.conf.all.accept_ra=1 and net.ipv6.conf.default.accept_ra=1 (reboot or sudo sysctl --system), or adjust netplan/systemd-networkd configuration so the chosen renderer manages the interface and is configured to accept RAs or install routes (ensure only one manager controls the interface). Test by suspend/resume and re-check ip -6 route after resume.