Troubleshooting

When investigating routerd, first separate what routerd intends from what the host actually has. Verify routerd's view, then compare against the OS state.

When the service or status command fails

On Ubuntu, start by checking the service rather than retrying a live apply:

sudo systemctl status routerd.service --no-pager
sudo journalctl -u routerd.service -n 50 --no-pager
sudo routerd validate --config /usr/local/etc/routerd/router.yaml

Do not run a second routerd serve or live one-shot apply alongside the installed service. Keep the console open while diagnosing a failed network change.

Triage order

  1. sudo routerctl get status — overall view.
  2. sudo routerctl describe <kind>/<name> — focus on a specific resource.
  3. sudo routerctl plan — what would change next.
  4. OS commands (ip, nft, ss, journalctl) — actual host state.
  5. The relevant daemon's /v1/status and event log.

DHCPv6-PD

curl --unix-socket /run/routerd/dhcpv6-client/wan-pd.sock http://unix/v1/status
tail -n 20 /var/lib/routerd/dhcpv6-client/wan-pd/events.jsonl

Look for:

If the prefix is not Bound, or LeaseReady becomes false, IPv6 RA, AAAA, and DHCPv6 should be paused on the LAN. routerd's safety contract is to keep an unexpired prefix available during renewal, but stop advertising it after it is no longer usable.

DHCPv4

curl --unix-socket /run/routerd/dhcpv4-client/wan.sock http://unix/v1/status

Confirm DHCPv4Client is Bound. If you need an immediate renewal, POST /v1/commands/renew triggers it.

dnsmasq

In current routerd, dnsmasq is scoped to DHCPv4, DHCPv6, DHCP relay, and Router Advertisement. DNS resolution is handled by routerd-dns-resolver.

Check that the generated dnsmasq configuration:

DNS resolver

sudo curl --unix-socket /run/routerd/dns-resolver/<resource>.sock http://unix/v1/healthz
dig @<lan-ip> router.lan.example.org A
dig @<lan-ip> example.com A

Verify in this order:

DS-Lite

ip -6 tunnel show
ip route show default
nft list table ip routerd_nat

If the AFTR FQDN does not resolve, check the DNSResolver forward source for the AFTR domain. Public DNS often cannot resolve AFTR records that are scoped to a specific access network.

conntrack

Some environments do not expose /proc/net/nf_conntrack. In that case, routerd falls back to sysctl-derived counters. An empty per-flow list does not necessarily mean NAT is broken; check the routerctl get connections summary instead.

Things to avoid during diagnosis

See also