CentOS6.9关闭IPV6

Z先森 2018-09-28 AM 1371℃ 0条

关闭IPV6

cat << EOF > /etc/modprobe.d/ipv6.conf
alias net-pf-10 off
options ipv6 disable=1
EOF
echo "NETWORKING_IPV6=off" >>/etc/sysconfig/network
chkconfig ip6tables off
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >>/etc/sysctl.conf
sysctl -p
标签: none

如无特殊说明,本博所有文章均为博主原创。

评论啦~