Debian 9 关闭 IPV6的方法

5.80K 浏览技术资料
0

Debian 9 关闭 IPV6官方给了两种方法。

第一种:

/etc/default/grub文件的GRUB_CMDLINE_LINUX变量中添加IPV6_DISABLE=1,然后运行update-grub,最后重启服务器。

第二种:

编辑/etc/sysctl.conf,添加或者编辑以下变量:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1


最后sysctl -p即可。


分享到:
Qi 问的问题 2020年1月5日
添加评论
写下您的答案。

Login

Welcome! Login in to your account

Remember me Lost your password?

Don't have account. Register

Lost Password

Register