debian 禁用 ipv6

Modified on: Mon, 29 Jan 2018 13:28:00 +0800

找到文件:/etc/sysctl.conf
尾部添加:

# IPv6 disabled
net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1
net.ipv6.conf.lo.disable_ipv6 =1

重启:sysctl -p

我的博客即将搬运同步至腾讯云+社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=23488rrau3ok0

添加新评论