Ubuntu 關閉 ipv6

修改設定檔

sudo vim /etc/sysctl.conf
# 最後面加入下面
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

直接套用

sudo sysctl -p
This entry was posted in Ubuntu. Bookmark the permalink.