How to request specific IA Prefix in DHCPv6 Solicit?

Hi, unfortunately my ISP decided to assign dynamic IPv6 prefixes, making IPv6 difficult to configure across multiple VLANs and messing up internal IPs as well.

Talking to them they said that their dhcpv6 server honors DHCPv6 IA_PD option (if possible), that could help in always getting the same IPv6 from them.

Unfortunately though it seems the only options that are configurable from the config file are the IAID and the Prefix Length, not the Prefix address which stays at zero.

Is there any 'hacky' way to set this?

This is how it works on MikroTik, for example:

https://imgur.com/ANImKTX

https://imgur.com/K25HT6A

As you can see the Prefix Address is set, on OpenWRT it is not (or I don't know where to set it)

Odhcp6c which is the default DHCPv6 client always uses an empty prefix address in solicit messages anyway.

1 Like

That's really unfortunate.

Thanks for your answer, maybe I'll try adding support in the future.

Check if you can utilize the other two available dhcp6 clients to fit your needs.

1 Like

Thanks! I'll try those.

The interface must be set to 'unmanaged' on LuCi right?
It would be nice to be able to set that parameter via the UI, it could come handy with many provider.

1 Like

While it seems to work with dhcpcd it now breaks MAP-T (used by my ISP) which obviously doesn't work with other DHCPv6 clients.

It might be quicker trying to compile a custom version of odhcp6c with IA_PD support rather then trying to modify map-t to get DHCP options from other dhcp clients.

1 Like