Last active
January 6, 2016 05:15
-
-
Save ryanbarrett/f850f734d68ab98e7059 to your computer and use it in GitHub Desktop.
Disable IPv6 in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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