How to disable IPv6?
To check status:
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
0Zero means it's enabled, proceed.
Temporary
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1Permanent
Edit /etc/default/grub such that:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"and then run sudo update-grub.
ℹ️
This might be needed if
- Chrome gives
ERR_NETWORK_CHANGEDregularly - A container with
-net=hostnetworking is running