Ubuntu18.04系统中如何关闭ipv6

发布时间:2022-06-16 09:58

Ubuntu18.04系统中如何关闭ipv6呢?本文给出详细说明。

1.查看ipv6

ifconfig

2.编辑配置文件/etc/sysctl.conf,在文件末尾添加以下命令后保存并重启系统。

net.ipv6.conf.all.disable_ipv6=1

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

3.再次查看ipv6

ifconfig

本文导读