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.

  • tburkhol@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    24 minutes ago

    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::/16]. 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.

    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.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    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

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      4
      ·
      11 hours ago

      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.

      • MuttMutt@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        11 hours ago

        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.

    • Billegh@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      11 hours ago

      Yeah, was going to recommend hurricane electric as a place to start and see of you want to make the effort.

  • Archer@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 hours ago

    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

    • vividspecter@aussie.zone
      link
      fedilink
      English
      arrow-up
      4
      ·
      9 hours ago

      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.