How to Setup IPv6 address on a Dedicated Server?

HostSailor

Member
Registered
Joined
May 16, 2014
Messages
20
Points
1
We are providing /48 IPv6 subnets with 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 the 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
 
Latest Threads
Replies
0
Views
122
Replies
1
Views
77
Recommended Threads
Replies
15
Views
6,964
Replies
5
Views
2,701
Jim
Replies
24
Views
9,128
Replies
0
Views
1,519

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top