1

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.

Seolh
  • 11
  • 3

1 Answers1

1

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:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      accept-ra: false
      addresses:
        - xxx.xxx.xx.xx/22

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.

TommyPeanuts
  • 841
  • 1
  • 8
  • 24