dhcpcd-discuss

Re: Prefix delegation to multiple interfaces delayed

Roy Marples

Thu Sep 19 21:00:04 2019

Hi Andrey

On 19/09/2019 20:32, andrey@xxxxxxxxxxxx wrote:
Hi Roy,

I'm using dhcpcd 7.2.2 to delegate an IPv6 prefix for my local LAN.

It's receiving the /62 prefix from the upstream router. The IPv6 address and prefix are dynamic and changes at least once a day. Dhcpcd gets RECONFIGURE6 message from the upstream router and should delegate it to 4 local subnets; configuration file contains following:

ia_pd 0 lan33/0/64 lan34/1/64 lan36/2/64 dmz0/3/64

I expect immediate delegation to all 4 subnets but it delegates it one-by-one every 30 minutes. How can I fix it?

Well, firstly you cannot use an SLA of 0 with other SLA's.
SLA 0 means use the route as it comes - ie you're delegated a /64 so it delegates the whole /64 to another interface. Secondly, you're getting a /62 - which means you only get two bits to spare, so you're limited to two /64's but you've configued 4.

You're using an old version, dhcpcd-8.0.6 is the latest.
Saying that I don't recall changing the delegation code much but I'll check if I need to put some extra hardening in so you can't delegate past your delegation.

Roy

Follow-Ups:
AW: Prefix delegation to multiple interfaces delayedandrey
References:
Prefix delegation to multiple interfaces delayedandrey
Archive administrator: postmaster@marples.name