Skip to main content

Ubuntu disable ipv6

Ubuntu disable ipv6

编辑/etc/sysctl.d/99-sysctl.conf
sudo vim /etc/sysctl.d/99-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
host中注释掉 ipv6 地址