嘟嘟社区

[疑问] CC怎么关闭IPV6


CC 打开ipv6后,奈飞好像会自动连上pv6,导致只能解锁自制,还是关了算了
设置ipv4优先出呗
echo " ">>/etc/sysctl.conf
echo "# made for disabled IPv6 in $(date +%F)">>/etc/sysctl.conf
echo ‘net.ipv6.conf.all.disable_ipv6 = 1’>>/etc/sysctl.conf
echo ‘net.ipv6.conf.default.disable_ipv6 = 1’>>/etc/sysctl.conf
echo ‘net.ipv6.conf.lo.disable_ipv6 = 1’>>/etc/sysctl.conf
tail -5 /etc/sysctl.conf
sysctl -p
对应系统的网络配置关闭ipv6 不就得了

重案组曹达华 发表于 2022-7-16 10:44
echo " ">>/etc/sysctl.conf
echo "# made for disabled IPv6 in $(date +%F)">>/etc/sysctl.conf
echo ‘ne …

好的,谢谢 这是DEBIAN环境下吗

michael1981 发表于 2022-7-16 10:52
好的,谢谢 这是DEBIAN环境下吗

可以的