Disable IPv6 on CentOS 6 / RHEL 6


CentOS 6 Logo

This is the Mini How to on disabling IPV6 networking on CentOS 6 / RHEL 6, in this you need to edit the two following files.

/etc/modprobe.d/modprobe.conf – Module file

/etc/sysconfig/network-scripts/ifcfg-eth0 –  Network Configuration file.

Run the following in the command to insert the IPv6 modules.

echo install ipv6 /bin/true >> /etc/modprobe.d/modprobe.conf

Edit the network configuration file to disable the IPv6.

 vi /etc/sysconfig/network-scripts/ifcfg-eth0

Add the following entry.


Simply reboot the system


That’s All.

You might also like