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
^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_DEFAULTGW=
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
netmask 48
gateway
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
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/sysconfig/network.
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/sysconfig/network-scripts/ifcfg-eth0.
iface eth0 inet6 static
Address=<IPv6-IP-Address>
pre-up modprobe ipv6
Gateway=<IPv6-IP-Gateway-Address>
Scope=link
Still stuck? How can we help?
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.