On a common native IPv6 Ethernet uplink, odhcp6c handles two information channels. DHCPv6 can deliver interface addresses, prefix delegation, and DNS, among other parameters; Router Advertisements (RA) carry link-layer information such as default router lifetime. The presence of an address does not necessarily imply that the default gateway or the LAN-usable prefix is also available.
Look at the three fields of the uplink.
In the wired SSH terminal of the router, enter the following command. If the uplink is not named wan6, first use ubus call network.interface dump to locate the actual interface name.
ubus call network.interface.wan6 status
ip -6 route show default
logread -e odhcp6c
ipv6-address is the interface address and cannot be determined solely by the address whether it comes from SLAAC or DHCPv6. ipv6-prefix is a prefix that can be allocated downward. The default route must be looked up separately in the routing table, checking the next hop and dev. When an IA_NA has not been obtained but usable SLAAC addresses and a default route are already present, do not conclude uplink failure solely because DHCPv6 did not assign an address.
Which item is missing continues to be checked?
With an address but no default route, first check whether the upstream is sending RA messages with non-zero router lifetime on the correct link, and whether the local device is receiving and processing them. If the uplink can access the external network but has not delegated a prefix, confirm with the upstream whether IA_PD is provided, then verify the local prefix request and LAN prefix assignment. If both default route and prefix are present, and only clients are unable to reach, shift the troubleshooting point to the LAN's advertisement and client routing table.
Respectively access dual-stack services from the router and a LAN client, record the actual IPv6 addresses used and the returned results. Retain the original firewall and management entry points; investigate upstream client responsibilities without disabling the LAN's IPv6 services.
Reference
Related guide · Troubleshoot OpenWrt IPv6 prefix delegation when only WAN has IPv6
Comments