MENU

Debian 禁用 IPV6

July 18, 2023 • 笔记

Debian 禁用 IPV6

编辑系统配置

vi /etc/sysctl.conf

增加下面的变量

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1

保存后执行

sysctl -p
Last Modified: July 20, 2024