neptun: stop processing router advertisements on eth0

Addressing is fully static, but netcup's router still sends periodic RAs on
this segment; the kernel then tries (and fails, since the static route
already exists) to install its own default route from them, spamming
"ndisc_router_discovery failed to add default route" on the console.
This commit is contained in:
2026-07-29 21:43:11 +02:00
parent 63ca6f8409
commit 29ddd0cb7c
+6
View File
@@ -42,6 +42,12 @@
# default via fe80::1 dev eth0 metric 1024 onlink # default via fe80::1 dev eth0 metric 1024 onlink
networking.defaultGateway6 = { address = "fe80::1"; interface = "eth0"; }; networking.defaultGateway6 = { address = "fe80::1"; interface = "eth0"; };
networking.nameservers = [ "9.9.9.9" "1.1.1.1" "2620:fe::fe" ]; networking.nameservers = [ "9.9.9.9" "1.1.1.1" "2620:fe::fe" ];
# Addressing is fully static above, but netcup's router still sends periodic
# RAs on this segment; the kernel then tries (and fails, since the static
# route already exists) to install its own default route from them, spamming
# "ndisc_router_discovery failed to add default route" on the console. Stop
# it from processing RAs on eth0 at all rather than just live with the noise.
boot.kernel.sysctl."net.ipv6.conf.eth0.accept_ra" = 0;
# ---- Local split-DNS stub ---- # ---- Local split-DNS stub ----
# neptun must NOT take the tailnet's DNS: headscale points every node at # neptun must NOT take the tailnet's DNS: headscale points every node at