手机站 | 电信站 | 联通站|联系电话:18925583550

Centos 关闭IPV6 全面方法

Centos 关闭IPV6 全面方法

网上大家都在传这个信息,可是很多时候都关不掉只得重装。到官网上看到全面的方法。有效!

vi /etc.sysconfig/networkt

     NETWORKING_IPV6 no

vi /etc/modprobe.conf

 

alias ipv6 off
alias net-pf-10 off
options ipv6 disable=1

特别是红色部份。关他呢,全加上。reboot 后,ip6 真的去掉了。

 

 

  • Edit /etc/sysconfig/network and set "NETWORKING_IPV6" to "no"
  • For 5.4 and later, replace in /etc/modprobe.conf

 

alias ipv6 off

 

by

options ipv6 disable=1

 

Alternative (which might be easier and works on any release with /etc/modprobe.d):

# touch /etc/modprobe.d/disable-ipv6.conf
# echo "install ipv6 /bin/true" >> /etc/modprobe.d/disable-ipv6.conf 

 

  • For CentOS 5.3 or older, add the following to /etc/modprobe.conf :

 

alias ipv6 off
alias net-pf-10 off

 

  • Run /sbin/chkconfig ip6tables off to disable the IPv6 firewall

分享到:

热门关注