How To Disable IPv6 on CentOS 6 / RHEL 6

This post guides you on how to disable IPv6 on CentOS 6 / RHEL 6.
Edit the /etc/sysctl.conf file.
vi /etc/sysctl.conf
Put the following entry to disable IPv6.
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1
Execute the following command to reflect the changes.
sysctl -p
That’s All.