This is mini how to on disabling ipv6 on CentOS 7 / RHEL 7, it can be disabled either by using sysctl.conf or by placing conf in the /etc/sysctl.d directory. CentOS 7 now supports disabling IPv6 for all or particular network adapter.
Method 1:
Edit the /etc/sysctl.conf.
Put the following entry to disable IPv6 for all adapter.
For particular adapter. (If the network card name is eno16777736).
To reflect the changes by executing the following command.
Method 2:
Create file called disableipv6.conf in /etc/sysctl.d.
Put the following entry to disable IPv6 for all adapter
For particular adapter. (If the network card name is eno16777736).
You must reboot the server to take an effect of the changes.
That’s All.