Skip to content

Prefix Delegation requests do not send a size hint #487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
desultory opened this issue Mar 13, 2025 · 6 comments
Open

Prefix Delegation requests do not send a size hint #487

desultory opened this issue Mar 13, 2025 · 6 comments

Comments

@desultory
Copy link

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.

@rsmarples
Copy link
Member

Try this

interface wan_spectrum
        ia_pd 3/::/56 br10 lxcbr53

@desultory
Copy link
Author

Try this

interface wan_spectrum
        ia_pd 3/::/56 br10 lxcbr53

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

@rsmarples
Copy link
Member

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.

@desultory
Copy link
Author

desultory commented Mar 13, 2025

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!

@rsmarples
Copy link
Member

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".

@desultory
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants