当前位置:首页 > 环境配置 > 系统 > 正文内容

debian12中关闭IPV6

编辑/etc/sysctl.conf文件,添加配置


#关闭所有IPV6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
#关闭指定网卡IPV6
net.ipv6.conf.网卡名.disable_ipv6=1
#保存后运行查看结果
sysctl -p


分享给朋友:

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。