You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -18,6 +18,7 @@ import Requirements from '@macros/iam/requirements.mdx'
18
18
<Messagetype="note">
19
19
If you are running Ubuntu and using Netplan, follow the **Ubuntu (Netplan)** section.
20
20
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.
21
22
</Message>
22
23
23
24
## How to configure IPv6 on Ubuntu
@@ -130,6 +131,62 @@ Your IPv6 prefix is routed statically; DHCPv6 is used only for lease negotiation
130
131
sudo systemctl enable --now systemd-networkd
131
132
```
132
133
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
+
<Messagetype="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`:
0 commit comments