Hi Michel,
sorry, i don't have an OpenWrt device that's using DHCPv6 in
client mode.
But it should be easy. Make sure the 'odhcp6c' package is
installed (which is the case by default).
Then change the protocol option for the interface:
/etc/config/network
config interface 'eth0'
option proto 'dhcpv6'
Check out this link to see als available options for the DHCPv6
client mode:
https://openwrt.org/docs/guide-user/network/ipv6/configuration#protocol_dhcpv6
As far is i can see, you can only use OpenWrt in DHCPv4 client
mode
OR in DHCPv6 client mode. So i guess, you have to
write a small script. First try DHCPv6 and check if you can
successfully get a configuration. If not, fall back to DHCPv4.
Continuously toggle between DHCPv6 and DHCPv4 as long as you don't
get a configuration. I would begin this loop with DHCPv6. Also
keep in mind, that some DHCP server respond slow, so better wait a
little bit, before switching the protocol.
BR,
Simon
On 15.05.23 09:12, Michel Stam wrote:
Hi,
Good discussion!
I’m currently looking at basing all the probes (3, 4 and 5)
on OpenWRT 22.03 which is the latest stable. What I’ll do is
take this along in the deliberations, and see if I can fit this
into the firmware image somehow.
Simon: can you provide the exact setup you use for testing?
(Config snippets etc) I typically don’t have a problem on my
setup here, but thats RA + DHCPv6, I don’t use DHCPv6 for the
actual assignment.
Regards,