Skip to content

Instantly share code, notes, and snippets.

@ryanbarrett
Last active January 6, 2016 05:15
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 ryanbarrett/f850f734d68ab98e7059 to your computer and use it in GitHub Desktop.
Save ryanbarrett/f850f734d68ab98e7059 to your computer and use it in GitHub Desktop.
Disable IPv6 in Ubuntu
#Tried this, It did not work:
# Put at bottom of /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
# Then run:
sudo sysctl -p
# For some reason, need to run sysctl -p after every reboot.
#Also Tried this, it did not work:
#sudo nano /etc/default/grub
#Look for the line containing "GRUB_CMDLINE_LINUX" and edit it as follows
GRUB_CMDLINE_LINUX="ipv6.disable=1"
#$ sudo update-grub2
#Reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment