systemd-networkd drops IPv6 default route after netplan apply/resume on Ubuntu 22.04 — RA visible but no ::/0 route
Environment
Laptop running Ubuntu 22.04 LTS with netplan renderer=networkd, wired interface enp3s0 and IPv6 autoconfiguration via SLAAC/RA from an on-prem router; resume from suspend or netplan apply after docking reproduces the problem.
Symptoms
After resume or running 'sudo netplan apply' IPv6 connectivity to the internet is lost: websites time out over IPv6, traceroute6 shows no default hop, but interface still has a global IPv6 address and local neighbor entries.
Observations
ip -6 addr shows valid global address; ip -6 route lacks a default (::/0) entry; sudo tcpdump -i enp3s0 icmp6 shows Router Advertisements arriving; sysctl net.ipv6.conf.all.accept_ra reported 0 on affected interfaces after resume.
Already attempted
Restarted systemd-networkd and NetworkManager, replugged cable, rebooted, ran 'sudo netplan apply' several times, and temporarily added a manual 'ip -6 route add default via <router-ip> dev enp3s0' which restored connectivity until next suspend.
Question
What causes the kernel or systemd-networkd to stop installing the RA-provided default route after resume or netplan apply, and what is the safe fix so the default route is restored automatically without manual route add or reboot?
Verified community troubleshooting
Quick check: confirm RAs are arriving but no default is installed (sudo tcpdump -n -i enp3s0 icmp6 and ip -6 route). If RAs arrive, the kernel may be refusing them—verify sysctl net.ipv6.conf.enp3s0.accept_ra and net.ipv6.conf.all.accept_ra. Temporarily enable with sudo sysctl -w net.ipv6.conf.all.accept_ra=1 and sudo sysctl -w net.ipv6.conf.enp3s0.accept_ra=1, then solicit routers with rdisc6 enp3s0 or restart systemd-networkd. If that restores ::/0, persist by adding /etc/sysctl.d/99-ipv6-accept-ra.conf and ensure only one manager (networkd vs NetworkManager) controls the interface. Roll back by removing the sysctl file and reboot.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking28% match
systemd-networkd restores stale IPv4 default route after VPN disconnect on Ubuntu 22.04
Solved1 answer - Linux24% match
Broadcom STA/WL driver drops Wi‑Fi association after suspend on Linux laptop
Open0 answers - Networking24% match
Clients receive IPv6 addresses but no default route after enabling DHCPv6-only mode on OpenWrt router
Open0 answers - Networking23% match
Router stops advertising IPv6 default route after enabling RA + DHCPv6 coexistence
Open0 answers - Networking23% match
IPv6 connections open but certain websites time out after enabling SLAAC on home router
Open0 answers