You are not logged in.

#1 2014-04-21 02:30:12

train_wreck
Member
Registered: 2011-10-22
Posts: 97

[SOLVED] dhcpcd IPv6 prefix delegation on router

have a working Arch router that i am enabling IPv6 on. i'm following this article https://wiki.archlinux.org/index.php/router#IPv6 specifically in the section "Acquiring WAN IPv6 via DHCPv6-PD". I'm following the instructions for additions to dhcpcd.conf, but am getting the following error (""internal" is the name of the internal interface on the router; "external" is the external one"):

dhcpcd[370]: external: confirming Prefix Delegation
dhcpcd[370]: external: REPLY6 received from fe80::201:5cff:fe3f:d241
dhcpcd[370]: internal: interface does not exist for delegation

The internal interface most definitely "exists"; it is up and has an IPv4 address assigned to it. I have tried manually assigning it a link-local address as well as a ULA /64 address, with no change in result. Googling this error brings up next to no information; indeed, put it in quotes and literally all you get are 2 results for the source code of dhcpcd. Any ideas? My ISP is Comcast, which definitely has enabled IPv6 /64 prefixes for its customers, at least in my area, and I am able to pull a global /64 address on the external interface by itself.

Last edited by train_wreck (2014-04-21 09:19:41)

Offline

#2 2014-04-21 03:18:41

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

update, tried dibbler, configured it as the article says. it gives me the following error:

dibbler-client[477]: 20:57 Client Warning  Suitable interfaces not found. Delegated prefix not split.

once again, googling this result leads mostly nowhere. dibbler definitely is aware of the internal interface, stating "Detected iface internal/2, MAC=xx:xx:xx:xx:xx:xx"

Last edited by train_wreck (2014-04-21 03:20:01)

Offline

#3 2014-04-21 03:44:16

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

and wide-dhcpv6 doesn't even start, giving the following error:

client6_init: failed initialize control message authentication
client6_init: skip opening control port
dhcp6c_ctl_authinit: failed to open /etc/wide-dhcpv6/dhcp6cctlkey: No such file or directory
client6_recvadvert: XID mismatch
add_ifprefix: invalid prefix length 64 + 8 + 64

kinda lost at this point

Last edited by train_wreck (2014-04-21 03:51:50)

Offline

#4 2014-04-21 09:15:50

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

solved it, wide-dhcpv6 expects a directory /var/lib/dhcpv6 to exist, but the AUR package doesn't create it during install, so it errors out with this. Also, the wiki article states that dhcp6c.conf should have a line containing "sla-len 8;". For a /64 prefix that my ISP provides, this value is incorrect, and should be 0. Changed these things, and everything's fine now.

Last edited by train_wreck (2014-04-21 09:18:30)

Offline

#5 2014-04-21 13:03:31

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

train_wreck wrote:

solved it, wide-dhcpv6 expects a directory /var/lib/dhcpv6 to exist, but the AUR package doesn't create it during install, so it errors out with this. Also, the wiki article states that dhcp6c.conf should have a line containing "sla-len 8;". For a /64 prefix that my ISP provides, this value is incorrect, and should be 0. Changed these things, and everything's fine now.

Indeed the sla-len 8 was for a /56 prefix (so 56+8+64=128). I've edited the wiki and I've also updated the wide-dhcpv6 package.

You can also try dhcpcd for IPv6-PD. It works more smoothly and is easier to configure.

Offline

#6 2014-04-21 17:52:16

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

thanks a lot.

though on the dhcpcd, that was my original attempt, and was the first post of the thread smile i tried it with this config added:

duid
noipv6rs
interface external
ia_pd 1 internal

and got the error that I posted originallly.

Offline

#7 2014-04-21 20:23:06

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

Damn, that was some sloppy reading. If you are using ppp make sure that you put that (ppp0, ppp1, whatever) on "interface". You could also want to try tuning the various options for ia_pd (search the dhcpcd.conf manpage for ia_pd). You might need something like "internal/0". That being said, that's a weird error and the lack of search results makes it even more frustrating. If you want to pursue it further you could ask at the mailing list of dhcpcd.

Offline

#8 2014-04-21 21:32:51

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

nope, no ppp, "external: is just an ethernet adapter to a cable modem. and i'm fine using wide-dhcpv6, tbh. i tend to prefer dhclient over dhcpcd, anyway

Offline

#9 2014-04-28 23:29:33

rsmarples
Member
Registered: 2009-05-12
Posts: 287

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

train_wreck wrote:

have a working Arch router that i am enabling IPv6 on. i'm following this article https://wiki.archlinux.org/index.php/router#IPv6 specifically in the section "Acquiring WAN IPv6 via DHCPv6-PD". I'm following the instructions for additions to dhcpcd.conf, but am getting the following error (""internal" is the name of the internal interface on the router; "external" is the external one"):

dhcpcd[370]: external: confirming Prefix Delegation
dhcpcd[370]: external: REPLY6 received from fe80::201:5cff:fe3f:d241
dhcpcd[370]: internal: interface does not exist for delegation

The internal interface most definitely "exists"; it is up and has an IPv4 address assigned to it. I have tried manually assigning it a link-local address as well as a ULA /64 address, with no change in result. Googling this error brings up next to no information; indeed, put it in quotes and literally all you get are 2 results for the source code of dhcpcd. Any ideas? My ISP is Comcast, which definitely has enabled IPv6 /64 prefixes for its customers, at least in my area, and I am able to pull a global /64 address on the external interface by itself.

Basically it means that dhcpcd was limited to running on the external interface and thus has no notion of the internal interface.
This has been resolved here, amongst other things:
http://roy.marples.name/projects/dhcpcd … 8fdf?sbs=0

Offline

#10 2014-04-28 23:31:40

rsmarples
Member
Registered: 2009-05-12
Posts: 287

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

train_wreck wrote:

i tend to prefer dhclient over dhcpcd, anyway

Why?

Offline

#11 2014-04-29 04:14:04

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

because i find it tends to work better with my ISP; dhcpcd has a tendency to randomly time out where dhclient never does

Offline

#12 2014-04-29 06:36:55

rsmarples
Member
Registered: 2009-05-12
Posts: 287

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

train_wreck wrote:

because i find it tends to work better with my ISP; dhcpcd has a tendency to randomly time out where dhclient never does

Could you provide a log with debug enabled in dhcpcd.conf of dhcpcd timing out please so I can have a shot at fixing it for you?

Offline

#13 2014-04-29 13:33:34

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: [SOLVED] dhcpcd IPv6 prefix delegation on router

if i have time, yeah ill load it back on the router & post back. itll prolly be a new topic

Offline

Board footer

Powered by FluxBB