RedHat / Centos Disable IPv6 Networking

To disable IPv6 networking on RedHat/CentOS, you need to modify the network configuration file. Here are the steps:

  1. Open the /etc/sysctl.conf file with a text editor:
    sudo vi /etc/sysctl.conf
  2. Add the following lines at the end of the file:
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
  3. Save and close the file.
  4. To apply the changes, run the following command:
    sudo sysctl -p

    This will reload the system settings, including the network configuration.

  5. Restart the networking service to make sure the changes take effect:
    sudo systemctl restart network

    This will restart the networking service and disable IPv6.

After these steps, IPv6 networking will be disabled on your RedHat/CentOS system. You can verify that IPv6 is disabled by running the ifconfig command and checking for any IPv6 addresses. If there are no IPv6 addresses, then IPv6 networking is successfully disabled.

Leave a Comment