Excellent. Let's dive in. As a power user, you understand that this isn't just about flipping a switch. It's about fundamentally changing how your network addresses and secures itself. We'll skip the "what is IPv6" basics and get straight to the architecture and implementation.
Our model setup will be a common "prosumer" or power-user network:
- Router: A capable, configurable router running OpenWrt, pfSense, OPNsense, or a Ubiquiti EdgeRouter. (We'll use pfSense/OpenWrt for examples as they're very explicit).
- Network: Segmented with VLANs for security and organization.
LAN (VLAN 10): Trusted devices (workstations, laptops, NAS).
IOT (VLAN 20): Untrusted smart devices (smart speakers, TVs, cameras).
GUEST (VLAN 30): For visitors.
- Key Device: A NAS (e.g., Synology, TrueNAS) on the
LAN VLAN that runs services (Plex, file sharing, Docker containers) and needs stable, predictable addressing.
Phase 0: The Mindset Shift & Core Concepts
Before you touch any configuration, internalize these points. This is the biggest hurdle.
-
NAT is Gone. The Firewall is Everything. With IPv4 and NAT, your internal network was implicitly protected because it wasn't publicly addressable. With IPv6, every device can get a globally unique address (GUA). This is fantastic for end-to-end connectivity but means your router's firewall is your new security perimeter. The default deny all rule on your WAN interface is no longer a suggestion; it's a hard requirement.
-
You Don't Get an IP; You Get a Prefix. Your ISP won't just give you a single IPv6 address. They will delegate you a prefix using DHCPv6-PD (Prefix Delegation). This is a block of addresses for you to manage.
- A
/64 is the smallest standard subnet size. It contains 18.4 quintillion addresses.
- A good ISP gives you a
/56 (which contains 256 /64 subnets).
- An amazing ISP gives you a
/48 (which contains 65,536 /64 subnets).
- If your ISP only gives you a single
/64, you cannot properly subnet for your VLANs. This is a broken implementation, and you should complain to them.
-
Understand the Address Types:
- Global Unicast Address (GUA): The public, internet-routable address. Typically starts with
2... or 3.... This is what your ISP's prefix delegation provides.
- Unique Local Address (ULA): The IPv6 equivalent of
192.168.0.0/16. These are for internal networking only and are not routed on the public internet. They are essential for stable internal services that shouldn't change even if your ISP changes your GUA prefix. They typically start with fd....
- Link-Local Address (LLA): Automatically configured on every interface. Used for communication on the same physical/logical link only (e.g., router discovery). Always starts with
fe80::.
-
Address Assignment Methods:
- SLAAC (Stateless Address Autoconfiguration): The default. A device listens for Router Advertisements (RAs) from the router, gets the network prefix, and generates its own host part (the last 64 bits). Often uses EUI-64 (derived from MAC) or, more commonly now, a temporary, randomized address for privacy (Privacy Extensions).
- DHCPv6 (Stateful): Similar to DHCPv4. A server hands out and tracks specific addresses. Gives you more control but is often considered less "IPv6-native" than SLAAC.
- Stateless DHCPv6: A hybrid. The device gets its address via SLAAC but queries a DHCPv6 server for options like DNS server addresses. This is a very common and robust configuration.
Phase 1: Preparation and Planning
-
Verify ISP Support: Check your ISP's documentation or forums.
- Question 1: Do they offer native IPv6?
- Question 2: What prefix size do they delegate? You need a
/60 at a minimum, /56 is standard.
- How: On your router's WAN interface, you'll typically set the IPv6 Connection Type to "DHCP6" and see a checkbox for "Request a IPv6 prefix/information through the IPv4 connectivity" or similar.
-
Plan Your Subnetting: Let's assume your ISP gives you the prefix 2001:db8:1234:ab00::/56. You have from ...ab00:: to ...abff:: to work with. You can assign one /64 from this block to each of your VLANs. A logical scheme:
LAN (VLAN 10) -> 2001:db8:1234:ab**0a**::/64 (using 0a hex for 10)
IOT (VLAN 20) -> 2001:db8:1234:ab**14**::/64 (using 14 hex for 20)
GUEST (VLAN 30) -> 2001:db8:1234:ab**1e**::/64 (using 1e hex for 30)
- Your router will do this automatically using the "Prefix ID".
-
Plan Your Stable NAS Address: This is critical. Your NAS GUA will change if your ISP changes your delegated prefix. You need an address that never changes for internal scripts, bookmarks, and DNS. The answer is ULA.
- Go to a ULA generator (like
unique-local-ipv6.com or cd34.com/rfc4193/). Generate a /48 prefix. Let's say you get fdf8:f53b:1d51::/48.
- You will assign a
/64 from this ULA prefix to your LAN VLAN: fdf8:f53b:1d51:**000a**::/64.
- You will then assign a static ULA address to your NAS within that subnet, e.g.,
fdf8:f53b:1d51:a::100. This address will be your primary internal target for the NAS.
Phase 2: The Rollout - Router Configuration (pfSense/OpenWrt Example)
-
Configure the WAN Interface:
- Go to
Interfaces > WAN.
- Set IPv6 Configuration Type to
DHCP6.
- Under DHCP6 Client Configuration, enable DHCPv6 Prefix Delegation.
- Set Prefix Delegation Size to
/56 (or whatever your ISP provides).
- Check Send IPv6 prefix hint to request the size you want.
- Save and apply. You should see the router get a GUA on its WAN and a Delegated Prefix in its status.
-
Configure the LAN Interfaces (VLANs):
- Go to
Interfaces > LAN (your VLAN 10 interface).
- Set IPv6 Configuration Type to
Track Interface.
- In the Track IPv6 Interface section, select
WAN.
- Set the IPv6 Prefix ID to
a (hex for 10). This tells the router to assign the 10th /64 from the delegated /56 to this interface.
- Repeat for
IOT (VLAN 20) with Prefix ID 14 and GUEST (VLAN 30) with Prefix ID 1e.
-
Configure Router Advertisements (RA) & DHCPv6:
- Go to
Services > DHCPv6 Server & RA.
- For the
LAN Interface:
- Enable the DHCPv6 server.
- Set a small range for DHCPv6 if you want it (e.g., from
::1000 to ::2000).
- In the Router Advertisements tab, set the mode to
Assisted. This is Stateless DHCPv6. It tells clients: "Get your address using SLAAC, but ask me (DHCPv6) for DNS info."
- For the
IOT and GUEST Interfaces:
- In the RA tab for these interfaces, set the mode to
Unmanaged. This is pure SLAAC. Devices will autoconfigure their address and use the DNS information published in the RA itself. This is simpler and sufficient for these less-trusted networks.
-
Configure ULA (for the Stable NAS Address):
- Go to
System > Advanced > Networking.
- Find . Make sure it's checked.
Phase 3: Server & Client Configuration - The NAS
Your router is now set up. Your workstation and laptop on the LAN should have automatically received both a GUA and a ULA. Now for the NAS.
-
Configure the NAS Network Interface:
- Set IPv6 to Automatic or DHCPv6. It should receive a GUA and a ULA from the router's RAs.
- To make its GUA predictable, you can manually set its Interface Identifier (the last 64 bits) to something static, like
::100. The address would then be [ISP-Prefix]:ab0a::100.
- Better yet, configure a static ULA address:
fdf8:f53b:1d51:a::100.
-
Update Your Internal DNS:
- In your router's DNS resolver or your Pi-hole, create an
AAAA record.
- Hostname:
nas.your.lan
- IP Address:
fdf8:f53b:1d51:a::100
- Now, all your internal devices can reach the NAS using a stable, memorable name that resolves to an address that will never change. They will still use their GUA addresses for outbound internet traffic.
Phase 4: Verification and Troubleshooting
-
On a Client (Windows): Open PowerShell/CMD and run ipconfig /all. Look for:
- An IPv6 Address starting with
2... (the GUA).
- A Temporary IPv6 Address starting with
2... (the privacy address).
- An IPv6 Address starting with
fd... (the ULA).
- A Link-Local IPv6 Address starting with
fe80....
- The Default Gateway should be the link-local address of your router's LAN interface.
-
On a Client (Linux/macOS): Run ip a. You'll see similar output.
-
Test Connectivity:
ping ipv6.google.com
traceroute -6 ipv6.google.com (or tracert -6 on Windows) to see the IPv6 path.
ping nas.your.lan - This should resolve to and ping the ULA address.
-
External Test: Go to a website like test-ipv6.com or ipv6-test.com. You should get a 10/10 score, indicating your browser is preferring and successfully using IPv6.
-
Troubleshooting:
- No GUA? Check your router's WAN status. Did it get a delegated prefix from the ISP? Check the router logs for DHCPv6 errors.
- No ULA? Ensure you've configured it correctly in the router and that RAs are advertising it.
- Can't open a port? Triple-check your WAN firewall rule. Make sure the destination address is correct and you've selected the WAN interface.
- Some sites don't work? This can be a sign of a broken Path MTU Discovery. Ensure your firewall allows the necessary ICMPv6 "Packet Too Big" messages. A well-configured firewall does this by default.
You've now moved from a brittle, stateful NAT environment to a modern, routable, and properly firewalled IPv6 network. Your services have stable internal addresses via ULA, and all your devices have native end-to-end connectivity to the IPv6 internet, secured by your router's stateful firewall. Welcome to the future.