I was trying to configure native ipv6 on my NixOS box, which is running in online.net's datacenters. They provide you
a /48 or smaller subnet and a DUID which is used during DHCP. In dhcpcd vocabulary DUID is called clientid
.
online.net's help page about IPv6 configuration was not very useful, since NixOS uses dhcpcd by default. The page which allowed me to make it all work was https://community.online.net/t/tutorial-ipv6-with-dhcpcd/3804
It looks like the only really required entries in networking.dhcpcd.extraConfig
are interface
and static
though.
I assumed that clientid
is also necessary, but it looks like dhcpcd cares much more about content of /etc/dhcpcd.duid
.
Of course replace enp2s0
with the name of the main interface.