How do I add an IPv6 address to my VPS?

At this time, we do not activate IPv6 by default for new VPSs. Of course, there is no problem activating IPv6. To get IPv6 activated, first of all you need to signal our customer service that you want it, then you can perform the steps below.

Place the following file named ipv6.yaml in the directory /etc/netplan/
Note the following lines in this file:

  • ens7: This refers to the name of the interface and in 99% of cases is ens7. You can check this with the command “ip a”
  • (IPv6 IP from My Hosting): Replace this text, including the parentheses, with the IPv6 IP address of your VPS. You’ll find the IPv6 IP address in My Hosting under the heading “Interfaces.”
  • (MAC address from My Hosting): Replace this text, including the parentheses, with the MAC address of your VPS. You can find the MAC address in My Hosting under the heading “Interfaces”

network:
version: 2
ethernets:
ens7:
accept-ra: false
addresses:
- (IPv6 IP uit Mijn Hosting)/64
match:
macaddress: (MAC adres uit Mijn Hosting)
mtu: 9000
nameservers:
addresses:
- 2001:4860:4860::8888
- 2001:4860:4860::8844
- 2606:4700:4700::64
- 2606:4700:4700::6400
search: []
routes:
- to: ::/0
via: 2a05:6cc1::1
set-name: ipv6ip

After saving the file, run the command below to make the IPv6 address active:

sudo netplan try

Now you can test the change by using the following command:

ping6 hosting.nl

Need help from one of our hosting gurus?

Do you need an urgent answer to a question or help from our support? Our hosting specialists are more than happy to assist you!

Customer Support Team

Our customer service is open until 18:00 hour

Of neem een kijkje in onze 'stap-voor-stap' support handleidingen.

View support articles