I am considering OpenWRT for my EdgeRouter X at my home network and for that I wanted to know if and how OpenWRT can support the setup I would like to have.
WAN -> ISP with IPv6 support and a /60 prefix and a single IPv4 address
LAN -> Managed by Ubiquiti with several access points and multiple wireless networks (home, guest, work...)
Now I would like to split the IPv6 network and give each wireless network its own VLAN and /64 prefix. The idea is that the networks can not connect to each other and that they all exit with their own IPv6 address to the Internet instead of sharing the NATed single IPv4.
I already played around with OpenWRT on an old router I had lying around but I can't figure out how to connect the incoming VLAN ID 1 (e.g. my home network) to a virtual switch which has some IPv6 prefix to hand out. Any suggestions or pointers here?
On the terminology, the only place that OpenWrt uses the term "VLAN" is for a tagged Ethernet packet. Outside of the Ethernet switch, OpenWrt uses separate interfaces for different networks. An example of this can be found in the instructions for setting up a guest network.
Each LAN-like interface has an IP address, which is by convention the ::1 in its /64 IPv6 prefix, as well as (but not absolutely required) the .1 in a private /24 IPv4 space. Use ip6assign 64 to give each interface a /64 out of your /60. If you want the prefixes to be consistently assigned in a particular order rather than random, use ip6hint on each interface with a different hex number. Since there are 4 bits to choose when making /64s out of a /60, those hex numbers would be between 0 and F thus you have the possibility of 16 networks.