Created
May 26, 2014 01:37
-
-
Save yoxyue/8f3d7de8c90c1ee2622d to your computer and use it in GitHub Desktop.
Ubuntu 12.04 disable ipv6
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
sudo vi /etc/sysctl.conf | |
在最底增加一行:net.ipv6.conf.all.disable_ipv6 = 1 | |
保存退出 | |
sudo sysctl -p | |
最后用:ip a | grep inet6验证,如没有任何输出则禁用成功! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment