Every VPS automatically gets its own IPv6 network (/64), provided its location supports IPv6. IPv6 is included with your VPS: you don't need to order it or pay extra for it.
- Open your VPS in the panel.
- Go to the Overview tab.
- Your network is listed under IPv6 networks in the IP addresses card (labeled “IPv6 /64”).
The IPv6 network is assigned and configured on the server during provisioning. You don't need to do anything else.
Migrated VPSs also receive their IPv6 network automatically and free of charge:
- Complete the migration.
- Start the VPS if it's stopped. The network is assigned only while the server is running.
- A few minutes later, the network appears in the IP addresses card, and the address is configured on the server.
After a restart, ZapX automatically configures the address again on Linux VPSs; Windows retains it automatically.
The entire /64 network belongs to your VPS, which contains 2⁶⁴ addresses. Only the address shown in the IP addresses card (ending in ::1) is configured. You can configure additional addresses from the network on the server yourself, for example …::2. The examples use the network 2001:db8:1:2::/64; replace it with your own.
Linux:
sudo ip -6 addr add 2001:db8:1:2::2/64 dev eth0
Replace eth0 with the name of your network interface (find it with ip a). This command applies until the next restart. To make the address persistent, add it to your system's network configuration—for example, under addresses in your Netplan file on Ubuntu.
Windows (Command Prompt running as administrator):
netsh interface ipv6 add address "Ethernet" 2001:db8:1:2::2
If necessary, replace Ethernet with the name of your network adapter. Windows retains the address after a restart.
If you run VMs or containers on your VPS (for example, with Proxmox or Docker) and want to assign them addresses from your /64, route the network to your VPS. This option is available only for VPSs in the Frankfurt / Eygelshoven location.
- Open your VPS and go to the Overview tab.
- In the IP addresses card, under IPv6 networks, turn on Route to VPS.
- The route will be active after about 2 minutes.
After that, our network sends all packets for your /64 to your VPS's …::1 address. Your VPS forwards them to the VMs and containers. You don't need an NDP proxy, and new addresses are reachable immediately. This also applies to additional addresses that you configure directly on the VPS.
Configure your VPS as follows (example network 2001:db8:1:2::/64):
- Keep the
…::1address configured on the external network interface; don't change the default route. The route won't become active without…::1. - Enable IPv6 forwarding. To keep it enabled after a restart, add the line
net.ipv6.conf.all.forwarding=1to/etc/sysctl.conf. - Assign your VMs a subnet from your /64, for example
2001:db8:1:2:1::/80, on an internal bridge. The VPS uses the first address in that subnet, and the VMs use it as their gateway.
sudo sysctl -w net.ipv6.conf.all.forwarding=1
Example of an internal bridge on Proxmox (/etc/network/interfaces):
auto vmbr1
iface vmbr1 inet6 static
address 2001:db8:1:2:1::1/80
bridge-ports none
bridge-stp off
bridge-fd 0
For example, a VM on vmbr1 can use the address 2001:db8:1:2:1::2/80 with the gateway 2001:db8:1:2:1::1.
Important:
- VMs with their own MAC address connected directly to the public network interface won't work; our network allows only your VPS's MAC address. Always route your VMs' traffic through the VPS.
- You can undo the route at any time using the same switch.
