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.

  • irotsoma@piefed.blahaj.zoneOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 hours ago

    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.

    • greyfox@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 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.

    • i_am_not_a_robot@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      10 hours ago

      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.