Skip to main content

Network configuration

IPv6 setup

Upon request we provide you with a /64 IPv6 prefix for all our Root Dedicated Server and Root CloudVM products. You will receive one prefix per server and be able to choose the preferred addresses out of this prefix.

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

The IPv6 gateway has the address of fe80::1 on each prefix. This address out of the link-local prefix allows for a setup where no address out of your prefix needs to be assigned to the network infrastructure.

Netplan

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

vi /etc/netplan/55-interfaces.yaml

Extend your ethernet definition with IPv6:

network:
version: 2
ethernets:
ens3:
dhcp4: false
dhcp6: false
accept-ra: false
match:
macaddress: 1f:2f:3f:4f:5f:6f
addresses:
- 198.51.100.10/24
- 2001:0DB8:9999:9999::1/64
routes:
- to: 0.0.0.0/0
via: 198.51.100.1
- to: "::/0"
via: fe80::1

Before applying the Netplan configuration, it’s important to test it to ensure there are no syntax errors:

netplan try

If the configuration test is successful, apply the Netplan configuration to activate the vlan interface:

netplan apply

And verify with:

ip -6 addr show vlan<VLAN-ID>

ifupdown (legacy)

Please use Netplan if possible. This is written only for the sake of completeness!

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 ens3 inet6 static
address 2001:0DB8:9999:9999::1
netmask 64
gateway fe80::1

And restart your networking:

systemctl restart networking

VLAN / Port for internal network

If you have multiple root servers in the same room and want to exchange private/sensitive traffic between them, VLAN is your option and a good alternative to a VPN.

Prerequisites

Ensure the following package is installed:

apt install vlan

And check if the bond0 network interface exists:

ip addr show bond0

Attention: Not all systems have bondig enabled!
In case you're missing a bond0 interface, please contact our support!

If everything is prepared, proceed with Netplan (recommended) or ifupdown (legacy).

Netplan

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

vi /etc/netplan/55-interfaces.yaml

Add a VLAN definition like this:

  vlans:
vlan<VLAN-ID>:
id: <VLAN-ID>
link: bond0
addresses:
- 192.0.2.10/24

A complete netplan configuration looks like this:

---
network:
version: 2
renderer: networkd
bonds:
bond0:
interfaces:
- ens3
- ens4
dhcp4: false
dhcp6: false
accept-ra: false
addresses:
- 198.51.100.10/24
macaddress: 1f:2f:3f:4f:5f:6f
routes:
- to: 0.0.0.0/0
via: 198.51.100.1
parameters:
mode: 802.3ad
transmit-hash-policy: layer3+4
lacp-rate: fast
mii-monitor-interval: 100
ethernets:
ens3:
dhcp4: false
dhcp6: false
accept-ra: false
ens4:
dhcp4: false
dhcp6: false
accept-ra: false
vlans: # VLAN configuration starts here!
vlan<VLAN-ID>:
id: <VLAN-ID>
link: bond0
addresses:
- 192.0.2.10/24

Before applying the Netplan configuration, it’s important to test it to ensure there are no syntax errors:

netplan try

If the configuration test is successful, apply the Netplan configuration to activate the vlan interface:

netplan apply

And verify with:

ip addr show vlan<VLAN-ID>

For further information, please also have a look at: man netplan

ifupdown (legacy)

Please use Netplan if possible. This is written only for the sake of completeness!

Install ifupdown, if not already installed:

apt install ifupdown

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

vi /etc/network/interfaces

Add a VLAN configuration like this:

# interface vlan<VLAN-ID>
auto vlan<VLAN-ID>
iface vlan<VLAN-ID> inet static
vlan-raw-device bond0
address <IP-Address>
netmask <NETMASK>

And restart your networking:

systemctl restart networking

For further information, please also have a look at: man vlan-interfaces