How to disable IPv6 on a Centos Server

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.

  1. Open /etc/sysconfig/network file.
    # vi /etc/sysconfig/network 
  2. Add the following line at the bottom or if it already exists, edit it like the following:
    NETWORKING_IPV6=no
  3. Save and exit the file.
  4. 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
  5. Add the following line at the bottom of the file or if it already exists, edit it like the following:
    IPV6INIT=”no”
  6. Save and exit the file.
  7. Restart the network service:
    # service network restart
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...