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.

  • greyfox
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    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.