编辑文件/etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1

sysctl -p

编码 /etc/sysconfig/network
NETWORKING_IPV6=no
重启网卡:service network restart
posted on 2017-08-23 11:55  网络终结者  阅读(255)  评论(0编辑  收藏  举报