Network is unreachable Linux Origin: Platform & cloud OSI layer 3 · Network Last updated 12 Oct 2026

connect: Network is unreachable (ENETUNREACH)

The host has no route to the destination network — no default gateway, interface down, or trying IPv6 without IPv6 connectivity.

Exact message you may see Network is unreachableconnect: Network is unreachableFailed to connect: Network is unreachable
Seen on: Linux

Meaning

The kernel fails immediately because the routing table has no route. Typical: the network interface is down, DHCP didn’t set a default gateway, or an IPv6 address was chosen on an IPv4-only network.

Common causes

  • No default route (gateway missing)
  • Interface down / cable/Wi-Fi disconnected
  • IPv6 destination on an IPv4-only network
  • VPN changed routes

⚡ Quick fix

  1. Check routes: ip route and ip -6 route
  2. Bring the interface up and renew DHCP
  3. Prefer IPv4 (-4 flag) if IPv6 isn’t available

Detailed fix by platform

Linux

  1. bash
    ip -br addr
    ip route
    sudo dhclient -v eth0   # or: sudo netplan apply
    curl -4 https://example.com

How to diagnose

  1. Routes — default via … present?
  2. Interface — UP with an address?
  3. Family — IPv6 address being used?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

0x80072EE7 — Error 0x80072EE7 (Windows Update / Microsoft Store: server name could not be resolved) (Windows)0x80072EE70x8024402C — Windows Update error 0x8024402C (cannot connect to update server) (Windows)0x8024402C1019 — Cloudflare Error 1019: Compute server error (Workers) (Cloudflare)101914 UNAVAILABLE — gRPC Error: 14 UNAVAILABLE: No connection established / failed to connect to all addresses (API)14 UNAVAILABLE404 — HTTP 404 Not Found (HTTP)404405 — HTTP 405 Method Not Allowed (HTTP)4055.4.4 — 554 5.4.4 Unable to route: no MX or A record for the recipient domain / Host not found (HostNotFound) (Email / SMTP)5.4.4554 5.4.14 Hop count exceeded - possible mail loop — SMTP: 554 5.4.14 Hop count exceeded - possible mail loop (Email / SMTP)554 5.4.14 Hop count …Network i…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.