Why I cannot disable IPv6 autoconfiguration even if the sysctl values are set to this?
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.enp2s0.accept_ra = 0
net.ipv6.conf.enp2s0.autoconf = 0
net.ipv6.conf.enp2s0.use_tempaddr = 0
net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0
Thank you for your help.
For reasons I am unclear about, I found that netplan needed an explicit configuration for accept_ra regardless of what was set in sysctl values, for example:
And apply the new config with
netplan try
. No reboot was required.I was using Ubuntu 18.04 but I assume 20.04 would be the same.