Lesson 6 of 9 · 23m
Troubleshooting IPv6 in Production
A disciplined isolation sequence for IPv6 incidents: address state, neighbor discovery, routes, DNS, MTU, logs, and the monitoring that catches one-family failures.
IPv6 troubleshooting fails when people start at the application because IPv6 feels exotic. Start at the layer you can prove. The protocol is boring once you isolate state: does the host have an address, can it reach the gateway, can it resolve names, can packets fit, and does the service listen where you think it listens?
Build a ladder and climb it in order
A good incident ladder looks like this:
ip -6 addr show dev eth0
ip -6 route show
ip -6 neigh show
ping -6 -c 3 <gateway>
ping -6 -c 3 2001:4860:4860::8888
dig AAAA www.example.net
curl -6 -I https://www.example.netEach step answers a separate question. Do not jump to curl before you know whether a default route exists. Do not blame DNS before testing a literal address. This sounds obvious; under incident pressure, it is the difference between a five-minute diagnosis and an afternoon of folklore.
Read address flags and lifetimes
Addresses are not just present or absent. They have states:
ip -6 addr show dev eth0deprecated means existing connections may continue but new connections should avoid the address. tentative means duplicate address detection is still in progress. temporary means privacy addressing generated a rotating interface identifier. These states explain many "it worked during boot and then stopped" reports.
Distinguish routing from neighbor resolution
If the route exists but the neighbor entry is FAILED, the next hop is not resolving. That points to local-link issues, firewall filtering, switch RA/DHCPv6 guards, multicast problems, or the wrong interface. If neighbor resolution works but remote packets die, look upstream.
ip -6 route get 2001:4860:4860::8888The route get output is often clearer than scanning the full table because it shows source selection and next-hop choice in one place.
MTU failures are intermittent by design
A path MTU black hole passes small packets and drops or stalls large ones. TCP connects. HTTP headers may arrive. Images, certificate chains, or API responses hang. Test with do-not-fragment sizes and compare:
ping -6 -M do -s 1280 2001:db8:3f20::10
ping -6 -M do -s 1452 2001:db8:3f20::10
tracepath -6 2001:db8:3f20::101280 bytes is the IPv6 minimum link MTU and a useful lower bound. Tunnels often lower effective MTU; firewall filtering of Packet Too Big makes the symptom worse.
Monitor by address family and user outcome
Monitor the same endpoint twice: once forced IPv4, once forced IPv6. Include DNS resolution as a separate check because a missing AAAA record is different from a dead server. Log latency separately; IPv6 may route through different providers and peering paths even when both families are "up."
Field notes
ping6may exist, but modern iputils often usesping -6. Know your platform rather than memorizing one alias.- A socket bound only to IPv4 will not answer IPv6 no matter how healthy routing is. Check with
ss -lntup. - Packet captures remain the final truth:
tcpdump -i eth0 'ip6 and host 2001:db8::10'. - Do not "fix" IPv6 by disabling it on one host. You have created a special snowflake and hidden the defect.
Was this lesson helpful?