首页>云服务器问答/资讯>Ubuntu18.04系统中如何关闭ipv6

Ubuntu18.04系统中如何关闭ipv6

发布时间:2022/10/29 11:32:10

Ubuntu18.04系统中如何关闭ipv6

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

1.查看ipv6

ifconfig

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

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-205

3.再次查看ipv6

ifconfig

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

在线客服
微信公众号
免费拨打0592-5580190
免费拨打0592-5580190 技术热线 0592-5580190 或 18950029502
客服热线 17750597993
返回顶部
返回头部 返回顶部