How do I disable IPv6 permanently on all interfaces?
Open /etc/sysctl.conf with a text editor, and add the following lines.
#to disable IPv6 on all interfaces system wide
net.ipv6.conf.all.disable_ipv6 = 1
Then run
$ sudo sysctl -p /etc/sysctl.conf