IPv4 has about 4.3 billion addresses and ran out years ago, which is why many providers put several customers behind one public address (CGNAT). IPv6 uses 128-bit addresses and gives every home a whole block of public addresses. Many providers already offer it, but routers often have it switched off or only half configured. Here is how to check it, turn it on and protect the network.
Reading an IPv6 address
| Type | Starts with | Used for |
|---|---|---|
| Global (GUA) | 2 or 3 (2000::/3) |
Public address, reachable from the Internet if the firewall allows it |
| Link-local | fe80:: |
Local network only, always present; it does not mean IPv6 works |
| Unique local (ULA) | fd |
Stable private addresses for the home network, like 192.168.x.x |
An address is written as eight hexadecimal groups, for example 2001:db8:12:3400::1; the double colon stands for a run of zeros. The first 64 bits identify the network, the last 64 the device.
Checking whether your line has IPv6
- Open a test site such as test-ipv6.com: it shows whether you have an IPv6 address and whether dual-stack sites load correctly.
- On a computer:
ipconfig(Windows),ip -6 addr(Linux) orifconfig(macOS). Look for an address starting with 2 or 3, not justfe80::. - In the router, open the WAN or Internet page: it should show an IPv6 address and a delegated prefix, such as
/56or/64.
If the router gets nothing, check your provider’s support pages for whether IPv6 is included in your plan and which settings to use: some lines only get it on request.
Turning it on in the router
- WAN mode: usually DHCPv6 with prefix delegation (DHCPv6-PD), or automatic IPv6 over the same PPPoE session as IPv4. Use your provider’s settings.
- Prefix size: RIPE-690 recommends a
/56(256 /64 networks) or a/48for residential customers, ideally static. With a single/64you get one network only: no separate guest network or VLANs over IPv6. - Local network: enable Router Advertisements with SLAAC so devices configure themselves. DHCPv6 on the LAN is optional; Android does not use it.
- DNS: the router can advertise DNS servers through RA (RDNSS). If you run a local DNS filter, advertise its IPv6 address too, or devices will bypass it.
Without NAT, the firewall is what protects you
With IPv4, NAT hides home devices almost by accident. With IPv6 every device has a public address, so protection comes only from the router firewall.
| Rule | Recommended setting |
|---|---|
| Unsolicited inbound connections | Blocked by default |
| Outbound connections and replies | Allowed (stateful firewall) |
| ICMPv6 | Never block it entirely: Neighbor Discovery and path MTU discovery need it; filter it as described in RFC 4890 |
| Opening a service | Only to a specific address and port, never to the whole prefix |
Also make sure options such as “IPv6 without firewall” or “IPv6 DMZ” are off, or cameras and smart plugs become reachable from the Internet. For cameras see IP camera cybersecurity.
Privacy: temporary addresses
With SLAAC a device could always use the same second half of its address and become easy to track. Modern systems instead use temporary addresses that change periodically for outgoing connections (RFC 8981) and stable addresses not derived from the MAC for services (RFC 7217). They are on by default in Windows, macOS, iOS, Android and most Linux distributions: leave them on.
When IPv6 really helps
- Behind CGNAT you cannot forward IPv4 ports. With IPv6 a home service, such as a VPN server, can be reachable, as long as the remote device has IPv6 too.
- Games and video calls suffer less from NAT limits.
- Performance is normally the same as IPv4. If some sites load slowly after enabling it, the cause is often the MTU or blocked ICMPv6. To measure your line see measuring your connection with speedtest, iperf3 and bufferbloat.
Common problems
- Only fe80:: addresses: IPv6 is not arriving on the WAN, or the router is not advertising the prefix on the LAN.
- Prefix changes at every reconnection: firewall rules and service addresses break. Use dynamic DNS names or suffix-based rules if the router supports them.
- The DNS filter stops filtering: devices receive a different IPv6 DNS server. See the DNS item above.
- Sites unreachable only over IPv6: check with
ping -6andtraceroute -6(ortracert -6) and report it to your provider.
Sources
- RIPE NCC, RIPE-690: IPv6 prefix assignment for end-users.
- IETF, RFC 4291 (addressing architecture), RFC 8981 (temporary addresses), RFC 7217, RFC 4890 (ICMPv6 filtering), RFC 6092 (home router security).
- Google, IPv6 adoption statistics.
