lo(4)

lo4

Software loopback network interface

Usage

pseudo-device loop

Overview

The loop interface is a software loopback mechanism which may be used for performance analysis, software testing, and/or local communication.

A loop interface can be created at runtime using the ifconfig loN create command or by setting up a hostname.if(5) configuration file for netstart(8). The lo0 interface will always exist and cannot be destroyed using ifconfig(8).

As with other network interfaces, the loopback interface must have network addresses assigned for each address family with which it is to be used. These addresses may be set or changed with the SIOCSIFADDR ioctl(2).

Diagnostics

lo0: can't handle afX.

The interface was handed a message with addresses formatted in an unsuitable address family; the packet was dropped.

Releases

61 releases since OpenBSD 2.1; the text changed 15 times.

  1. 2.1–2.2
  2. 2.3–2.4
  3. 2.5
  4. 2.6
  5. 2.7–2.8
  6. 2.9
  7. 3.0–3.3
  8. 3.4
  9. 3.5
  10. 3.6–3.7
  11. 3.8–3.9
  12. 4.0–4.1
  13. 4.2–4.9
  14. 5.0–5.3
  15. 5.4–6.3
  16. 6.4–8.0

History

The lo device appeared in 4.2BSD.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.