万境归空,道法自然
cat << EOF > /etc/modprobe.d/ipv6.confalias net-pf-10 offoptions ipv6 disable=1EOF
NETWORKING_IPV6=off
chkconfig ip6tables off
reboot
ip -6 addr showlsmod |grep ipv6
运行截图:
centos6.5关闭ipv6
原文:http://www.cnblogs.com/xiaochina/p/7903150.html