Ubuntu 14.04 禁用ipv6
参考:
Ubuntu 14.04 禁用ipv6
1.检查ipv6是否开启:
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
2.禁用ipv6,在/etc/sysctl.conf
下加入以下内容:
#disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
3.reboot重启。
2017.6.11
To improve is to change, to be perfect is to change often.