I'm using the following configuration to attempt to use IPv6 and IPv4 over the same PPPoE connection.
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ip6assign '64'
list ipaddr '10.0.0.1/24'
option delegate '0'
config device
option name 'wan'
option macaddr 'A0:04:60:87:F2:55'
config interface 'wan'
option device 'wan'
option proto 'pppoe'
option username 'redacted'
option password 'redacted'
option ipv6 '1'
option verbose '1'
option delegate '0'
config interface 'wan6'
option device '@wan'
option proto 'dhcpv6'
option verbose '1'
option reqaddress 'try'
option reqprefix 'auto'
I've also tried to delete the wan6 interface and set wan's ipv6 to auto, expecting a wan_6 interface to appear; but such an interface does not appear.
odhcp6c frequently complains Failed to send SOLICIT message to ff02::1:2 (Network unreachable).
Any suggestions?
I am unsure whether I could get a prefix delegation. The ISP's technical contact for my area doesn't seem to know, and just says that I need IPv6 and IPv4 to be both on the same PPPoE connection (i.e. I cannot setup wan and wan6 as two separate PPPoE dialups.)
to your wan interface and look at the log. There's probably something preventing successful IPV6CP negotiation. And if you're lucky it's only a matter of figuring out what the other end expects.
Which suggests that I have the link-local address fe80::a204:60ff:fe87:f255/64.
It's also rather confusing to me because although the Web interface shows wan6 as an interface, I couldn't find any mention of it in either ifconfig(8) or ip(8)...
Yes, but that's on the underlying ethernet interface. This isn't used for IP at all. It will only transport PPPoE packets. The interface names are a bit confusing here, since both the kernel name of the underlying interface and the name of your UCI pppoe interface is "wan".
The interesting interface is the PPP interface named "pppoe-wan", and there you see that the IPv6 link local address is missing. Which is explained by the peer refusing to negotiate IPV6CP at all. Without that, no IPv6 interface ID. And without an interface ID, no link local address.
The wan6 interface is just a virtual placeholder for all the IPv6 configuration. It's an alias for your 'wan' UCI pppoe interface (which has the kernel name "pppoe-wan"). So both wan6 and 'wan' in the web interface will actually refer fo pppoe-wan.
Nitpick: please use ip address show or ip a for short. ifconfig is legacy on Linux since now 12 years or something and may not show everything. If you are unfamiliar, there is also ip link, and neighbor and friends. Check man ip.