I've been working with my ISP for the last couple of days trying to debug IPv6. Until now I have been using a HE tunnel (IPv6 over IPv4) with no issues. Previously with another ISP I had native IPv6 enabled, so I know at least that my end of the configuration worked in the past.
Currently with the modem in gateway mode, the modem is assigned an address and a delegated prefix, but hosts behind the modem are unable to reach any destinations over IPv6 (traceroute timeout). When the modem is switched to bridge mode, OpenWrt receives an IPv6 address via DHCPv6, but no prefix delegation is configured for the wan6
interface. I am able to send/receive data over IPv6 from the OpenWrt router itself, but again, no connectivity from anything behind it, this time due to no prefix being advertised on the local network.
Interestingly, OpenWrt does receive a PD option from upstream but seems to discard it rather than passing it on to my network. With the HE tunnel, prefix delegation and SLAAC addressing works fine.
Below is a dissection of the solicit-advertise-request-reply sequence I observe on the WAN interface (note the IA_PD option that gets ignored by OpenWrt in the advertisement):
09:40:25.907561 02:42:c0:xx:xx:xx > 33:33:00:01:00:02, ethertype IPv6 (0x86dd), length 193: (flowlabel 0xca875, hlim 1, next-header UDP (17) payload length: 139) fe80::42:c0ff:fexx:xx.546 > ff02::1:2.547: [udp sum ok]
dhcp6 solicit (xid=bc7f9b (elapsed-time 0) (option-request SIP-servers-domain SIP-servers-address DNS-server DNS-search-list SNTP-servers NTP-server AFTR-Name opt_67 opt_94 opt_95 opt_96 opt_82) (client-ID hwaddr type 1 0242c0xxxxxx) (reconfigure-accept) (Client-FQDN) (IA_NA IAID:1 T1:0 T2:0) (IA_PD IAID:1 T1:0 T2:0 (IA_PD-prefix ::/64 pltime:0 vltime:0)))
09:40:25.925243 00:13:5f:04:9c:d9 > 02:42:c0:xx:xx:xx, ethertype IPv6 (0x86dd), length 250: (class 0xe0, hlim 255, next-header UDP (17) payload length: 196) fe80::213:5fff:fe04:9cd9.547 > fe80::42:c0ff:fexx:xx.546: [udp sum ok]
dhcp6 advertise (xid=bc7f9b (client-ID hwaddr type 1 0242c0xxxxxx) (server-ID hwaddr/time type 1 time 661197566 005056a7b22b) (IA_NA IAID:1 T1:1000 T2:2000 (IA_ADDR 2a00:7c40:ffcc:xx::xx pltime:3000 vltime:4000)) (DNS-server 2001:4860:4860::8888 2001:4860:4860::8844) (IA_PD IAID:1 T1:1000 T2:2000 (IA_PD-prefix 2a00:7c40:xxxx:xxxx::/64 pltime:3000 vltime:4000 (opt_67))) (Client-FQDN))
09:40:27.080339 02:42:c0:xx:xx:xx > 33:33:00:01:00:02, ethertype IPv6 (0x86dd), length 192: (flowlabel 0xca875, hlim 1, next-header UDP (17) payload length: 138) fe80::42:c0ff:fexx:xx.546 > ff02::1:2.547: [udp sum ok]
dhcp6 request (xid=a740fc (elapsed-time 0) (option-request SIP-servers-domain SIP-servers-address DNS-server DNS-search-list SNTP-servers NTP-server AFTR-Name opt_67 opt_94 opt_95 opt_96) (client-ID hwaddr type 1 0242c0xxxxxx) (server-ID hwaddr/time type 1 time 661197566 005056a7b22b) (reconfigure-accept) (Client-FQDN) (IA_NA IAID:1 T1:0 T2:0 (IA_ADDR 2a00:7c40:ffcc:xxxx::xx pltime:3000 vltime:4000)))
09:40:27.094075 00:13:5f:04:9c:d9 > 02:42:c0:xx:xx:xx, ethertype IPv6 (0x86dd), length 192: (class 0xe0, hlim 255, next-header UDP (17) payload length: 138) fe80::213:5fff:fe04:9cd9.547 > fe80::42:c0ff:fexx:xx.546: [udp sum ok]
dhcp6 reply (xid=a740fc (client-ID hwaddr type 1 0242c0xxxxxx) (server-ID hwaddr/time type 1 time 661197566 005056a7b22b) (IA_NA IAID:1 T1:1000 T2:2000 (IA_ADDR 2a00:7c40:ffcc:xx::xx pltime:3000 vltime:4000)) (DNS-server 2001:4860:4860::8888 2001:4860:4860::8844) (Client-FQDN))
Breakdown of option 67 (prefix exclude) which I assume is just saying "don't assign ::1/128" :
Prefix Exclude
Option: Prefix Exclude (67)
Length: 9
Prefix length: 128
IPv6 subnet ID: 0000000000000001
I tried requesting prefixes of varying length, setting option forceprefix
, and manually setting a prefix based on what I see advertised, to no effect.
Network config:
# uci show network.wan6
network.wan6=interface
network.wan6.ifname='eth1'
network.wan6.proto='dhcpv6'
network.wan6.reqaddress='try'
network.wan6.reqprefix='auto'
Aside from the obvious issue of things still not working when only using ISP equipment set to gateway mode (modem + router), any insight as to what's missing here is appreciated.