Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
# reboot
sudo reboot
# sudo vi /etc/default/grub
# add
GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1"
# update grub
sudo update-grub
sudo reboot
# search for boot command line to confirm
grep Command /var/log/kern.log
# test if disabled
test -f /proc/net/if_inet6 && echo "ipv6 enabled" || echo "no ipv6"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment