Skip to content

Lesson 4 of 9 · 25m

Dual-Stack Without Split-Brain Operations

How to run IPv4 and IPv6 as equal citizens: routing, NAT boundaries, happy eyeballs, service exposure, and avoiding invisible one-stack failures.

Dual-stack is the least glamorous transition strategy and the one that actually carries most production networks. It is also easy to do badly: IPv4 becomes the tested path, IPv6 becomes a checkbox, and users discover outages through randomized connection failures that look like application bugs.

Treat IPv6 as a production protocol, not a bonus feature

A correct dual-stack service has parity across the whole path:

DNS A + AAAA
routing, load balancer listeners, and server sockets
firewall policy and monitoring checks
certificate and application behavior

If any layer is IPv4-only, users may still connect — because IPv4 masks the gap. The danger is not immediate failure. The danger is uneven behavior that only appears for networks where IPv6 is preferred.

Understand Happy Eyeballs before blaming the network

Modern clients use Happy Eyeballs: they try IPv6 and IPv6/IPv4 candidates in a racing order, preferring IPv6 when it works. A broken IPv6 path can therefore cause delay even when IPv4 is healthy. Symptoms look like this:

curl -6 https://www.example.net      # times out
curl -4 https://www.example.net      # succeeds immediately

Forcing address families is the quickest isolation test. On Linux, dig AAAA, ping -6, traceroute6 or tracepath -6, and curl -6 should all be muscle memory.

curl -6 -I --connect-timeout 3 https://www.example.net
curl -4 -I --connect-timeout 3 https://www.example.net

NAT boundaries change shape, not responsibility

IPv4 dual-stack often hides behind NAT. IPv6 usually gives hosts globally routable addresses. That does not mean "expose everything." It means reachability is controlled by routing and packet filters rather than by translation accidents.

A typical edge still has clear roles:

inside clients  -> global unicast addresses -> stateful outbound access
public services -> explicitly permitted inbound flows
internal-only   -> filtered at edge and internal segmentation boundaries

Do not insert NAT66 because it feels familiar. NAT adds state, complicates logging, breaks end-to-end assumptions, and still does not provide a security boundary by itself.

Watch the control planes separately

IPv4 BGP can be healthy while IPv6 BGP is missing a prefix, and vice versa. Interior gateway costs, router advertisements, DHCPv6 relay paths, and firewall state tables all deserve independent checks. Monitoring should ask "does the service work over each family?" rather than inferring it from a single green check.

ping -6 -c 3 2001:db8:3f10:220::20
curl -g -6 'http://[2001:db8:3f10:220::20]/health'

Brackets are required when literal IPv6 addresses appear in URLs.

Field notes

  • IPv6 being "enabled" is meaningless. Define user-visible parity: DNS, reachability, latency, and application success.
  • Happy Eyeballs hides broken IPv4 on IPv6-preferred networks and hides broken IPv6 on IPv4-preferred networks. Test both paths explicitly.
  • Disable unused transition tunnels. They create a third network path nobody is monitoring.
  • Log actual address families in load balancers and applications. A single combined success metric is operationally blind.

Was this lesson helpful?

Sign in to rate