# 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.

Last updated: 2026-10-28

## 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](<https://my.virtarix.com/submitticket.php>), 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 VPS · Check your network interface, addresses and routes — Ubuntu / Debian · Bash**

```sh
ip -br link
ip -6 address
ip -6 route
```

**Inside the VPS · Check your network interface, addresses and routes — Windows · PowerShell**

```powershell
Get-NetAdapter
Get-NetIPAddress -AddressFamily IPv6
Get-NetRoute -AddressFamily IPv6
```

The examples below use [RFC 3849 `2001:db8::/32` documentation addresses](<https://www.rfc-editor.org/info/rfc3849/>). 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](<https://canonical-netplan.readthedocs-hosted.com/en/0.106/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`](<https://manpages.debian.org/bookworm/ifupdown/interfaces.5.en.html>), 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`](<https://learn.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=windowsserver2025-ps>) and [`New-NetRoute`](<https://learn.microsoft.com/en-us/powershell/module/nettcpip/new-netroute?view=windowsserver2025-ps>) take effect immediately, so keep Console available before making changes:

**Inside the VPS · IPv6 examples for Ubuntu, Debian and Windows — Ubuntu · YAML**

```yaml
network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - "2001:db8:1234:1::10/64"
      routes:
        - to: "::/0"
          via: "2001:db8:1234:1::1"
```

**Inside the VPS · IPv6 examples for Ubuntu, Debian and Windows — Debian · Text**

```text
iface eth0 inet6 static
    address 2001:db8:1234:1::10/64
    gateway 2001:db8:1234:1::1
```

**Inside the VPS · IPv6 examples for Ubuntu, Debian and Windows — Windows · PowerShell**

```powershell
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 VPS · Apply the configuration after checking your assigned values — Ubuntu · Bash**

```sh
sudo netplan generate
sudo netplan try --timeout 120
```

**Inside the VPS · Apply the configuration after checking your assigned values — Debian · Bash**

```sh
sudo systemctl restart networking
ip -6 address
ip -6 route
```

**Inside the VPS · Apply the configuration after checking your assigned values — Windows · PowerShell**

```powershell
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.

> **Still stuck?** Open a support ticket with your server IP, hostname, invoice number and what you have already tried.
