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
    ·
    43 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.