IPv6 is now compatible with all of our dedicated and KVM VPS servers. To enable IPv6 inside your KVM virtual server you need to edit the etho file and add a route6 file into your servers networking scripts. The route6 file is optional but we advise to add one anyway.
These KVM IPv6 settings are unique to our network and will not function with KVM virtual servers with other providers. Consider a KVM VPS server from First2Host. Build the virtual server you require with the resources that you need and never pay for resources you’re not going to use again.
First, we need to make some changes to the eth0 file to enable IPv6 inside the virtual machine. It’s important you take a backup of the file so we can revert back to the default settings. If something goes wrong you can also login to your VPS control panel and hit “reconfigure networking”
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/bkifcfg-eth0
Add an IPv6 resolver into your resolv.conf file. We’re using Googles. Just paste the nameservers to the bottom of the file and save
nano /etc/resolv.conf nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844
Now let’s edit the eth0 file open the file in nano and paste the below code into the bottom of the file.
IPV6INIT=yes IPV6_AUTOCONF=no IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6ADDR= IPV6_DEFAULTGW=2607:5300:60:78ff:ff:ff:ff:ff
The file should look like this when you have finished
Some things to point out;
The IPv6 must be in its full form including CIDR notation at the moment we use /64 IPv6 blocks
To assign additional IPv6 addresses just enter them on a new line, when your server is setup we already route these to your machine they simply need placing in the file.
Now let’s create the route6 file
Now inside that file specify the gateway for IPv6
2607:5300:60:78ff:ff:ff:ff:ff dev eth0 default via 2607:5300:60:78ff:ff:ff:ff:ff
Save and close the file CNTRL+X
Restart the network
service network restart
After the network has restarted your server is now IPv6 ready and you should be able to contact your IPv6 address. If you can’t please contact our support team.
For Debian, Ubuntu, Fedora KVM VPS servers please follow this guide
How Was This Article? – How to enable IPv6 inside your CentOS KVM virtual server
You might also like
More from Linux VPS Servers
If you are using Cloudflare on your Apache server you will always see Cloudflare IPs in your logs and not …