I was looking at this bug while working on another accept-ra related
thing and found this:

As far as I can tell, networkd will always set the per-interface
accept_ra parameter to 0:

https://github.com/systemd/systemd/blob/v255/src/network/networkd-
sysctl.c#L146

The explanation for that is documented in an old version of this code
(which was moved from networkd-link.c to networkd-sysctl.c):

https://github.com/systemd/systemd/blob/v241/src/network/networkd-
link.c#L2609

It's also described in different words on systemd.network(5):

Note that kernel's implementation of the IPv6 RA protocol is always
disabled, regardless of this setting. If this option is enabled, a
userspace implementation of the IPv6 RA protocol is used, and the
kernel's own implementation remains disabled...


The Netplan documentation need to be updated. It currently says "If unset use 
the host kernel default setting" but, at least when networkd is used, the 
"default" will always be disabled because networkd itself will force it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1862481

Title:
  Cannot set accept-ra to 2, it keeps reseting it to 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1862481/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to