There was a problem loading the comments.

How to Configure IPv6 on Your VPS

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Every EZSCALE VPS comes with an IPv6 address. This guide shows you how to find it and configure it on your server.

 

Finding Your IPv6 Address

Log in to the VirtFusion control panel at cp.vps.ezscale.tech, select your server, and click the Network tab. You will see your IPv6 address, prefix length (/64), and gateway.

 

Important: The On-Link Flag

This is the most common issue with IPv6 on EZSCALE VPS servers. Your IPv6 gateway (e.g., 2602:2f3::1) is on a different /64 subnet than your assigned address. This means you must use the on-link flag when adding the gateway route, or you will get "No route to host" errors.

 

Ubuntu / Debian (Netplan)

Edit your netplan config file (usually /etc/netplan/50-cloud-init.yaml or similar):

sudo nano /etc/netplan/50-cloud-init.yaml

Add the IPv6 configuration under your network interface. Here is a full example:

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: true
      addresses:
        - "2602:2f3:XY00:XXXX::1/64"
      routes:
        - to: default
          via: "2602:2f3::1"
          on-link: true
      nameservers:
        addresses:
          - 2001:4860:4860::8888
          - 2001:4860:4860::8844

Replace 2602:2f3:XY00:XXXX::1 with your actual IPv6 address and 2602:2f3::1 with your actual gateway from the VirtFusion panel.

Apply the configuration:

sudo netplan apply

 

AlmaLinux / Rocky Linux (nmcli)

Use the following commands, replacing the example addresses with your actual IPv6 info:

sudo nmcli connection modify eth0 ipv6.addresses "2602:2f3:XY00:XXXX::1/64"
sudo nmcli connection modify eth0 ipv6.gateway "2602:2f3::1"
sudo nmcli connection modify eth0 ipv6.method manual
sudo nmcli connection modify eth0 ipv6.dns "2001:4860:4860::8888 2001:4860:4860::8844"
sudo nmcli connection up eth0

For AlmaLinux/Rocky, you may also need to add a direct route for the gateway. If you get "No route to host" after the above commands, run:

sudo nmcli connection modify eth0 +ipv6.routes "2602:2f3::1/128 :: 100 onlink=true"
sudo nmcli connection modify eth0 ipv6.route-metric 100
sudo nmcli connection up eth0

 

Testing Your IPv6 Connection

Check that your address is assigned:

ip -6 addr show

Check your routes:

ip -6 route

Ping Google's IPv6 DNS server:

ping6 2001:4860:4860::8888

 

Common Issues

  • "Network is unreachable" -- The on-link flag is missing from your gateway route. Review the configuration examples above.
  • "No route to host" -- Wrong gateway address, or the on-link flag is not set. Double-check the gateway in your VirtFusion panel.
  • Random temporary IPv6 addresses appearing -- This is normal. Some Linux distributions enable IPv6 privacy extensions by default, which generate random temporary addresses for outbound connections. Your assigned static address will still work.

If you continue to have trouble, open a support ticket and include the output of ip -6 addr show and ip -6 route.


Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

© EZSCALE Hosting, LLC