Will It Work? · Guide

IPv6 on a home router: should you turn it on?

By , founder of ElectronicsInfoline (since 2000)

Most routers have an IPv6 switch, and the router page rarely says what it changes. This guide covers what turning it on does, how to pick the connection type on two makers' routers, how to tell from a device that IPv6 works, and what happens to port forwarding. It is drawn from those makers' support pages and the IETF documents for home routers.

If your provider supplies IPv6, turn it on with the connection type the provider gives, or Pass-Through (Bridge) on one maker when another router sits in front. IPv4 keeps working beside it. Each device gets its own global address, so there is no port forwarding: the router's IPv6 firewall blocks unasked-for traffic, and you add an exception to let one device in.

What IPv6 changes at home

IPv4 addresses are 32 bits long and IPv6 addresses are 128 bits (TP-Link). The two are incompatible; they work side by side through methods such as dual stack (TP-Link), which is what a router does when you switch IPv6 on next to its IPv4 connection.

On IPv4, your devices share one public address and the router translates for them. On IPv6, the provider hands the router a block of addresses (a prefix), and the router gives each home network its own /64 from it (IETF), so every device gets an address of its own. A /56 holds 256 such networks and a /60 holds 16; when a router asks for a size, it rounds up to the nearest nibble (four bits), so a router with two networks asks for a /60 (IETF).

Translation also kept unasked-for traffic out, and people still expect that from IPv6 service (IETF). The IETF advice for home routers keeps it with a stateful filter: new state is opened only by traffic that starts inside the home, with manual exceptions allowed (IETF).

IPv4 behind NAT compared with IPv6 on the same home routerLeft, IPv4: the router has one public address and the devices have private addresses such as 192.168.0.100 and 192.168.0.101; the router translates between them. Right, IPv6: the provider delegates a prefix, for example 2001:db8:5::/56, which holds 256 networks of /64; the router gives the home network one /64, 2001:db8:5:1::/64, and each device gets its own global address such as 2001:db8:5:1::a1. No translation; the router's firewall lets in only replies to connections the devices started.IPv4IPv6internetinternetprefix 2001:db8:5::/56routerone public addresstranslates (NAT)routerhome /64: 2001:db8:5:1::/64firewall, no translationdevice192.168.0.100device192.168.0.101device2001:db8:5:1::a1device2001:db8:5:1::b2private addresses,one shared public oneeach device: its ownglobal address/56 = 256 × /64
Figure 1. With IPv4 the devices share one public address. With IPv6 each device has its own global address from the router's /64, and the router's firewall keeps unasked-for traffic out where IPv4 relied on address translation. A /56 holds 256 networks of /64.

Turn it on

You need the IPv6 connection type from your provider; if you are unsure, one maker says to contact the provider first (TP-Link). On that maker's routers, go to Advanced > IPv6, turn IPv6 on, and pick one of four types: PPPoE, Dynamic IP (SLAAC/DHCPv6), Pass-Through (Bridge), Static IP (TP-Link). Dynamic IP is often used on cable (TP-Link). If another router sits in front of yours (double NAT), choose Pass-Through (Bridge) (TP-Link).

On the other maker's routers, go to ADVANCED > Advanced Setup > IPv6 and pick the type from the Internet Connection Type list. If you are not sure, choose Auto Detect and the router finds the type in use; if your provider has no IPv6 at all, that maker offers 6to4 Tunnel (NETGEAR). The same page sets how home devices get their addresses: Auto Config is the default, and the DHCP server option passes more information but some IPv6 systems may not support it (NETGEAR).

Check that it works

The router's IPv6 page shows its own WAN and LAN addresses; if no address came from the provider, the field reads Not Available (NETGEAR). Then look at a device's network details. Addresses in fe80::/10 are link-local and fc00::/7 is for local use; anything outside the special blocks is a global address (IETF) (IETF). A device with a global address has IPv6 internet; one with only fe80 addresses does not.

Read the IPv6 addresses a device showsThree example addresses. fe80::1c2b:3aff:fe4d:5e6f starts with fe80, inside fe80::/10: link-local, every IPv6 device has one, and it does not reach the internet. fd12:3456:789a::5 is inside fc00::/7: unique local, for the home network only. 2001:db8:5:1::a1 falls in none of the special blocks: global unicast, so the device has IPv6 internet. If a device shows only fe80 addresses, IPv6 is not reaching it.address on the devicewhat it meansfe80::1c2b:3aff:fe4d:5e6flink-local (fe80::/10)no IPv6 internet from this onefd12:3456:789a::5unique local (fc00::/7)home network only2001:db8:5:1::a1global (everything else)IPv6 internet worksThe addresses on this drawing are examples.
Figure 2. A device can show several IPv6 addresses. Look for one outside the special blocks (not fe80::/10, not fc00::/7): that is a global address and means IPv6 reaches the device. Only fe80 addresses means it does not.

Port forwarding and IPv6

A port-forwarding rule points at a private IPv4 address and does nothing for IPv6. Over IPv6 the camera or server already has its own global address, and the question is whether the router's filter lets the connection through. As the router ships, it lets in only traffic belonging to connections started inside; to let a connection in from outside, you add an exception for that device and port (IETF). The menu name differs by maker; look in the router's user guide for its IPv6 firewall.

The same IETF document asks routers to offer a “transparent mode” that forwards everything, and warns it may come at the expense of security (IETF). It also says a home router must not offer its own management page to the outside by default (IETF). And because IPv4 and IPv6 are incompatible (TP-Link), a phone on a network with IPv4 only cannot reach a device by its IPv6 address. Test from a connection you know has IPv6.

Will a connection from outside reach a device over IPv6?Four cases. With the router's IPv6 firewall as shipped, a connection started from the internet is blocked; only replies to connections the device started get in. With an exception for one device and port, a caller on IPv6 reaches that device. In transparent mode, with the filter off, everything reaches every device, which is less safe. A caller with IPv4 only cannot connect to an IPv6 address under any setting.router setting · callerresultrouter firewall as shippedcaller on IPv6blockedonly replies get inexception for one device + portcaller on IPv6reaches the deviceopens just what you listtransparent (filter off)caller on IPv6reaches the deviceeverything in; less safeany settingcaller on IPv4 onlycannot connectIPv4 and IPv6 do not mix
Figure 3. IPv6 needs no port forwarding, because the device already has its own global address; it needs an exception in the router's IPv6 firewall instead. The caller must have IPv6 too.

If your router's IPv4 WAN address is carrier-grade NAT, IPv4 port forwarding cannot work (see the port-forwarding guide), but a device with a global IPv6 address and a firewall exception can still be reached by callers who have IPv6.

Tips and tricks

  • Get the IPv6 connection type from your provider before you change anything.
  • With a provider’s router in front of yours, try Pass-Through (Bridge) on yours, if your router offers it, before anything else.
  • Check a phone or laptop for a global address after the change. Only fe80 addresses means IPv6 is not reaching it.
  • Leave the router’s IPv6 firewall on its normal setting. Open one device and one port when you need it, not the whole filter.
  • Turning IPv6 on leaves the IPv4 connection in place; the two run side by side.

What we would do

We would turn IPv6 on whenever the provider supplies it, using the type the provider names, and leave the router's IPv6 filter as shipped. To reach a camera or server from outside, we would add one exception for that device and port, never a filter-off mode, and test from a phone on a mobile network we know has IPv6.

Questions people ask

Should I turn on IPv6 on my home router? If your provider supplies IPv6, yes, with the router’s IPv6 firewall left as it ships. The router then runs IPv4 and IPv6 side by side, and the IPv4 connection carries on as before. If the router’s IPv6 WAN address shows Not Available, your provider is not giving you IPv6 on that connection.

Does IPv6 need port forwarding? No. Each device gets its own global IPv6 address, so there is nothing to translate. Inbound connections are stopped by the router’s IPv6 firewall instead, and to let one in you add an exception for that device and port. The caller must have IPv6 as well.

Is IPv6 less safe because there is no NAT? Not when the router follows the IETF advice for home routers: a stateful filter that lets in only traffic belonging to connections your devices started, plus any exceptions you add. The setting to avoid is a “transparent” or filter-off mode, which the same document says may cost security.

Which IPv6 connection type should I pick? The one your provider gives you. One maker lists PPPoE, Dynamic IP (often used on cable), Pass-Through (Bridge) and Static IP, and says to choose Pass-Through when another router sits in front. The other maker offers Auto Detect when you are not sure.

My device only shows an address starting with fe80. Is IPv6 working? No. fe80 addresses are link-local: every IPv6 device has one and they never reach the internet. A working device also shows a global address, outside fe80::/10 and fc00::/7.

Sources

Each figure on this page is quoted from the source below or worked out from them. Sources checked , each quote read again against the source in a second pass.

  1. TP-Link, TP-Link FAQ 1525: set up IPv6 on a Wi-Fi router: To enable IPv6 on a TP-Link router, log in to the web management page, go to Advanced > IPv6, and turn on the IPv6 toggle. … The IPv6 connection type, Dynamic IP, is often used with cable ISPs. … If there is a main router in front of your TP-Link router (double NAT), select Pass-Through (Bridge) as the IPv6 connection type and click Save. … PPPoE Dynamic IP (SLAAC/DHCPv6) Pass-Through (Bridge) Static IP … If you are unsure, contact your ISP first. tp-link.com/us/support/faq/1525/
  2. NETGEAR, NETGEAR KB 24006: set up an IPv6 internet connection: Select ADVANCED > Advanced Setup > IPv6 . From the Internet Connection Type drop-down, select your IPv6 connection type. Your Internet service provider (ISP) can provide this information. … If you are not sure, select Auto Detect so that the router detects the IPv6 type that is in use. If your ISP does not provide IPv6 connections, select 6to4 Tunnel . kb.netgear.com/24006/
  3. NETGEAR, NETGEAR KB 24008: IPv6 auto detection and LAN address assignment: Router's IPv6 Address on WAN . This field shows the IPv6 address that is acquired for the router's WAN (or Internet) interface. … If no address is acquired, the field displays Not Available. … Use DHCP Server . This method passes more information to LAN devices, but some IPv6 systems might not support the DHCPv6 client function. Auto Config . This is the default setting. kb.netgear.com/24008/
  4. TP-Link, TP-Link FAQ 2714: running out of IPv4, what IPv6 is: IPv4 address sizes are 32-bit; however, IPv6’s are 128-bit … IPv6 and IPv4 are incompatible. … we can make them communicate through technology such as Tunneling, Dual Stack and NAT-PT. tp-link.com/us/support/faq/2714/
  5. IETF, RFC 6092: Simple Security in IPv6 Gateway CPE: Provide a barrier against untrusted external influences on the interior network by requiring filter state to be activated by traffic originating at interior network nodes. o Allow manually configured exceptions to the stateful filtering rules according to network administrative policy. … The stateful packet filtering behavior of NAT set user expectations that persist today with residential IPv6 service. … Operating in transparent mode may come at the expense of security … REC-50: By DEFAULT, subscriber-managed residential gateways MUST NOT offer management application services to the exterior network. rfc-editor.org/rfc/rfc6092.txt
  6. IETF, RFC 7084: Basic Requirements for IPv6 Customer Edge Routers: it MUST ask for a prefix large enough to assign one /64 for each of its interfaces, rounded up to the nearest nibble … The IPv6 CE router MUST assign a separate /64 from its delegated prefix(es) rfc-editor.org/rfc/rfc7084.txt
  7. IETF, RFC 4291: IP Version 6 Addressing Architecture (address types): Unspecified 00...0 (128 bits) ::/128 2.5.2 Loopback 00...1 (128 bits) ::1/128 2.5.3 Multicast 11111111 FF00::/8 2.7 Link-Local unicast 1111111010 FE80::/10 2.5.6 Global Unicast (everything else) rfc-editor.org/rfc/rfc4291.txt
  8. IETF, RFC 4193: Unique Local IPv6 Unicast Addresses: Prefix FC00::/7 prefix to identify Local IPv6 unicast rfc-editor.org/rfc/rfc4193.txt

Author: Bulan Sarkar · Report an error

Numbers here are quoted from standards bodies and makers, or worked out from them. Nothing on this page was measured or tested by us.