Virtarix documentation

Configure IPv6 on your VPS

IPv6 is available in Frankfurt and Dallas (it is not offered in Johannesburg at present). Open a support ticket to get your assigned /64 prefix and gateway, then merge those values into your Ubuntu, Debian or Windows network configuration while keeping IPv4 and Console open.

1. Get your assigned IPv6 prefix, address and route

IPv6 is not offered in Johannesburg at present. These steps apply to Frankfurt and Dallas only.

Open a support ticket, select your Related Service, and state your location and OS version. Request your /64 prefix, guest IPv6 address, gateway and route method. Never guess the gateway by adding ::1.

2. Keep IPv4 working and open Console

Open Console on your VPS page before editing network files. Back up your current configuration and check your active interface:

Inside the VPSCheck your network interface, addresses and routesUbuntu / DebianBash
ip -br link
ip -6 address
ip -6 route
Inside the VPSCheck your network interface, addresses and routesWindowsPowerShell
Get-NetAdapter
Get-NetIPAddress -AddressFamily IPv6
Get-NetRoute -AddressFamily IPv6

The examples below use RFC 3849 2001:db8::/32 documentation addresses. Replace the interface, address, prefix and gateway with the exact values Support assigned to your VPS.

3. Prepare IPv6 on Ubuntu, Debian or Windows

On Ubuntu 22.04 or 24.04, edit your existing .yaml file in /etc/netplan/ (Netplan static examples) and merge the IPv6 address and route into your interface block. Keep your existing IPv4, DNS and renderer lines intact.

On Debian using ifupdown, add the inet6 static block to /etc/network/interfaces while keeping the existing IPv4 block untouched. If your Debian image uses Netplan, follow the Ubuntu procedure instead; never run two network managers together. Keep Console open and back up the current configuration before editing.

On Windows, run the example in Administrator PowerShell with your assigned values while preserving IPv4. New-NetIPAddress and New-NetRoute take effect immediately, so keep Console available before making changes:

Inside the VPSIPv6 examples for Ubuntu, Debian and WindowsUbuntuYAML
network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - "2001:db8:1234:1::10/64"
      routes:
        - to: "::/0"
          via: "2001:db8:1234:1::1"
Inside the VPSIPv6 examples for Ubuntu, Debian and WindowsDebianText
iface eth0 inet6 static
    address 2001:db8:1234:1::10/64
    gateway 2001:db8:1234:1::1
Inside the VPSIPv6 examples for Ubuntu, Debian and WindowsWindowsPowerShell
New-NetIPAddress -AddressFamily IPv6 -InterfaceAlias "Ethernet" -IPAddress "2001:db8:1234:1::10" -PrefixLength 64
New-NetRoute -AddressFamily IPv6 -InterfaceAlias "Ethernet" -DestinationPrefix "::/0" -NextHop "2001:db8:1234:1::1"

4. Debian: configure IPv6 with your current network manager

Check that the example above is added to the active interface in /etc/network/interfaces. Keep your IPv4 configuration in place before applying the change in Step 6.

5. Windows: configure your assigned IPv6 address and route

Check that the address, prefix, gateway and interface alias in the example above match the values assigned to your VPS before running it.

6. Apply the changes and test IPv4 and IPv6 connectivity

On Ubuntu, confirm the Netplan trial only after both IPv4 and IPv6 work. On Debian using ifupdown, restart networking from Console during a maintenance window; if networking fails, restore your backed-up configuration before closing Console.

Inside the VPSApply the configuration after checking your assigned valuesUbuntuBash
sudo netplan generate
sudo netplan try --timeout 120
Inside the VPSApply the configuration after checking your assigned valuesDebianBash
sudo systemctl restart networking
ip -6 address
ip -6 route
Inside the VPSApply the configuration after checking your assigned valuesWindowsPowerShell
Get-NetIPAddress -AddressFamily IPv6
Get-NetRoute -AddressFamily IPv6

Test outbound and inbound IPv6 plus your existing IPv4 connection before closing Console.

Frequently asked questions

Which IPv6 address should I enter?

Use only the /64 prefix, address and gateway assigned to your VPS by Support. Never use the 2001:db8:... documentation examples.

Is IPv6 available in Johannesburg?

No. IPv6 is not offered in Johannesburg at present. These steps apply to Frankfurt and Dallas only.