Centos6关闭ipv6
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
1./etc/sysconfig/network 新增如下一行
NETWORKING_IPV6=off
- 在 /etc/modprobe.d/dist.conf增加以下内容
alias net-pf-10 off options ipv6 disable=1
- 关闭ip6iptables自启
chkconfig ip6tables off
4.reboot重启
请我喝杯水


1./etc/sysconfig/network 新增如下一行
NETWORKING_IPV6=off
alias net-pf-10 off options ipv6 disable=1
chkconfig ip6tables off
4.reboot重启