Wlan0 proto dhcp & dhcpv6?

Is it possible to configure wlan0 with proto dhcp & dhcpv6 ?

I can do one or the other, but how can I do both ?

For example, if I set :

wireless.default_radio0.network='lan6'
network.lan6.proto='dhcpv6'

... then it runs odhcp6c and I get an IPv6 global address.

Thanks

If you're asking how to serve both ipv4 & ipv6 addresses to your local lan, I think you're looking for the dhcpv6='server' and ra='server' options in /etc/config/dhcp. Something like this:

wireless.default_radio0.network='lan'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_management='1'

network.lan.proto defines how the 'lan' interface acquires its own IP, not how it serves them to clients.

You can also configure this using LuCi > Network > Interfaces > Edit LAN > scroll down to DHCP Server section > click IPv6 Settings.