Both DHCP and DHCPv6 on one interface?

I'd like to configure the WAN interface so that it automatically gets both an IPv4 and an IPv6 address, but it seems one can only select either DHCP or DHCPv6 in Luci, not both. I must be missing something because such a config is simple on other Linux devices....

Many thanks.

PS: I am new to openwrt so apologies if this question has been asked before - I couldn't find it with simple search....

Use the wan6 interface and point it to the wan interface as an alias.

config interface wan6
        option device   '@wan'
        option proto    'dhcpv6'
        ...

I'd say it's set up like that by default already (pointing to wan) but I might be mistaken.

1 Like