These days while supporting application server we found that if the IPV6 is enable it can create a problem at the time of connectivity. As we are not using it we thought to disable it. In our environment we are using Red Hat Enterprise Linux(RHEL) 6.X and CentOS 6.X

To disable IPv6 on both this flavor we have add following lines in /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

And reboot the system.

If you want to disable IPv6 without rebooting your system, then you have to run following commands:

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6


sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
How to Disable IPv6 on RHEL / CentOS
Tagged on:                                                     

Leave a Reply

Your email address will not be published. Required fields are marked *