Re: NA+PD: address not configured
Roy Marples
Mon Jan 04 09:12:52 2016
Hi Egerváry,
Sorry for the late reply.
On 29/12/2015 12:05, Egerváry Gergely wrote:
> I'm running dhcpcd 6.9.4 on NetBSD 6-STABLE.
> I have a PPPoE connection to my ISP. What I need is:
>
> - IA_NA for the PPPoE link itself (ifname: pppoe0)
> - IA_PD for the internal LAN (ifname: vlan11, vlan12, etc.)
>
> This is my current config:
>
> allowinterfaces pppoe0 vlan11
> debug
> hostname
> duid
> ipv6only
> noipv6rs
> nogateway
> waitip
>
> interface pppoe0
> iaid 1
> ia_na 1
> ia_pd 2/::/64 vlan11/0/64
>
> If I comment out ia_pd, the ia_na works good, I get the proper IPv6
> address, and it is configured on interface pppoe0.
>
> If I comment out ia_na, the id_pd works good, I get the proper IPv6
> prefix, and the first address (suffix 1) is configured on interface
> vlan11.
>
> BUT! If I have both ia_na and ia_pd in my config, the ia_pd first
> address is not configured on vlan11:
>
> dhcpcd-6.9.4 starting
> pppoe0: executing `/usr/pkg/libexec/dhcpcd-run-hooks' PREINIT
> pppoe0: executing `/usr/pkg/libexec/dhcpcd-run-hooks' CARRIER
> DUID 00:03:00:01:2c:27:d7:14:54:17
> pppoe0: IAID 00:00:00:01
> pppoe0: IAID 00:00:00:02
> pppoe0: reading lease `/var/db/dhcpcd-pppoe0.lease6'
> pppoe0: soliciting a DHCPv6 lease
> pppoe0: delaying SOLICIT6 (xid 0xd45dc3), next in 1.4 seconds
> pppoe0: broadcasting SOLICIT6 (xid 0xd45dc3), next in 1.1 seconds
> pppoe0: ADV ::/64 from fe80::840a:a476:66a3:1809
> pppoe0: broadcasting REQUEST6 (xid 0x4defbb), next in 1.0 seconds
> pppoe0: REPLY6 received from fe80::840a:a476:66a3:1809
> pppoe0: adding address 2a01:36c:109:80fc:2e27:d7ff:fe14:5417/128
> pppoe0: pltime 604800 seconds, vltime 604800 seconds
> pppoe0: delegated prefix 2a01:36d:109:80fc::/64
> pppoe0: renew in 302400 seconds, rebind in 483840 seconds
> pppoe0: writing lease `/var/db/dhcpcd-pppoe0.lease6'
> pppoe0: waiting for DHCPv6 DAD to complete
> pppoe0: DHCPv6 DAD completed
> pppoe0: executing `/usr/pkg/libexec/dhcpcd-run-hooks' BOUND6
>
> Is this normal, or do I miss something?
Well, dhcpcd only configures what has been allowed, so although you
requested both IA_PD and IA_NA you only got IA_NA back.
The bad news is that your upstream DHCPv6 server does not seem to allow
RFC 7550. This is somewhat surprising as all DHCPv6 servers I was able
to test supported this way of working *before* it became an official RFC
as did other members on this list.
Here is the commit which removed the original support for split DHCPv6
states to support separate IA_PD and IA_NA.
http://roy.marples.name/projects/dhcpcd/info/f18da8322c5c9fb7
So in a nutshell you need to downgrade dhcpcd to 6.9.0, which was the
last dhcpcd version to support this.
If have no intention of reiving that old code at this time as it was
quite problematic to support.
> Thank you, and - I really like dhcpcd - keep up the good work!
Thanks!
> PS: Feature request: please implement a configurable option for the
> configured suffix. I like '1' much better than previously used 'SLAAC
> style' address, but a configuration option would be very nice.
> (wide-dhcp client has one, called 'ifid')
>
> Tip:
> ia_pd [iaid [/ prefix / prefix_len] [interface [/ sla_id [/ prefix_len
> [/ suffix]]]]]
The only potential problem is if your ifid is larger than the
permissable space we have left from delegation. But we can print a
suitable diagnostic.
Please create a ticket here so I don't forget:
http://roy.marples.name/projects/dhcpcd/tktnew
Thanks
Roy
Archive administrator: postmaster@marples.name