Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

On a dual-stack server, `curl -6 https://example.com` fails with `Network is unreachable`, but IPv4 works.

IntermediateTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → The host has no IPv6 default route. Typical reasons: router advertisements aren't accepted because net.ipv6.conf.eth0.forwarding=1 while accept_ra=1 (RA is ignored on forwarding interfaces unless accept_ra=2), DHCPv6/RA disabled, or the cloud subnet has no ::/0 route to an IGW/egress-only IGW.

Diagnose →

ip -6 addr show scope global
ip -6 route show default
sysctl net.ipv6.conf.eth0.accept_ra net.ipv6.conf.eth0.forwarding
ping -6 -c2 2606:4700:4700::1111

Fix → Set accept_ra=2 on hosts that forward (Docker/Kubernetes nodes), or configure a static IPv6 default route; in AWS add ::/0 → igw (public) or ::/0 → eigw (private) to the route table.

Prevent → If IPv6 isn't supported end to end, don't publish AAAA records or leave half-configured addresses; apps then try IPv6 first and stall.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures