Articles on: Guides

IPv6 Configuration On Linux

We offer free, fully routed /64 IPv6 per cloud server.


We do not support automatic (SLAAC) or dynamic (DHCPv6) IPv6 assignment for the time being. If you use our pre-built images and enable IPv6 during the initial deployment of your cloud server, it will be automatically configured via cloud-init (Linux) or cloudbase-init (Windows). If you install your OS using a custom ISO or enable IPv6 after the server has been created, you will need to configure it manually.


You can find necessary details to configure your IPv6 prefix in the Public IPv6 tab under the Network section.


Ubuntu 18.04, 20.04 / Debian 10, 11


  1. Create a new netplan file for the IPv6 config e.g. /etc/netplan/90-ipv6.yml. Replace 2401:a4a0:2:a3::/64 with your unique IPv6.
network:
ethernets:
eth0:
addresses:
- 2401:a4a0:2:a3::/64
gateway6: fe80::1
version: 2


  1. Enable the new config: sudo netplan apply
  2. Confirm IPv6 is configured: ip -6 a


Ubuntu 22.04+ / Debian 12+


  1. Create a new netplan file for the IPv6 config e.g. /etc/netplan/90-ipv6.yml. Replace 2401:a4a0:2:a3::/64 with your unique IPv6.
network:
ethernets:
eth0:
addresses:
- 2401:a4a0:2:a3::/64
routes:
- to: default
via: fe80::1
version: 2


  1. Enable the new config: sudo netplan apply
  2. Confirm IPv6 is configured: ip -6 a


RHEL (CentOS, AlmaLinux) 7-8


  1. Append the IPv6 configuration to the existing configuration file in /etc/sysconfig/network-scripts/ifcfg-eth0

without removing the current settings, as shown below. Replace 2401:a4a0:2:a3::/64 with your assigned unique IPv6 block.

IPV6ADDR=2401:a4a0:2:a3::/64
IPV6INIT=yes
IPV6_DEFAULTGW=fe80::1%eth0


  1. Restart the network service: sudo systemctl restart network
  2. Confirm IPv6 is configured: ip -6 a


RHEL (CentOS, AlmaLinux) 9


  1. Run the following command to add the IPv6 configuration to the interface. Replace 2401:a4a0:2:a3::/64 with your assigned unique IPv6 block.
nmcli connection modify eth0 \ ipv6.addresses 2401:a4a0:2:a3::/64 \ ipv6.gateway fe80::1 \ ipv6.method manual \ ipv6.may-fail yes

  1. Enable the new configuration: nmcli connection up eth0
  2. Confirm IPv6 is configured: ip -6 a

Updated on: 21/06/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!