| Previous | Next |
| EL2HLT | EBADR |
ENETUNREACH
No route to the destination network
ENETUNREACH means that the local stack cannot route the operation to the destination network. The destination address is meaningful, but route selection has no usable network-level path for it.
This differs from a service rejection. The failure occurs before a TCP listener, TLS endpoint, or application protocol can respond. It also differs from EHOSTUNREACH, which is used when the network is known but the specific host cannot be reached.
What makes the error diagnosable
- Record the numeric destination address and family after name resolution, not only the hostname supplied by the application.
- Capture the routing decision, candidate source address, interface, and route-table or policy-routing state at the same time.
- Check family-specific routing separately. A host can have a working IPv4 route and no corresponding IPv6 route, or vice versa.
What retries can and cannot show
A later success may prove that routing changed, but a retry cannot identify the missing route by itself. Preserve the destination and route evidence from the failed call before resolving or reconnecting through a different address.
References
Looking for a different code? Search another status or error code.
