I’m trying to get back to setting up IPv6 on my home network. I had previously given up, but given that Matter devices are really wanting IPv6 to work properly, especially across VLANs and such, and I want to start keeping these devices local and not using external services like TP Link Kasa, Google Home, etc. and use only my internal Home Assistant. I would really like to plan the setup. So while I respect the “DON’T DO IT”, “IT’S NOT WORTH IT”, etc. comments I’ve gotten in the past, and mostly agreed with. I want to make a real plan for it this time even if it takes time for me to implement it.
The main issue is I have a US based ISP that only offers 6rd. This basically gives me no real IPv6 allotment, so it must all be done with ULAs. But I would like to leave the option to migrate to an ISP in the future that may offer prefixes, so I don’t want to use too many bits. I know some ISPs only delegate /64 but some do /60 or /56 more, but I don’t want to count on too much. So I was thinking of assuming /60 so I have one hextet for VLAN ID. Unfortunately, this is the only ISP I have access to that has upload speeds over 25MBps, so I need this for serving things from my home lab like my photos and such.
I’m planning to set this up on an OpnSense router with DHCPv6 with 4 VLANS, as well as a good quality managed switch that handles most of the actual VLAN assignments, so if anyone has done this successfully, I’d love to see how yours is configured.
I have a dual stack static IPv4 WAN cable modem ISP that delegates me a static /56 though I had to debug it using AI. Vodafone did not delegate me a /56 by default. My opnsense routed LAN is static. DHCP is currently IPv4 only since I haven’t bothered with IPv6 there yet. My switch topology is a tree of managed switches without VLANs configured.
https://www.muttmutt.us/ipv6-using-opnsense-with-hurricane-electric-tunnel-broker/
I did it a while back. I switched from hurricane electric to Route64 but the basics are there.
I used HE until I got native IPv6 and it worked great. They will give you a /48. One of their tunnel servers is very close to me so the latency was very low. Just keep in mind that most streaming services will block it, so you will have to force them to use IPv4 if you use them.
There are a lot of sites that put you into a loop of verifying you are real now asking other things. That is why I switched to Route64. Route64 also has a Wireguard tunnel option which is super simple to setup if Toyota already have Wireguard installed.
Yeah, was going to recommend hurricane electric as a place to start and see of you want to make the effort.
I did something like what I think you’re describing. I set it up on a linux box, rather than a router appliance.
Wanted to play with ipv6 before my ISP was ready, so I set up DHCPv6 with a ULA [fdxx::/8]. Two subnets, so fdxx:xxxx:xxxx:0000::/64 and fdxx:xxxx:xxxx:0001::/64. Even set it up to do dynamic DNS, so a client would tell DHCP its hostname, and DHCP would add it to Bind-9’s table. Worked well enough. Requires running 2 instances of dhcpd (one ipv4 and one ipv6) and bind9. Matter works fine with ULAs and no access to ipv6 internet.
My ISP started assigning a /128 address, and I added IPv6 masquerade to the routing table. It’s not “right” but it provides functional access to ipv6 internet sites. Configured with ip6tables
Eventually, I figured out how to request subnet delegation from the ISP. I can only get /64, and I’ve only figured out how to assign that to one subnet, but that subnet gets “real” addresses via SLAAC and can be pinged from the internet (with appropriate firewall rules). Configured with radvd, which complains when I try to configure /72 subnets. ed: you could probably configure radvd with your ULA and let clients SLAAC themselves, if you’re satisfied with mDNS
So, now I have guest and trusted subnets. Both have ULAs and I can address clients at those addresses by name. Clients on the trusted subnet also get PD addresses, and usually assign themselves both stable and privacy addresses. With link-local, it means those systems have 4 different ipv6 addresses, which is weird to a guy coming from ipv4, but apparently this is all according to plan.
Matter shouldn’t care whether you have IPv6 internet access. https://matterhomelab.com/posts/ipv6-requirements-for-matter-and-thread/
Seems it has issues when crossing VLANs with IPv4. With IPv6 that can get around some of the issues. I haven’t dug too deep, but I have my HA install on one VLAN and a separate VLAN for IoT devices that has no internet access. Matter isn’t working for some TP Link switches I have and enabling IPv6 was a suggested simple workaround rather than dealing with the issue causing it. But again, this is just one reason for wanting to finally set up IPv6.
Most IoT devices expect to be in the same subnet as the thing controlling them. Especially when they expect to be auto discovered. Have you considered just tagging IoT vlan to your home assistant machine and adding a second interface so that home assistant is on both networks?
Alternatively depending on what you are using for a firewall sometimes you have options to run a mdns (multicast dns) repeater/reflector. This forwards broadcasts from your device looking for the iot equipment from one subnet to another. Home assistant says “what devices are on the network” and the firewall forwards that request to your iot network, along with the responses back.
Or if you really need the ipv6 why not just enable ipv6 on your lan/vlans without adding ipv6 to your WAN? Sounds like you are looking for local traffic so there should be no need for ISP support.
You likely wouldn’t want to enable ipv6 on your dhcp for your LAN so that normal devices still stick to ipv4. On home assistant you would add a static ipv6 address plus a static route to your iot network (no ipv6 default gateway). Then on the iot network enable dhcpv6. This would partially break internet access for the iot devices but it sounds like like you want to keep things local anyways.
They’re Matter over WiFi switches? It seems like a waste of WiFi to connect every light switch to WiFi. If they were Matter over Thread, they would be connecting to your border router and would be using IPv6 on whatever network the border router is on.
I don’t know what you mean by “not working” and “crossing VLANs.” If the devices are on a different VLAN but are supposed to work like they’re on the same VLAN, why use separate VLANs? If you have configured IPv4 routes between networks, you may need to configure IPv6 routes, and if you’re using Thread the routing will be more complicated because for devices on your main network to connect to a device on the Thread network the IPv6 packets from the device on the main network need to go to the router that can send them to the other VLAN and then from there to a Thread border router that can send them to the Thread network. Normally, router advertisement broadcasts take care of this for devices that are in the same VLAN.
Enabling IPv6 internet connectivity is not going to fix any problems with VLANs affecting communication inside your house. I’d still want to have IPv6 working, but don’t expect getting IPv6 internet to fix your Matter problems.
Saw someone on OPNsense forums say that they are not going to port DHCP-PD to their new DHCP implementation which sounds insane, hopefully they change that. Would be a breaking change for SOHO users that use prefix hinting but the Linux elitist mindset seems so prevalent in the forums over there I didn’t bother asking more
the Linux elitist mindset seems so prevalent in the forums
It’s worse, it’s the BSD elitist mindset, which is like 10x worse than the Linux one.
Thanks good to keep in mind in case I need to switch router software or find a workaround.
Linux elitist mindset seems so prevalent in the forums over there I didn’t bother asking more
OPNsense is BSD based, but I get your point. And honestly, the BSD kernel is probably the biggest downside of OPNsense from a feature standpoint, even if it’s solid and reliable.
What is wrong with FreeBSD in a home networking setup?
Map a /64 per vlan by first picking a random ULA prefix and then incrementing for each subnet.
You can always change things down the line once you have a working setup
Idk much about technology, but I feel the Louis Rossman wiki would have an answer for you.
deleted by creator



