Add more IPv6 addresses from your /64

You add extra IPv6 addresses by writing them into the network configuration of the server, because the whole /64 is already routed to you and nothing has to be ordered. The tool depends on the image: netplan on Ubuntu, ifupdown on some Debian builds and NetworkManager on Rocky, Alma, Fedora and CentOS Stream. This guide gives a persistent example for each, then shows how to bind services and stop cloud-init from overwriting your work.

Networking and security guide, updated 2026-12-03

Why add more IPv6 addresses?

One server, one IPv4 address, but a whole /64 of IPv6. Extra IPv6 addresses let you give each service its own identity without buying anything. Typical reasons:

  • Separate addresses for separate websites, so logs and firewall rules can tell them apart.
  • A dedicated outgoing address for mail, with its own reverse DNS entry.
  • Containers or virtual machines that each get a public address instead of port mapping.
  • Testing: a fresh address to check how a remote service treats a new client.

Your network is shown on the server page as something like 2001:db8:1234:5678::/64. The examples below add ::10 and ::11 to the existing ::1.

Should you test with a temporary address first?

Yes. Adding an address by hand is instant and disappears on reboot, which makes it a safe first step:

ip -6 addr add 2001:db8:1234:5678::10/64 dev eth0
ip -6 addr show dev eth0 scope global

Replace eth0 with your interface name from ip -br link. From a different machine with IPv6, run ping -6 2001:db8:1234:5678::10. If it answers, routing for the whole /64 works and you can make the change permanent. Remove the test address with ip -6 addr del 2001:db8:1234:5678::10/64 dev eth0.

If the ping fails, check the firewall first (ufw status or nft list ruleset), then make sure you used the prefix from your own server page and not the example value.

How do you add addresses with netplan on Ubuntu?

Ubuntu 24.04 and 22.04 use netplan, which writes the final configuration for systemd-networkd. Cloud-init generates /etc/netplan/50-cloud-init.yaml. Rather than editing that file, add your own with a higher number so it is merged on top:

# /etc/netplan/60-extra-ipv6.yaml
network:
  version: 2
  ethernets:
    eth0:
      addresses:
        - 2001:db8:1234:5678::10/64
        - 2001:db8:1234:5678::11/64

The interface key must match the one in 50-cloud-init.yaml. If that file matches the interface by MAC address with a match block and a set-name, use the same key name. Protect the file and apply:

chmod 600 /etc/netplan/60-extra-ipv6.yaml
netplan try
netplan apply

netplan try reverts after 120 seconds unless you press Enter, which saves you if the change cuts your SSH session.

How do you add addresses with ifupdown on Debian?

Check which system your Debian server uses before editing anything: ls /etc/netplan /etc/network/interfaces.d. If YAML files exist in /etc/netplan, follow the netplan steps above. If the interface is defined under /etc/network/interfaces.d/, it is ifupdown.

With ifupdown, add extra addresses in a separate file so cloud-init does not overwrite them:

# /etc/network/interfaces.d/60-extra-ipv6
iface eth0 inet6 static
    address 2001:db8:1234:5678::10/64

iface eth0 inet6 static
    address 2001:db8:1234:5678::11/64

Several iface stanzas for the same interface are allowed and each adds an address. Confirm that /etc/network/interfaces contains source /etc/network/interfaces.d/*. Applying with ifdown eth0 && ifup eth0 drops the link briefly, so either run it inside screen or tmux, or add the address by hand with ip now and let the file take over at the next boot.

How do you add addresses with nmcli on Rocky, Alma, Fedora and CentOS Stream?

These images manage the network with NetworkManager. First find the connection name:

$ nmcli -t -f NAME,DEVICE con show
System eth0:eth0

The name may also read cloud-init eth0 or eth0. Add the addresses with a + so the existing ones stay, then reapply:

nmcli con mod "System eth0" +ipv6.addresses "2001:db8:1234:5678::10/64,2001:db8:1234:5678::11/64"
nmcli device reapply eth0

device reapply applies the change without taking the link down. The result is stored as a keyfile in /etc/NetworkManager/system-connections/ on Rocky 10, Alma 10, Fedora 43 and CentOS Stream 10. Older systems may still use /etc/sysconfig/network-scripts/ifcfg-eth0; nmcli writes whichever format the connection already uses, so you never need to edit those files by hand.

Check with nmcli -g ipv6.addresses con show "System eth0".

What about openSUSE Leap?

openSUSE Leap 15.6 uses wicked by default on many cloud builds. Extra addresses go into /etc/sysconfig/network/ifcfg-eth0 as numbered entries:

IPADDR_1='2001:db8:1234:5678::10/64'
IPADDR_2='2001:db8:1234:5678::11/64'

Apply with wicked ifreload eth0. If systemctl is-active NetworkManager prints active, the nmcli method above applies instead.

How do you stop cloud-init from overwriting your changes?

Cloud-init can regenerate the network configuration at boot. Separate files with a higher number usually survive, but to be certain, tell cloud-init to leave the network alone:

# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network:
  config: disabled

After that, the files cloud-init wrote last time stay as they are and become yours to maintain. Do this before you edit 50-cloud-init.yaml directly; otherwise a later boot may restore its original content. The full static setup is explained in static network configuration.

How do you bind a service to one specific address?

Once an address exists on the interface, a service can listen on it alone. Examples:

# nginx
listen [2001:db8:1234:5678::10]:443 ssl;

# Postfix, in /etc/postfix/main.cf
inet_protocols = all
smtp_bind_address6 = 2001:db8:1234:5678::11

# OpenSSH, in /etc/ssh/sshd_config.d/10-listen.conf
ListenAddress 2001:db8:1234:5678::10

For outgoing tests, many tools accept a source address: curl --interface 2001:db8:1234:5678::11 -6 https://example.com or ping -6 -I 2001:db8:1234:5678::11 example.com.

A service that starts before the address is configured will fail to bind. On systemd hosts, add After=network-online.target and Wants=network-online.target to the unit, or set net.ipv6.ip_nonlocal_bind = 1 so the bind succeeds early.

How do you verify everything after a reboot?

The real test of a persistent setup is a reboot. Run reboot, reconnect, and check:

ip -6 addr show dev eth0 scope global
ss -tlnp | grep 2001:db8

All addresses should be listed and each bound service should show its address. Then test from outside with ping -6 and curl -6. If an address is missing, the most likely cause is a typo in the interface name or YAML indentation; netplan get prints the merged configuration and journalctl -u systemd-networkd -b shows what went wrong.

Questions about this guide

Do I need to ask support before using more IPv6 addresses?

No. The whole /64 is routed to your server from the start, so any address inside it works as soon as Linux has it configured.

Is there a limit on how many addresses I add?

The network has no practical limit, but each address costs a little kernel memory and neighbour table space. Dozens or hundreds are fine; for thousands, consider binding services to the whole prefix with ip -6 route add local instead.

Can each extra IPv6 address have its own reverse DNS name?

Yes. Open a support ticket naming the address and the hostname, after the matching AAAA record exists. See reverse DNS.

Can I add extra IPv4 addresses the same way?

No. Each server has one IPv4 address and no extra IPv4 addresses are sold. Use IPv6 or a reverse proxy for additional endpoints.

Will a rebuild keep my extra addresses?

The /64 stays with the server, but the rebuild wipes the disk, so the config files are gone. Keep your netplan or nmcli commands in a script and run it again after a rebuild.

Why does netplan warn about file permissions?

Netplan wants its YAML files readable by root only. Run chmod 600 /etc/netplan/*.yaml and the warning disappears.