Disable IPv6 – CentOS 7

Disabling IPv6 on CentOS 7 is pretty straight forward.

You should make sure you aren’t running anything that’s using your IPv6 address.

Add the following line inside the config at /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 = 1

To apply this change issue the following at shell:

sysctl -p