Skip to content

Commit 2fba754

Browse files
RoRoJnerda-codes
andauthored
feat(ddx): rework ipv6 (#5820)
* feat(ddx): rework ipv6 * Update pages/dedibox-ipv6/how-to/configure-ipv6-linux.mdx Co-authored-by: Néda <[email protected]> --------- Co-authored-by: Néda <[email protected]>
1 parent ec6cea6 commit 2fba754

File tree

2 files changed

+61
-4
lines changed

2 files changed

+61
-4
lines changed

pages/dedibox-ipv6/how-to/configure-ipv6-linux.mdx

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: How to configure IPv6 connectivity using systemd-networkd
3-
description: This page explains how to configure IPv6 connectivity on a Scaleway Dedibox using systemd-networkd.
3+
description: This page explains how to configure IPv6 connectivity on a Scaleway Dedibox using systemd-networkd or dhcpcd.
44
tags: dedibox ipv6 systemd-networkd
55
dates:
6-
validation: 2025-04-30
6+
validation: 2025-11-17
77
posted: 2021-08-03
88
---
99
import Requirements from '@macros/iam/requirements.mdx'
@@ -18,6 +18,7 @@ import Requirements from '@macros/iam/requirements.mdx'
1818
<Message type="note">
1919
If you are running Ubuntu and using Netplan, follow the **Ubuntu (Netplan)** section.
2020
If you use systemd-networkd directly, or run a different Linux distribution, follow the **Linux (systemd-networkd)** section.
21+
If you use dhcpcd or your Linux distribution uses ifupdown, follow the **Linux (dhcpcd) section.
2122
</Message>
2223

2324
## How to configure IPv6 on Ubuntu
@@ -130,6 +131,62 @@ Your IPv6 prefix is routed statically; DHCPv6 is used only for lease negotiation
130131
sudo systemctl enable --now systemd-networkd
131132
```
132133

134+
## How to configure IPv6 on Linux with dhcpcd
135+
136+
This section expands the existing tutorial on [dhcpcd](/tutorials/dhcpcd-dedibox/).
137+
138+
On certain Linux distributions like Debian Trixie, you may find `dhcpcd` alongside `ifup` (`dhcpcd-base` must be installed).
139+
140+
1. Enable SLAAC on your dashboard, if your server supports it.
141+
142+
<Message type="tip">
143+
If SLAAC is not provided for your Dedibox, you can skip to the `dhcpcd` configuration.
144+
</Message>
145+
146+
2. Ensure the interface and firewall allow IPv6 routing advertisements.
147+
148+
For instance, if your interface is named `eno1`, as root, you can set it using:
149+
150+
```bash
151+
echo 1 > /proc/sys/net/ipv6/conf/eno1/accept_ra
152+
```
153+
154+
Next, configure `dhcpcd`:
155+
156+
3. Copy DUID into `/var/lib/dhcpcd/duid`. This file is auto-generated the first time by `dhcpcd`.
157+
158+
While there is a `duid <uuid>` option in the configuration, the Scaleway one is not in the correct format, resulting in the client using the generated one.
159+
160+
4. Update the configuration of `/etc/dhcpcd.conf` with the following:
161+
162+
```bash
163+
interface eno1
164+
# request to use dhcpv6
165+
dhcp6
166+
# request a non-temporary address
167+
ia_na
168+
# sets the "identifier" of the interface to 1
169+
iaid 1
170+
171+
# request a prefix delegation on the interface 1 but do not allocate it (-)
172+
ia_pd 1 -
173+
```
174+
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 `-`.
175+
176+
5. Restart the appropriate service:
177+
178+
On Debian, you can restart `networking` which relies on `ifup`:
179+
180+
```bash
181+
sudo systemctl restart networking
182+
```
183+
184+
Or if you use a distribution that has standalone `dhcpcd`:
185+
186+
```bash
187+
sudo systemctl restart dhcpcd@eno1
188+
```
189+
133190
## Additional notes
134191

135192
### IPv6 addressing

pages/dedibox-ipv6/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Scaleway Dedibox IPv6 - Quickstart
33
description: This page shows you how to get started with IPv6 on Scaleway Dedibox.
44
tags: dedibox ipv6 slaac dhcp
55
dates:
6-
validation: 2025-09-22
6+
validation: 2025-11-17
77
posted: 2021-08-03
88
---
99
import Requirements from '@macros/iam/requirements.mdx'
@@ -96,5 +96,5 @@ Activation of IPv6 SLAAC assigns **one** `/128` IPv6 subnet to your server (one
9696

9797
You can find information regarding the configuration of IPv6 on your Dedibox dedicated server at the following links:
9898

99-
* [How to configure IPv6 on Linux using `systemd-networkd`](/dedibox-ipv6/how-to/configure-ipv6-linux/)
99+
* [How to configure IPv6 on Linux using `systemd-networkd` or `dhcpcd`](/dedibox-ipv6/how-to/configure-ipv6-linux/)
100100
* [How to configure IPv6 on Windows Server](/dedibox-ipv6/how-to/configure-ipv6-windows/)

0 commit comments

Comments
 (0)