Prefix Delegation requests do not send a size hint
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.
Try this
interface wan_spectrum
ia_pd 3/::/56 br10 lxcbr53
Try this
interface wan_spectrum ia_pd 3/::/56 br10 lxcbr53
This gets a /64 and gives a /72 to br10 and lxcbr53
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.
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!
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".
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