Ubuntu/Debian/CentOS IPv6 Network Configuration

Firstly, log in to your SolusVM Control Panel, choose your VPS and navigate to the Network Tab:

You can follow this guide to access the SolusVM control panel or in the client area:

“How to manage your KVM VPS”

1.Click on Network tab, and choose Manage to add IPv6:

2. Type anything and click add to add IPv6 to your VPS:

After that, you have both ways to configure IPv6.

Method 1: Configure on SolusVM or in the client area.

First, login your account to SolusVM or in the client area and choose “Reconfigure network”

After that, verify your configuration by pinging ipv6 enabled site such as ipv6.google.com:

[[email protected] network-scripts]# ping6 ipv6.google.com
PING ipv6.google.com(lax02s23-in-x0e.1e100.net) 56 data bytes
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=1 ttl=59 time=4.64 ms
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=2 ttl=59 time=0.352 ms
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=3 ttl=59 time=0.356 ms
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=4 ttl=59 time=0.382 ms
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3590ms
rtt min/avg/max/mdev = 0.352/1.434/4.649/1.856 ms
Method 2: You need should to update and configure files for IPv6 configuration:
CentOS:  

1 /etc/sysconfig/network : Turn on networking in this file.
2 /etc/sysconfig/network-scripts/ifcfg-eth0 : Set default IPv6 router IP and server IP address in this file.

Open /etc/sysconfig/network file, enter:

vi /etc/sysconfig/network

Append the following line:

NETWORKING_IPV6=yes

Open /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file)

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

Append the following config directives for IPv6:

IPV6INIT=yes
IPV6ADDR=<IPv6-IP-Address>
IPV6_DEFAULTGW=<IPv6-IP-Gateway-Address>

Save and close the file and restart the network:

service network restart
Debian 

Open your network interface file with your favorite editor.

vi /etc/network/interfaces

Type in the information of your IPv6 to the network file:

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

You have a few options to enable the IPv6. The easiest way is to restart the networking service. You can use the commands below to restart the network service.

Debian 7

/etc/init.d/networking restart

Debian 8, 9, 10

systemctl restart networking
Ubuntu 

Open the /etc/network/interfaces file using a text editor of your choice:

vi /etc/network/interfaces

Open your network interface file with your favorite editor.

vi /etc/network/interfaces

Then, add the following content to the file:

iface eth0 inet6 static
Address=<IPv6-IP-Address>
pre-up modprobe ipv6
Gateway=<IPv6-IP-Gateway-Address>
Scope=link
After that you can reset the service and test ping IPv6.