linux内核 ipv6
Update: this only works on older Linux kernels (e.g. Fedora 12). For newer kernels, please see How to disabling IPv6 on Linux
更新:这仅适用于较旧的Linux内核(例如Fedora 12)。 对于较新的内核,请参阅如何在Linux上禁用IPv6
IPv6 is enabled by default on most Linux distros. However, IPv4 is still the mostly used network and IPv6 is not used in many environment. This post introduces how to disable IPv6 support on Linux.
大多数Linux发行版都默认启用IPv6。 但是,IPv4仍然是最常用的网络,并且在许多环境中都没有使用IPv6。 这篇文章介绍了如何在Linux上禁用IPv6支持。
The method is simple:
方法很简单:
# echo "options ipv6 disable=1" >> /etc/modprobe.d/disable-ipv6.conf
“option ipv6 disable=1” tells Linux not to enable the ipv6 module.
“ option ipv6 disable = 1”告诉Linux不要启用ipv6模块。
linux内核 ipv6