侧边栏壁纸
  • 累计撰写 175 篇文章
  • 累计创建 87 个标签
  • 累计收到 1 条评论

目 录CONTENT

文章目录

CentOS6.9关闭IPV6

Z先森
2018-09-28 / 0 评论 / 0 点赞 / 4 阅读 / 405 字 / 正在检测是否收录...

关闭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
0

评论区