allowinterfaces cause ipv6 pd to ignore the FIRST interface
Peng Shao
Fri Jan 29 09:17:46 2016
Hi,
I saw the current discussion about possible dhcpcd deployment on VyOS and
Roy you mentioned allowinterfaces, then I suddenly remembered that I have a
strange issue with this option. I opened this new discussion as I thought
hijacking that one may be impolite. So hopefully you don't mind me asking
it here:
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...
Thanks in advance.
Peng
Archive administrator: postmaster@marples.name