IP Addresses & Routing

Dual Stack, Tunnels and Translation: Moving to IPv6

Compare dual stack, tunneling and NAT64-style translation, learn where each fits and plan an IPv6 rollout without breaking IPv4 users.

Key takeaways

  • IPv6 and IPv4 are separate protocols, so something must bridge them wherever only one is available.
  • Dual stack is simple to reason about but means running, securing and monitoring two networks.
  • Tunnels cross a gap by wrapping packets, at the cost of extra overhead and another point of failure.
  • NAT64 with DNS64, often paired with 464XLAT, lets IPv6-only clients reach IPv4 destinations.
  • Start by checking every layer for IPv6 support, especially firewalls, monitoring and applications.

There are three broad ways to bring IPv6 into a network that still depends on IPv4. Dual stack runs both protocols side by side. Tunnels carry one protocol inside the other to cross a stretch that doesn't support it. Translation converts packets between them so that an IPv6-only device can reach IPv4-only services.

Most real deployments combine them. Your phone might use IPv6 only on the mobile network, with translation for older destinations, while your home connection runs dual stack. This guide explains each approach, its costs and how to choose.

Why a transition is needed at all

IPv6 was not designed to be read by IPv4 equipment. The headers differ, and a 32-bit address field cannot hold a 128-bit address. A site with only an IPv4 address is invisible to a host that has only IPv6, unless an intermediary helps.

The pressure to move comes from IPv4 scarcity. The need to stay compatible comes from the many services and devices that still speak only IPv4.

Three transition approaches
Dual stack Both protocols on every link Clients choose per connection Still needs IPv4 addresses Tunneling Wraps one protocol in the other Crosses unsupported segments Adds overhead and smaller MTU Translation Rewrites packets between protocols Allows IPv6-only client networks Some applications need extra help Dual stack Both protocols on every link Clients choose per connection Still needs IPv4 addresses Tunneling Wraps one protocol in the other Crosses unsupported segments Adds overhead and smaller MTU Translation Rewrites packets between protocols Allows IPv6-only client networks Some applications need extra help

Dual stack

In a dual-stack network, interfaces carry both IPv4 and IPv6 addresses, routers forward both and DNS publishes both A and AAAA records. Applications ask for both and usually prefer IPv6. Many use Happy Eyeballs (RFC 8305), which starts a connection and quickly tries another address if the first is slow, so a broken path doesn't leave users waiting.

Strengths: nothing is translated, each protocol works natively, and you can move one service at a time.

Costs:

  • Two address plans, two sets of routes and two firewall policies.
  • Troubleshooting must ask "which protocol?" every time.
  • Happy Eyeballs can hide a failing IPv6 path for months.
  • You still need IPv4 addresses, shared or not, for every client network.

Dual stack is the natural first step for most organizations and the usual arrangement for home broadband that offers IPv6.

Tunnels

A tunnel puts a whole packet of one kind inside a packet of another. The two ends wrap and unwrap; everything in between sees only the outer protocol.

An IPv6 packet crossing an IPv4-only stretch
1 Host sends IPv6 An ordinary IPv6 packet heads for a distant server. 2 Tunnel entry wraps it An IPv4 header is added around the whole packet. 3 IPv4 network carries it Routers forward based on the outer addresses. 4 Tunnel exit unwraps it The outer header is removed. 5 IPv6 delivery The original packet continues natively. Host sends IPv6 An ordinary IPv6 packet heads for a distant server. 1 Tunnel entry wraps it An IPv4 header is added around the whole packet. 2 IPv4 network carries it Routers forward based on the outer addresses. 3 Tunnel exit unwraps it The outer header is removed. 4 IPv6 delivery The original packet continues natively. 5

Methods you may encounter:

Method Carries Typical use
Configured 6in4 tunnel IPv6 over IPv4 A manual link to a tunnel provider
6rd (RFC 5969) IPv6 over IPv4 A provider adding IPv6 across its existing network
DS-Lite (RFC 6333) IPv4 over IPv6 An IPv6 access network with shared IPv4 at the provider
MAP-E and lightweight 4over6 IPv4 over IPv6 Provider variants that shift where translation state lives
Teredo and 6to4 IPv6 over IPv4 Older automatic methods, generally avoided today

6in4 uses IP protocol number 41, which some home routers and firewalls don't pass, and it needs an endpoint address the other side knows. The automatic methods earned a reputation for unreliability; the anycast relay arrangement used by 6to4 has been deprecated.

Notice the reversal in the middle rows. As provider networks move to IPv6 internally, it is increasingly IPv4 that gets tunneled.

Watch the MTU. Wrapping adds bytes, so the largest packet that fits gets smaller. If the messages that report this are filtered, you'll see small requests succeed while large downloads stall. See MTU, MSS and fragmentation and the MTU planner.

Watch security. A tunnel can carry traffic past a firewall that only inspects the outer protocol. Filter at the point where packets are unwrapped, and block tunneling protocols you don't intend to use.

Translation: NAT64 and DNS64

In an IPv6-only client network, NAT64 (RFC 6146) is a gateway that converts between IPv6 and IPv4, keeping state much like ordinary NAT. To steer traffic to it, IPv4 addresses are embedded inside a special IPv6 prefix. The well-known one is 64:ff9b::/96 (RFC 6052), and operators can use their own.

DNS64 (RFC 6147) completes the trick. When a client asks for an AAAA record and the name has only an A record, the resolver synthesizes an AAAA answer.

An IPv6-only client reaching an IPv4-only site
Client DNS64 resolver NAT64 gateway IPv4 server AAAA for the site? 1 64:ff9b::192.0.2.33 2 Built from the A record. Documentation address used as an example. IPv6 packet to that address 3 Translated IPv4 packet 4 Client DNS64 resolver NAT64 gateway IPv4 server AAAA for the site? 1 64:ff9b::1 92.0.2.33 2 Built from the A record. Documentat ion address used as an example. IPv6 packet to that address 3 Translate d IPv4 packet 4

This works well for name-based applications. It fails when software uses a literal IPv4 address, opens only IPv4 sockets, or sends addresses inside its own protocol. It can also conflict with DNSSEC validation done on the client, since the synthesized record isn't signed by the zone owner.

464XLAT: covering the stubborn applications

464XLAT (RFC 6877) adds a small translator on the device itself, called the CLAT. It gives applications a local IPv4 address, converts their IPv4 packets into IPv6, and the provider's NAT64 (the PLAT) converts them back. Old software keeps working on an IPv6-only network without tunneling. It is common on mobile networks.

Newer arrangements, sometimes called IPv6-mostly, let a network keep IPv4 for devices that need it while telling capable devices, through a DHCP option (RFC 8925), that they can do without. Client support varies, so test.

Making services reachable

If you run servers rather than clients, the common choices are:

  1. Give servers both addresses and publish both record types.
  2. Put a dual-stack front end such as a load balancer, reverse proxy or CDN in front of IPv4-only backends. This is often the quickest route, with the caveat that backends must read the original client address from a trusted header.
  3. Run IPv6-only internally and translate IPv4 visitors at the edge. This simplifies the inside but demands that every internal tool handles IPv6.

Choosing for your situation

Your situation Likely fit
Provider offers native IPv4 and IPv6 Dual stack
No native IPv6, and you want to learn or test A configured tunnel from a tunnel provider
New large client network, IPv4 addresses scarce IPv6-only with NAT64, DNS64 and 464XLAT
IPv4-only application you can't change A dual-stack proxy or load balancer in front
Old equipment on an isolated segment Leave it on IPv4 and translate or proxy at its edge

Before choosing IPv6-only, test the awkward cases: VPN clients, voice and video applications, industrial or building devices, printers and anything configured with a numeric IPv4 address. A pilot network where staff volunteers work normally for a few weeks finds more problems than a checklist does. Keep a dual-stack network available so that someone who hits a blocker can keep working while you investigate.

Cost belongs in the comparison too. Dual stack spreads effort across every team that manages addresses. Translation concentrates it in a gateway that must be sized for the traffic, made redundant and able to log mappings if you are required to trace connections. Tunnels are cheap to start and can become expensive to debug.

A rollout plan

  1. Inventory. List routers, firewalls, switches, load balancers, monitoring, VPNs, logging and applications. Check each for real IPv6 support.
  2. Get addresses. Obtain a prefix from your provider or registry and draw a simple plan with one /64 per network. See IPv6 subnetting.
  3. Secure first. Write IPv6 firewall rules before enabling it, keeping the necessary ICMPv6.
  4. Pilot on one network with willing users.
  5. Publish AAAA records for services only after they answer reliably.
  6. Monitor each protocol separately, forcing tests over IPv4 and IPv6:
curl -4 -I https://www.example.com/
curl -6 -I https://www.example.com/
  1. Review code and data that assume IPv4: input validation, database columns, allow lists and rate limits.

Say a small company hosts one website and has an office network. It might first enable IPv6 on the CDN in front of the site, then turn on dual stack for guest Wi-Fi, and only then move staff networks once the firewall and VPN have been verified.

What commonly goes wrong

Firewall parity is missing. The IPv4 policy is strict and the IPv6 policy was never written. Audit both from outside your network, using only systems you own.

DNS gets ahead of the service. An AAAA record is published before the web server, mail server or firewall is ready. Visitors with IPv6 see delays or errors, while your IPv4-based monitoring reports everything as fine.

VPN leaks and conflicts. A VPN that carries only IPv4 may let IPv6 traffic go around it, or a VPN client on an IPv6-only network may fail to connect to an IPv4-only server. Test both directions.

Mail needs extra care. Sending mail over IPv6 brings expectations about reverse DNS and sender authentication. Get those right before enabling it on a mail server, as discussed in PTR records and reverse DNS.

Logs and limits break quietly. A column too short for an IPv6 address truncates it. A rate limiter that counts single addresses lets one customer with a whole /64 slip past, while one that counts too broadly blocks innocent neighbors.

Nobody owns the new protocol. Staff know IPv4 diagnostics by heart. Spend time on practice, and add IPv6 checks to the same runbooks, so a fault at night is not the first time anyone reads a neighbor table.

Common questions

Should I disable IPv6 until I'm ready?

Devices already use link-local IPv6, and some features depend on it. It's better to understand and filter it than to switch it off broadly and assume it's gone.

Which method is best for a home?

Use whatever native service your provider offers, usually dual stack or an IPv6-based design your router handles automatically. Manual tunnels are mainly for learning or for connections with no native IPv6. Check whether yours works first.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in IP Addresses & Routing →

Latest news on this topic