Following some tutorials to disable ipv6 in my laptop (Ubuntu 16.04), I needed to write in /etc/sysctl.d/99-sysctl.conf the following lines:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
I run sudo sysctl -p and ipv6 is disabled. Fine.
After some time, or if I restart NetworkManager, or reboot my computer, I find in ifconfig that my ipv6 address got back, and I have to run sudo sysctl -p again.
So I cannot understand why my configuration is not definitive and something ignores my kernel parameters at runtime.