dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

Prefix Delegation requests do not send a size hint

Open desultory opened this issue 9 months ago • 6 comments

I'm not able to get more than a /64 using dhcpcd as I cannot configure it to send a size hint.

Using RouterOS's DHCP6 client, this is sent, but not with DHCPCD.

I'm using dhcpcd-10.1.0 and have tried several config variations.

I'm trying to make it get a /56 so I can assign /64s to other interfaces/bridges.

interface wan_spectrum
  ipv6rs
#  ia_na 1
  ia_pd 3 wan_spectrum/0/56 br10/1/64 lxcbr53/2/64

With or without ia_na, it doesn't function. I tried setting the iaid to 3 since that was working on RouterOS for whatever reason.

desultory avatar Mar 13 '25 21:03 desultory

Try this

interface wan_spectrum
        ia_pd 3/::/56 br10 lxcbr53

rsmarples avatar Mar 13 '25 21:03 rsmarples

Try this

interface wan_spectrum
        ia_pd 3/::/56 br10 lxcbr53

This gets a /64 and gives a /72 to br10 and lxcbr53

desultory avatar Mar 13 '25 22:03 desultory

So the /56 is a hint to the server. You might not get what you ask for. If in doubt, look at tcpdump and you should see dhcpcd requesting a /56.

rsmarples avatar Mar 13 '25 22:03 rsmarples

I had to delete the lease6 file so it solicited a new lease, I think this is resolved. Maybe there could be a check to see if the config has different info than the lease file, possibly warning or acting?

Thank you very much!

desultory avatar Mar 13 '25 22:03 desultory

Well, we can check if the config file is newer than the lease file I guess. I don't see any obvious issue right away with saying "ignore old lease if config file is newer".

rsmarples avatar Mar 14 '25 11:03 rsmarples

Well, we can check if the config file is newer than the lease file I guess. I don't see any obvious issue right away with saying "ignore old lease if config file is newer".

I think that makes sense, im not sure the best way to track config file state. I think at the least, it shouldn't be too hard to warn "prefix hint does not match lease file" in some sense

desultory avatar Mar 14 '25 13:03 desultory