Disable IPv6 in CentOS
From KlavoWiki
Jump to navigationJump to search
Apparently it is not recommended to per se disable IPv6 in CentOS. What we can do is unbind IPv6 from the network card.
/etc/sysctl.conf
Add the following lines
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1
The above will be in effect after a reboot.
To unbind IPv6 on the system without a reboot and a temporary unbind until a reboot is performed.
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6