1.如何察看开启了ipv6呢?
# ifconfig
如图,发现采用了 inet6 addr: 就说明已经开启了ipv6支持了
2. 关闭的方法有3种
首先你得在用户程序那里做出修改,在/etc/sysconfig/network 中
确认添加了NETWORKING_IPV6=no
2.1添加一个新文件/etc/modprobe.d/ipv6.conf,内容
alias net-pf-10 off
alias ipv6 off
2.2 或者,在 /etc/modprobe.d/blacklist.conf 中添加2行语句就可以了
blacklist net-pf-10
blacklist ipv6
blacklist ipv6
我采用的第2种方法为了和arch一样,呵呵
2.3 根据cento wiki的faq解释,还有一种方法
Upstream employee Daniel Walsh recommends
not disabling the ipv6 module, as that can cause issues with SELinux
and other components, but adding the following to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
3.关闭
ip6tables
# service ip6tables stop
# chkconfig ip6tables off
重启系统,然后再次检测IPv6支持
# reboot
# ifconfig
No comments:
Post a Comment