Search suggest: disabie IPv6 Ubuntu
0x01 临时方式
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
0x02 永久方式
编辑 /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
0x03 编辑 /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
GATEWAY=19.37.33.1
0x04 参(zhao)考(chao)
EOF