Skip to content

Instantly share code, notes, and snippets.

@yoxyue
Created May 26, 2014 01:37
Show Gist options
  • Save yoxyue/8f3d7de8c90c1ee2622d to your computer and use it in GitHub Desktop.
Save yoxyue/8f3d7de8c90c1ee2622d to your computer and use it in GitHub Desktop.
Ubuntu 12.04 disable ipv6
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