Skip to content

Instantly share code, notes, and snippets.

@colhountech
Last active January 20, 2021 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colhountech/9ce93c63ed412131a919985c7e2d6d61 to your computer and use it in GitHub Desktop.
Save colhountech/9ce93c63ed412131a919985c7e2d6d61 to your computer and use it in GitHub Desktop.
# /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