Skip to main content

Set Up IPv6

Upon request we provide you with a /48 IPv6 prefix for all our Root Dedicated Server products. You will receive one prefix per server and be able to choose the preferred addresses out of this prefix. Both the IPv6 prefix and the default gateway are shown in Cockpit. If no gateway is listed, use fe80::1.

Autoconfiguration neither by Stateless address autoconfiguration nor by DHCPv6 is supported in our network. Please configure the desired IPv6 address(es) manually.

Prerequisites

Netplan

Open /etc/netplan/55-interfaces.yaml in your preferred editor:

vi /etc/netplan/55-interfaces.yaml

A complete Netplan configuration with IPv6 support could look like this:

network:
version: 2
ethernets:
eno1:
dhcp4: false
dhcp6: false
accept-ra: false
eno2:
dhcp4: false
dhcp6: false
accept-ra: false
bonds:
bond0:
addresses:
- 198.51.100.10/24
- 2001:0DB8:9999:9999::1/64
nameservers:
addresses:
- 217.150.241.5
- 217.150.242.21
- 178.209.45.7
- 2a02:419:1002::5
- 2a02:418:4005::21
- 2a02:418:4004::7
search:
- nine.ch
macaddress: 1f:2f:3f:4f:5f:6f # MAC address of the first interface (eno1)
interfaces:
- eno1
- eno2
parameters:
mode: "802.3ad"
mii-monitor-interval: "100"
lacp-rate: "fast"
transmit-hash-policy: "layer3+4"
routes:
- to: 0.0.0.0/0
via: 198.51.100.1
- to: "::/0"
via: fe80::1

Before applying the Netplan configuration, test it to ensure there are no syntax errors or network issues:

netplan try

If the test was successful and the configuration hasn't been applied yet using netplan try, apply it now:

netplan apply

And verify with:

ip -6 addr show bond0

For more information, see: man netplan

ifupdown (legacy)
tip

Please use Netplan if possible. This is provided for completeness only.

Open /etc/network/interfaces in your preferred editor:

vi /etc/network/interfaces

Add an IPv6 configuration like this (adjust the interface name according to your system!):

iface bond0 inet6 static
address 2001:0DB8:9999:9999::1
netmask 64
gateway fe80::1

And restart the network:

systemctl restart networking

For more information, see: man interfaces