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.
More on Containers, Kubernetes, IPv6 and packet captures
After someone ran `iptables -F` (or restarted firewalld), all Docker containers lost outbound connectivity.Intermediate`docker run -p 8080:80 myapp` starts fine, but `curl localhost:8080` returns `Connection reset by peer`.BeginnerTwo containers on the default bridge network can't reach each other by container name.Beginner`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.BeginnerA new Kubernetes node stays `NotReady` with `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.IntermediateA Service returns `Connection refused` / nothing, and `kubectl get endpoints myapp` shows `<none>`.Beginner