如何在fedora上关闭ipv6
有时因为某些服务器不支持ipv6会出现EHOSTUNREACH错误,需要关闭ipv6
- 将如下几行配置添加到 /etc/sysctl.conf
1 | net.ipv6.conf.all.disable_ipv6 = 1 |
- 重新加载以上配置
1 | sysctl -p |
- Check. A ‘1’ means IPv6 has been disabled
1 | cat /proc/sys/net/ipv6/conf/all/disable_ipv6 |
如何在fedora上关闭ipv6