Ubuntu18.04系统结构中如何关闭ipv6
资讯 2025-03-02 18:03 185

Ubuntu18.04体系中如何关闭ipv6

在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