ENONET
Linux / POSIXERRORNotableNetworkHIGH confidence

Machine Is Not on the Network

Production Risk

Indicates complete network unavailability; check interface and routing configuration.

What this means

ENONET (errno 64) is a Linux-specific error returned when a network operation is attempted but the machine has no network connectivity.

Why it happens
  1. 1All network interfaces are down
  2. 2Network subsystem not initialized
How to reproduce

Network operation when machine has no active network interfaces.

trigger — this will error
trigger — this will error
// Connect attempt with all interfaces down
connect(sockfd, (struct sockaddr*)&addr, sizeof(addr));
// Returns -1, errno = ENONET

expected output

connect: Machine is not on the network (ENONET)

Fix

Bring up a network interface

WHEN Before attempting network operations

Bring up a network interface
# Bring up an interface
ip link set eth0 up
ip addr add 192.168.1.100/24 dev eth0
# Or use NetworkManager
nmcli networking on

Why this works

ENONET means there is no usable network interface. Enable at least one interface first.

Sources
Official documentation ↗

Linux Programmer Manual errno(3)

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All Linux / POSIX errors