CentOS6でIPV6を完全に無効化 Disable IPv6 completely on CentOS6

  • vi /etc/sysconfig/network
> NETWORKING_IPV6=no
> IPV6INIT=no
  • vi /etc/sysctl.conf
> # Disable ipv6
> net.ipv6.conf.all.disable_ipv6 = 1
> net.ipv6.conf.default.disable_ipv6 = 1
  • vi /etc/modprobe.d/blacklist.conf
> blacklist net-pf-10
> blacklist ipv6
  • vi /etc/modprobe.d/disable-ipv6.conf(new file)
> install ipv6 /bin/true
  • cd /etc/rc.d/init.d/ && chkconfig ip6tables off
  • reboot

参考
CentOS6 FAQ: How do I disable IPv6?