- Disable
cloud-initNetwork Overrides First: On Ubuntu 22.04/24.04 cloud images,/etc/netplan/50-cloud-init.yamlloads lexicographically after01-*.yaml— disablecloud-initnetworking before settingdhcp6: falseandon-link: trueforfe80::1. - Zero-Lockout Rollback Protection: Lock Netplan YAML files to
chmod 600and always apply changes viasudo netplan tryso broken SSH routes automatically revert after 120 seconds. - Docker Bridge vs. Docker Compose IPv6: Setting
fixed-cidr-v6indaemon.jsononly covers the defaultdocker0bridge; Coolify and custom Compose stacks also requiredefault-address-poolsplusenable_ipv6: trueper network. - IPv6-Only (
-€0.50/mo) Needs DNS64/NAT64: Deselecting IPv4 on RS 1000 G12.5 or VPS 1000 G12.5 saves €0.50/mo net, but add a public DNS64/NAT64 resolver sogit cloneandaptreach IPv4-only hosts like GitHub.
VPS 1000 G12.5
Redeem in an empty cart to get 1 full month free (save €12.18 net / €14.50 incl. 19% VAT).
6877nc17932657030
1. Ubuntu 22.04 / 24.04 LTS: Disable cloud-init & Configure /64 Netplan (fe80::1)
On a Netcup Root Server or KVM VPS, IPv4 leases via DHCP while your /64 IPv6 block (found in SCP → Network, e.g. 2a03:4000:xxxx:xxxx::/64) routes statically through the link-local gateway fe80::1. Per official Netplan documentation and the Netcup Help Center, systemd-networkd requires on-link: true whenever a gateway sits outside the interface subnet.
Crucially, official Ubuntu 22.04/24.04 cloud images ship with /etc/netplan/50-cloud-init.yaml, which sorts after 01-netcup-ipv6.yaml and overwrites interface flags on reboot. Disable cloud-init network generation first, check your active NIC (ip -br link, usually ens3 or eth0), set dhcp6: false and accept-ra: false, and test safely with sudo netplan try:
# 1. Stop cloud-init from regenerating or overriding Netplan on reboot:
echo "network: {config: disabled}" | sudo tee /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
sudo mv /etc/netplan/50-cloud-init.yaml /root/50-cloud-init.yaml.bak 2>/dev/null || true
# 2. Create /etc/netplan/01-netcup-ipv6.yaml (replace ens3 & your SCP /64 prefix):
cat << 'EOF' | sudo tee /etc/netplan/01-netcup-ipv6.yaml
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: true
dhcp6: false
accept-ra: false
addresses:
- "2a03:4000:xxxx:xxxx::1/64"
routes:
- to: "::/0"
via: "fe80::1"
on-link: true
nameservers:
addresses:
- 46.38.225.230
- 46.38.252.230
- 2606:4700:4700::1111
EOF
# 3. Restrict permissions & apply with 120-second automatic rollback:
sudo chmod 600 /etc/netplan/01-netcup-ipv6.yaml
sudo netplan try
ping -6 -c 4 2a03:4000:0:1::e1e62. Debian 12 / 13: /etc/network/interfaces, accept_ra 0 & Resolver Traps
Minimal Debian 12/13 images on VPS 500 G12.5 or VPS pico G11.5s (€1.85/mo net w/ IPv4 or €1.35/mo IPv6-only, 12M prepaid in Nuremberg) manage links via ifupdown in /etc/network/interfaces (Debian Wiki IPv6). Always set accept_ra 0 so stray Router Advertisements cannot clobber your static fe80::1 default route.
Watch out for two classic Debian minimal DNS pitfalls: (1) dns-nameservers inside /etc/network/interfaces is silently ignored unless the resolvconf package is installed, and (2) iface ens3 inet dhcp lets dhclient overwrite /etc/resolv.conf on every DHCP renewal unless you pin resolvers in /etc/dhcp/dhclient.conf (or systemd-resolved):
# /etc/network/interfaces (Debian 12 / 13 dual-stack)
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug ens3
iface ens3 inet dhcp
iface ens3 inet6 static
address 2a03:4000:xxxx:xxxx::1/64
gateway fe80::1
accept_ra 0
# Prevent dhclient from overwriting IPv6 DNS in /etc/resolv.conf:
echo 'supersede domain-name-servers 46.38.225.230, 2606:4700:4700::1111, 2001:4860:4860::8888;' | sudo tee -a /etc/dhcp/dhclient.conf
# Restart networking & verify route toward Nuremberg test IPv6:
sudo systemctl restart networking
ip -6 route show default && ping -6 -c 4 2a03:4000:0:1::e1e63. Docker Compose IPv6, IPv6-Only DNS64/NAT64 & SCP Rescue Recovery
Per the official Docker Engine IPv6 documentation, setting "fixed-cidr-v6" in /etc/docker/daemon.json only enables IPv6 on the default docker0 bridge — it does NOT assign IPv6 to user-defined Docker Compose networks used by Coolify or custom stacks! To give Compose networks automatic IPv6 ULA subnets alongside NAT66 (ip6tables: true), declare "default-address-pools" in daemon.json and add enable_ipv6: true to any custom Compose network (note: Mailcow already defines its own fd4d:6169:6c63:6f77::/64 IPv6 network in docker-compose.yml, so host ip6tables: true + IPv6 forwarding is all Mailcow needs — see our Mailcow, Coolify & Proxmox Guide):
- IPv6-Only Servers (
-€0.50/mo) & Reaching GitHub via DNS64/NAT64: Pure IPv6 servers cannot reach IPv4-only endpoints (github.com,registry-1.docker.ioauth layers) directly. Point your nameservers to public NAT64/DNS64 resolvers from nat64.net (2a00:1098:2b::1,2a01:4f8:c2c:123f::1) so synthesized64:ff9b::/96routes fetch IPv4 packages transparently (note: Cloudflare’s2606:4700:4700::64provides DNS64 synthesis only if you already run your own NAT64 gateway). - SCP Rescue System Recovery (
lsblk -fFirst!): Locked out by a syntax mistake? Boot the SCP Rescue System, runlsblk -ffirst to identify your actualext4/xfsroot partition (UEFI/GPT Ubuntu 24.04 and Debian 12 images place BIOS/EFI boot onvda1/vda2and root on/dev/vda2,/dev/vda3, or/dev/sda2— never blindly mountvda1!), mount it (mount /dev/vda2 /mnt), fix/mnt/etc/netplan/*.yaml, and reboot. - Verify Dual-Stack Routing: Ping Nuremberg (NUE) (
2a03:4000:0:1::e1e6/46.38.225.230) or test paths from our 5-Datacenter Looking Glass.
# /etc/docker/daemon.json (covers BOTH docker0 and Docker Compose pools)
{
"ipv6": true,
"fixed-cidr-v6": "fd00:dead:beef::/80",
"ip6tables": true,
"experimental": true,
"default-address-pools": [
{ "base": "172.30.0.0/16", "size": 24 },
{ "base": "fd00:cafe:face::/48", "size": 64 }
]
}
# Enable kernel IPv6 forwarding & restart Docker:
echo "net.ipv6.conf.all.forwarding=1" | sudo tee /etc/sysctl.d/98-docker-ipv6.conf
sudo sysctl --system && sudo systemctl restart docker🔧 Companion Interactive Calculator for Your Setup:
Frequently Asked Questions (FAQ)
Why does my Ubuntu 24.04 IPv6 config stop working after a reboot on Netcup?
Ubuntu cloud images include /etc/netplan/50-cloud-init.yaml, which loads after 01-*.yaml and regenerates from cloud-init metadata on boot. Write network: {config: disabled} to /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg and move 50-cloud-init.yaml out of /etc/netplan/.
Why does Ubuntu warn "Permissions for /etc/netplan/*.yaml are too open"?
Netplan 1.0+ requires root-only permissions. Run sudo chmod 600 /etc/netplan/*.yaml and sudo chown root:root /etc/netplan/*.yaml.
Can I bind multiple IPv6 addresses from my /64 block on one Netcup VM?
Yes. Netcup routes the entire /64 prefix (2^64 addresses) directly to your KVM NIC — simply append 2a03:4000:xxxx:xxxx::2/64, ::3/64, etc. under addresses:.
Root Server 1000 G12.5
Save €36.52 net (€43.46 incl. 19% VAT) with 2 full months free on the 12M EU plan.
6874nc17933832471