diff --git a/pages/dedibox-ipv6/how-to/configure-ipv6-linux.mdx b/pages/dedibox-ipv6/how-to/configure-ipv6-linux.mdx index c97fa24bbb..47c55dcf2d 100644 --- a/pages/dedibox-ipv6/how-to/configure-ipv6-linux.mdx +++ b/pages/dedibox-ipv6/how-to/configure-ipv6-linux.mdx @@ -1,9 +1,9 @@ --- title: How to configure IPv6 connectivity using systemd-networkd -description: This page explains how to configure IPv6 connectivity on a Scaleway Dedibox using systemd-networkd. +description: This page explains how to configure IPv6 connectivity on a Scaleway Dedibox using systemd-networkd or dhcpcd. tags: dedibox ipv6 systemd-networkd dates: - validation: 2025-04-30 + validation: 2025-11-17 posted: 2021-08-03 --- import Requirements from '@macros/iam/requirements.mdx' @@ -18,6 +18,7 @@ import Requirements from '@macros/iam/requirements.mdx' If you are running Ubuntu and using Netplan, follow the **Ubuntu (Netplan)** section. If you use systemd-networkd directly, or run a different Linux distribution, follow the **Linux (systemd-networkd)** section. + If you use dhcpcd or your Linux distribution uses ifupdown, follow the **Linux (dhcpcd) section. ## How to configure IPv6 on Ubuntu @@ -130,6 +131,62 @@ Your IPv6 prefix is routed statically; DHCPv6 is used only for lease negotiation sudo systemctl enable --now systemd-networkd ``` +## How to configure IPv6 on Linux with dhcpcd + +This section expands the existing tutorial on [dhcpcd](/tutorials/dhcpcd-dedibox/). + +On certain Linux distributions like Debian Trixie, you may find `dhcpcd` alongside `ifup` (`dhcpcd-base` must be installed). + +1. Enable SLAAC on your dashboard, if your server supports it. + + + If SLAAC is not provided for your Dedibox, you can skip to the `dhcpcd` configuration. + + +2. Ensure the interface and firewall allow IPv6 routing advertisements. + + For instance, if your interface is named `eno1`, as root, you can set it using: + + ```bash + echo 1 > /proc/sys/net/ipv6/conf/eno1/accept_ra + ``` + + Next, configure `dhcpcd`: + +3. Copy DUID into `/var/lib/dhcpcd/duid`. This file is auto-generated the first time by `dhcpcd`. + + While there is a `duid ` option in the configuration, the Scaleway one is not in the correct format, resulting in the client using the generated one. + +4. Update the configuration of `/etc/dhcpcd.conf` with the following: + + ```bash + interface eno1 + # request to use dhcpv6 + dhcp6 + # request a non-temporary address + ia_na + # sets the "identifier" of the interface to 1 + iaid 1 + + # request a prefix delegation on the interface 1 but do not allocate it (-) + ia_pd 1 - + ``` + If you are only using the /48, you should request a prefix delegation (`ia_pd`) and allocate it to other interfaces (VMs, VPN, etc.) or just keep it blank with `-`. + +5. Restart the appropriate service: + + On Debian, you can restart `networking` which relies on `ifup`: + + ```bash + sudo systemctl restart networking + ``` + + Or if you use a distribution that has standalone `dhcpcd`: + + ```bash + sudo systemctl restart dhcpcd@eno1 + ``` + ## Additional notes ### IPv6 addressing diff --git a/pages/dedibox-ipv6/quickstart.mdx b/pages/dedibox-ipv6/quickstart.mdx index cc628079fb..d42ad697dc 100644 --- a/pages/dedibox-ipv6/quickstart.mdx +++ b/pages/dedibox-ipv6/quickstart.mdx @@ -3,7 +3,7 @@ title: Scaleway Dedibox IPv6 - Quickstart description: This page shows you how to get started with IPv6 on Scaleway Dedibox. tags: dedibox ipv6 slaac dhcp dates: - validation: 2025-09-22 + validation: 2025-11-17 posted: 2021-08-03 --- import Requirements from '@macros/iam/requirements.mdx' @@ -96,5 +96,5 @@ Activation of IPv6 SLAAC assigns **one** `/128` IPv6 subnet to your server (one You can find information regarding the configuration of IPv6 on your Dedibox dedicated server at the following links: -* [How to configure IPv6 on Linux using `systemd-networkd`](/dedibox-ipv6/how-to/configure-ipv6-linux/) +* [How to configure IPv6 on Linux using `systemd-networkd` or `dhcpcd`](/dedibox-ipv6/how-to/configure-ipv6-linux/) * [How to configure IPv6 on Windows Server](/dedibox-ipv6/how-to/configure-ipv6-windows/) \ No newline at end of file