I'm trying to figure out how to configure a single ipv6 /64 prefix that need to be routed across several different physical subnets interfaces.
The problem illustration is like this:
/ Wi-Fi subnet 1
Internet - ISP -+ Router host (Linux) - LAN subnet 1
\ Wi-Fi subnet 2
The illustration here is for 3 subnets, but that in practical terms there can be more subnets (for that matter a Wi-Fi subnet can consist of a Linux host that bridges Wi-Fi into LAN and a single port connects to 1 port on the main router) and the router host is multi-homed, with multi independent port.
The trouble is all the subnets need to share the same /64 prefix that is routed from the ISP.
While one way is to simply bridge all the subnets (layer 2), I'd prefer to do all the routing at layer 3 (i.e. ipv6), but with one single routable /64 prefix from the ISP across all subnets.
While searching / researching solutions, I stumbled into:
- NDPPD github.com/DanielAdolfsson/ndppd
^ I'm actually trying this out but have not reached much success.
a problem is how to define the ip routes such that all the different subnets use the same /64 prefix on different network interfaces (at the main router)
^ not yet tried
BIRD router supports it as well
^ this is one of the most promising solutions, but that I stumbled into the notion of
- how to configure routing / topology for multiple 'same prefix' ipv6 networks
- how to dynamically register the hosts with the Babel router as the same 64 bit interface ID can practically just roam and connect to any of the subnets. The trouble is I cannot make subnets smaller /64 as SLAAC (https://datatracker.ietf.org/doc/html/rfc4862) would automatically patch a 64 bit interface ID. All Android phones does that and I'd think most Iphones and other workstations (e.g. a laptop running Linux/Windows) mostly does SLAAC by default.
- RFC 7421 Analysis of the 64-bit Boundary in IPv6 Addressing
^ one of the best RFC documents addressing this I stumbled into
Among the solutions
NAT64 - Both stateless NAT64 [RFC6052] and stateful NAT64 [RFC6146]
this is almost like the 'old' NAT practically used on 'all' the 'home' routers with a single ipv4 address.
I seemed to be left with NAT64 and NPTv6 for now to attempt to map that into a routable setup.
Kindly let me know your thoughts on the same, e.g. if there are other solutions as well.