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:
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
--- 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:
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:
Append the following line:
Open /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file)
Append the following config directives for IPv6:
Save and close the file and restart the network:
service network restart
Open your network interface file with your favorite editor.
Type in the information of your IPv6 to the network file:
iface eno1 inet6 static
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 8, 9, 10
systemctl restart networking
Open the /etc/network/interfaces file using a text editor of your choice:
Secondly, our Server Experts do some tweaks in the network configuration file, so that the IPv6 address becomes usable. In other words, we update the following parameters in the file /etc/sysctl.conf
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.eth0.accept_ra = 0
Further, we change the interface settings accordingly. For example, we change the below IPv6 parameters in the interface file /etc/network/interfaces
iface eth0 inet6 static
pre-up modprobe ipv6