Skip to content
Contents
GuidesOpenWrt

One delegated IPv6 /64 on OpenWrt: why two separate LANs cannot each get a SLAAC prefix

Distinguish interface addresses from delegated prefixes based on WAN6 state, then determine the number of independent standard SLAAC segments that can be derived based on prefix length.

First, distinguish the IPv6 addresses on the WAN interface from the prefix delegated by the ISP to the router. A /64 is sufficient for a typical SLAAC network segment; advertising the same /64 to two separate Layer 2 networks simultaneously will cause end devices to make erroneous judgments about "which neighbors are on the local link."

Look at IA_NA and IA_PD separately.

Reading on default-named OpenWrt:

ubus call network.interface.wan6 status
ubus call network.interface.lan status
ip -6 route show

In WAN state, the ipv6-address only indicates the interface address; to find the IPv6 prefix address and mask, refer to the ipv6-prefix entry, and then check the LAN state for ipv6-prefix-assignment. When a global address is assigned but PD (prefix delegation) is not obtained, first confirm with the upstream whether prefix delegation is provided. When assigned a /56, 256 /64 subnets are available for planning; when assigned only a single /64, no second non-overlapping /64 is available.

Select based on isolation requirements

Two truly isolated LAN segments, each with native IPv6 support, are required. First, request a shorter prefix from the upstream provider, for example /60 or /56, or obtain an additional routable prefix. If multiple access points serve the same trusted subnet, they may share a Layer 2 network; however, security boundaries such as visitor isolation must not be merged for this purpose. One segment may temporarily use IPv4. During acceptance, verify the address prefixes, default routes, and permitted external connections from each end, and confirm that isolation policies remain active. If prefix allocation is incorrect, first restore the previously advertised prefix range.

Reference

Related guide · Troubleshoot OpenWrt IPv6 prefix delegation when only WAN has IPv6

Explore hardware

Comments