How to Configure IPv6

This tutorial is about how to configure IPv6 address in major operating systems.

Step 0. Obtain your IPv6 address

  1. Find your server in "My Products" and click in control panel
  2. Click Network Button
  3. You can now see your IPv6 address and gateway, you may add or delete an IPv6 address.

Step 1#1. Configure your IPv6 address in Debian / Ubuntu

a. Edit /etc/network/interfaces

You may use your favourite text editor to open the file. For example VIM.

vim /etc/network/interfaces

Add the following codes to the end, change the part in red.

Please note that the interface name may be ens3, the actual name is shown in existing lines.

iface eth0 inet6 static

address Your_IPv6_Address

netmask 54

gateway Your_IPv6_Gateway

b. Restart network

systemctl restart network.service

Your IPv6 should be working now.

Step 1#2. Configure your IPv6 address in CentOS / Fedora

a. Edit /etc/sysconfig/network

vim /etc/sysconfig/network

Add the following line to the end:

NETWORKING_IPV6=yes

b. Edit intereface file

vim /etc/sysconfig/network-scripts/ifcfg-eth0

Please note that the interface name may not be eth0, please change it to the actual name.

Add the following lines to the end, please change the red part accordingly:

IPV6INIT=yes
IPV6ADDR=Your_IPv6_Address/54
IPV6_DEFAULTGW=Your_IPv6_Gateway

c. Restart Network

service network restart

Your IPv6 should be working now.

Step 2. Test IPv6 Connection

An easy way is to ping other IPv6 Address.

ping6 ipv6.google.com
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install OS via ISO on KVM VPS

When you ordered a KVM VPS from us, you will have access to our KVM control panel. The buttons...

How to use Data Disk

StarryDNS offers KVM VPS with disk structure as follows: /dev/vda – os disk — /dev/vda1 – /boot...

Data Disk - Create New Partition and Mount to /home

This tutorial will help you create new partition on data disk and mount it to /home in our KVM...

Data Disk - Create New Partition and Merge to /

This tutorial is about how to create partition on data disk and merge it with OS disk to extend...

Data Disk - Use Data Disk as SWAP

This tutorial helps you create swap in data disk. We will make disk structure to: /dev/vda – os...