< 返回新闻公告列表

Ubuntu18.04系统中如何关闭ipv6

发布时间:2022-11-5 14:51:12    来源: 纵横云

Ubuntu18.04系统中如何关闭ipv6

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

1.查看ipv6

ifconfig

Ubuntu18.04系统中如何关闭ipv6-188

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

Ubuntu18.04系统中如何关闭ipv6-189

3.再次查看ipv6

ifconfig

Ubuntu18.04系统中如何关闭ipv6-190
19906048601
19906048601 19906048601
返回顶部
返回顶部 返回顶部