Re: NA+PD: address not configured
Roy Marples
Mon Jan 04 09:16:46 2016
On 04/01/2016 09:13, Roy Marples wrote:
> 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.
Obviously I can't read this year!
>> 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
So to replicate this I would do:
ifconfig vlan11 create
ifconfig vlan11 vlan 11 vlanif $myinterface
?
Any other needed steps?
Thanks
Roy
Archive administrator: postmaster@marples.name