In some situations, we may need to disable the IPv6 on the server. Here I am providing the steps to do it on Centos servers. You can watch the video tutorial by clicking here.
- Open /etc/sysconfig/network file.
# vi /etc/sysconfig/network
- Add the following line at the bottom or if it already exists, edit it like the following:
NETWORKING_IPV6=no
- Save and exit the file.
- Open /etc/sysconfig/network-scripts/ifcfg-eth0 file(if the interface is configured with eth1 or any others, change the name accordingly).
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
- Add the following line at the bottom of the file or if it already exists, edit it like the following:
IPV6INIT=”no”
- Save and exit the file.
- Restart the network service:
# service network restart