Ubuntu关闭ipv6

2024-10-12 10:44:00

1、使用ifconfig命令查看网卡信息,如果出现了ipv6的信息证明ubuntu开启了ipv6

Ubuntu关闭ipv6

3、echo &孥恶膈茯quot;net.ipv6.conf.default.disable_ipv6 = 1">>/etc/sysctl.conf

Ubuntu关闭ipv6

5、重启操作系统或者执行sysctl -p命令

Ubuntu关闭ipv6
猜你喜欢