一聚教程网:一个值得你收藏的教程网站

热门教程

如何在CentOS5中关闭ipv6

时间:2022-11-14 22:08:38 编辑:袖梨 来源:一聚教程网

我们来说说在CentOS 5中关闭IPv6的方法:

1.修改/etc/modprobe.conf文件,在此文件中加入:
alias net-pf-10 off
alias ipv6 off

2.修改/etc/sysconfig/network文件,修改”NETWORKING_IPV6″一行为:
NETWORKING_IPV6=no

然后重启Centos系统即可。

还有一种简单方法:
echo "install ipv6 /bin/true" > /etc/modprobe.d/disable-ipv6

在5.4版本中需要改为以下命令:
echo "options ipv6 disable=1" > /etc/modprobe.d/disable-ipv6

热门栏目