Home Technical How to disable ipv6 on your VPS

How to disable ipv6 on your VPS

Last updated on Sep 07, 2026

Currently, IPv6 is not supported on our VPS plans (with the exception of Cloud Server and Dedicated Server plans); consequently, you may occasionally be unable to connect to the Internet via IPv6 from your VPS and will need to disable IPv6 to restore normal connectivity. Please follow the instructions below to disable IPv6 on your VPS:

For Debian\Ubuntu:

  1. Find your VPS network configuration file name:

    Run this command on your VPS:

    ls /etc/netplan/

    (Usually, it is something like 50-cloud-init.yaml or 00-installer-config.yaml)

  2. Edit that file:

    Change 50-cloud-init.yaml with your VPS network configuration file name

    sudo nano /etc/netplan/50-cloud-init.yaml

  3. Add or edit the value link-local in your primary network interface configuration block (like eth0):

    link-local: [ ipv4 ]

  4. Apply the configuration:

    sudo netplan apply

  5. Check whether IPv6 has been disabled:

    ip add


    You will see that IPv6 does not appear in the command output.

FOR RHEL\CENTOS:

  1. Add sysctl configurations:

    • Open the main configuration file or create a dedicated runtime file:

      sudo vi /etc/sysctl.d/70-disable-ipv6.conf

    • Add the following lines to the file to turn off IPv6 for all current and future network interfaces:

      net.ipv6.conf.all.disable_ipv6 = 1

      net.ipv6.conf.default.disable_ipv6 = 1

  2. Apply the changes:

    • Load the new settings immediately without needing a system reboot:

      sudo sysctl --system

  3. Stop NetworkManager from overriding:

    CentOS uses NetworkManager to handle active interfaces, which can sometimes re-enable IPv6 on a reboot. You should explicitly set your connections to ignore IPv6:

    • View your active connections::

      nmcli connection show


    • Modify your specific interface (e.g., "cloud-init eth0") to ignore IPv6:

      sudo nmcli connection modify "cloud-init eth0" ipv6.method "disabled"

    • Bounce the connection to apply it:

      sudo nmcli connection up "cloud-init eth0"

  4. Verify IPv6 is disabled:

    Run the following command to check for any remaining active IPv6 configurations:

    ip addr show | grep inet6

    If the command returns no output, IPv6 has been successfully deactivated on your server.