Centos 6 关闭IPV6

新增文件 /etc/modprobe.d/ipv6-off.conf 内容:

alias net-pf-10 off
alias ipv6 off

编辑 /etc/sysconfig/network 增加内容:

NETWORKING_IPV6=no

关闭自动启动ip6tables

chkconfig ip6tables off

重启即可

猜你喜欢

转载自lavafree.iteye.com/blog/1507930