Re: allowinterfaces cause ipv6 pd to ignore the FIRST interface
Roy Marples
Fri Jan 29 09:30:13 2016
Hi Peng
On 29/01/2016 09:17, Peng Shao wrote:
> I am using a minimal dhcpcd.conf on dhcpcd 6.10.1 for testing purpose:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> noipv6rs
> allowinterfaces eth0
>
> interface eth0
> ipv6rs
> ia_na 1
> ia_pd 2/::56 eth1/1/64 eth2/2/64 eth3/3/64
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> So I am using eth0 as WAN asking PD from ISP and then assign a /64 to
> eth1, eth2 and eth3. The funny thing is in the last line above, among
> three interfaces THE FIRST ONE will never receive correct ipv6 address.
> That is to say no ipv6 for eth1 in this case, and if I make that line
> look like this:
>
> ia_pd 2/::56 eth2/2/64 eth1/1/64 eth3/3/64
>
> then this time only eth1 and eth3 receive the /64, nothing is shown for
> eth2. Using debug output and run dhcpcd from command line confirmed that
> no matter which NIC is placed at the first place, dhcpcd will simply
> ignore it completely as if it does not exist, but will activate the NICs
> following it.
>
> And if that line only has one interface like this :
>
> ia_pd 2/::56 eth1/1/64
>
> then still eth1 won't have any ipv6 address. :(
>
> Similarly denyinterfaces will "completely" deny the first NICs on that
> line...
Sounds like a bug!
I'll try and setup a test case so I can replicate and fix it, but if
you're not using dhcpcd-6.10.1, can you test with that version please?
Thanks
Roy
Archive administrator: postmaster@marples.name