Setup IPv6 address on a Dedicated Server

We are providing /48 IPv6 subnets with the dedicated servers. Here we have described how to set up an IPv6 address on a Linux server.

Centos Server

  1. Make sure that IPv6 is not disabled in the server configuration. So you need to check the sysctl file and add the entries below:

    # vi /etc/sysctl.conf

    net.ipv6.conf.default.disable_ipv6 = 0
    net.ipv6.conf.all.disable_ipv6 = 0
  2. Then we need to enable the IPv6 in network file as well:

    # vi /etc/sysconfig/network

    NETWORKING_IPV6=yes
  3. Add the entries in the active ethernet file, here I am doing it on eth0:

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

    Append the following lines in that file, make sure that IPv4 entries are not getting removed:

    IPV6INIT=yes
    IPV6ADDR=IPv6 IP-Address
    IPV6_DEFAULTGW=IPv6 Gateway Address
  4. Restart the network service:

    # /etc/init.d/network/restart

    Debian/Ubuntu Server

    1. Access the Network interfaces file and add the following entries:

    # sudo nano /etc/network/interfaces

    auto eth0
    iface eth0 inet6 static
    address <IPv6 IP-Address>
    netmask 48
    gateway <IPv6 Gateway Address>

    2. Restart the networking service:

    # sudo /etc/init.d/networking restart
    or
    # sudo systemctl restart networking


  • 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...