Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Network Interfaces

Direct answer

A Linux network interface is the kernel's handle for a network connection — a physical card, a VLAN, a bridge, a bond. ip shows and changes it; a separate network manager makes the settings permanent.

First checks

Network interface checks

Linux · iproute2. Run in the network namespace that owns the affected workload. Replace placeholders.

Observed statePossible causeCommandObservation and next check
Device missingWrong namespace, renamed or absent deviceip -br link show

Find the intended device and state flags; UP is administrative state.

Next: If absent, inspect the workload namespace or device creation. Use ip -details link show to confirm ifindex when identity is uncertain.

UP but no carrierPhysical link, peer or lower virtual device unavailableip -details link show dev <interface>

For Ethernet, compare UP with LOWER_UP / NO-CARRIER and operstate. Virtual devices can report UNKNOWN.

Next: Check cable/switchport for physical links, or parent/peer/master for virtual links.

Address missing or wrongAddress configuration or manager did not applyip -br address show dev <interface>

Compare address and prefix with the intended subnet.

Next: Inspect the active network manager and DHCP/static configuration.

Wrong egress pathRoute or policy selects another device/sourceip route get <destination>

Read the selected dev, source and next hop for this destination.

Next: For policy routing, include the real source/mark/VRF context; inspect ip rule show.

Errors or drops risingDevice, queue or link problem; counters alone do not identify itip -s link show dev <interface>

Compare two samples during the same failing workload.

Next: Correlate increasing errors/drops with driver statistics and the peer; then repeat the flow.

Example output and interpretation

Illustrative output · not captured Evidence

$ ip -br link show dev eth0
eth0 DOWN ... <NO-CARRIER,BROADCAST,MULTICAST,UP>

Illustrative Ethernet output: UP in the flag list means administratively enabled; NO-CARRIER and DOWN indicate that the lower link is unavailable. Check the peer/link before changing routes. Link state alone does not prove service reachability.

Technical sources
Linked catalog commands
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

Detailed reference and supporting material

Additional explanation, verification and reference tables.

At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandip -br addr
Verificationinterface exists under its real name → administratively up → carrier → correct address and prefix → route to the destination → gateway reac…
Scope / prerequisiteUse it when a Linux host has no connectivity, the wrong address, or settings that vanish or revert.
Configure · 1Reference · 4
What next?3 suggested next steps
Catalog command links5
Evidence1
On this pageJump to a specific section
When to use this

Use it when a Linux host has no connectivity, the wrong address, or settings that vanish or revert.

First 30 seconds

1. ip -br link — is the interface UP, and is it LOWER_UP?

2. NO-CARRIER → cable, switch port or virtual switch.

3. ip -br addr — the expected address and prefix?

4. ip route — a default route? Then ping <gateway>.

5. Settings keep reverting → find the manager (nmcli device status, networkctl) and change it there.

Operational verification

interface exists under its real name → administratively up → carrier → correct address and prefix → route to the destination → gateway reachable → configuration stored in the managing tool

Evidence · next step

For Linux Networking → Network Interfaces, continue with the first unproven Topic check: Identify namespace, ifindex, name, MAC, driver/type and any master/peer/parent relationship. If that boundary is healthy, advance to the adjacent check: Compare administrative state, carrier/operstate, addresses and error/drop counters. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common interpretation traps
  • "I added the address with ip, so it is configured." Until the next reboot or network restart.
  • "The interface is UP, so the link works." Look for LOWER_UP; without it there is no carrier.
  • "The interface is called eth0." Check ip -br link; names follow the hardware.
  • "My change keeps disappearing." Another network manager owns the interface and re-applies its own configuration.
  • "ifconfig shows everything." It is deprecated and does not show all addresses; use ip.
  • "The host has that interface, so the container sees it." Each network namespace has its own.
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
Additional verification procedures
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

namespace → ifindex/name → device type/driver → admin state → carrier/operstate → addresses → master/peer/parent relation → counters → packet path → workload

Healthy evidence: the expected netdevice exists in the correct namespace with stable identity, intended master/peer relations, suitable carrier/state and clean counters for the tested flow.

Step 2 Operational verification Verify boundary

The ip command family for links, addresses, routes, neighbors, policy routing and namespaces.

Fast verification

  • Prefer ip -br addr, ip route, ip rule and ip route get for concise state.

- Verify policy-routing table selection before editing routes.

- For neighbor failures, inspect ip neigh and the L2 path rather than adding static routes.

Step 3 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify namespace, ifindex, name, MAC, driver/type and any master/peer/parent relationship.

  • Compare administrative state, carrier/operstate, addresses and error/drop counters.
  • Correlate changes or renames with udev/manager state and kernel logs when identity is uncertain.
  • Verify an exact flow through the interface rather than relying on generic counter movement.

Verification chain. namespace → ifindex/name → device type/driver → admin state → carrier/operstate → addresses → master/peer/parent relation → counters → packet path → workload

Step 4 Commands Verify boundary
ip -br link
ip addr show eth0
ethtool eth0
Step 5 Failure modes and next checks Narrow the fault

Suspicious evidence: the same interface name refers to a different namespace/device, carrier is absent despite UP, a virtual interface is attached to the wrong master, or errors/drops rise during the failing workload.

Step 6 Common mistakes Narrow the fault
  • Assuming interface names like eth0 on systems with predictable names.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

UP means enabled; LOWER_UP means there is a link. Changes made with ip are lost at reboot. One tool owns the permanent configuration — NetworkManager, systemd-networkd, netplan or ifupdown; find out which before editing. Names follow the hardware (ens192), not eth0.

Key checks
  • ip -br link — every interface with its state.
  • ip -br addr — addresses per interface.
  • ip route — routes and the default gateway.
  • ethtool <interface> — speed, duplex, link detected.
  • ip -s link show <interface> — errors and drops.
  • nmcli device status or networkctl — which manager controls it.
ReferenceWhat it is2 sections · depth on demand

Core model

Use ifindex/namespace as the durable identity during diagnosis because names can change. Separate device existence from administrative state, carrier from protocol readiness, and interface counters from end-to-end success. For virtual interfaces, identify peer, parent, master or backing device relationships.

Mental model

A network interface on Linux is the kernel's handle for a network connection — a physical card, a VLAN, a bridge, a bond, a tunnel or the loopback. The ip command shows and changes interfaces, addresses and routes; what makes those settings permanent is a separate network manager.

ReferenceWhy it matters2 sections · depth on demand

When to use it

Use this Topic when the problem is in iproute2. Use Linux Networking when the problem concerns Linux runtime, services, networking, identity, packages, storage or shell automation.

Why it matters operationally

Most Linux connectivity problems come down to a few interface facts: is it up, does it have carrier, which addresses does it hold, and who configured it. The last one matters because changes made with ip vanish at the next reboot, and several different tools may be responsible for the permanent configuration.

ReferenceHow it works1 section · depth on demand

How it works

Reading the state. ip -br link lists interfaces with their state; ip -br addr adds the addresses. In the full output, the flags tell two different things:

FlagMeaning
UPAdministratively enabled
LOWER_UPCarrier present — a cable and a link partner
NO-CARRIEREnabled, but no link

An interface can be UP without LOWER_UP: enabled with nothing connected.

Names. Modern systems name interfaces by where the hardware sits — enp3s0, eno1, ens192 — so names stay stable across reboots. eth0 is no longer a safe assumption.

Temporary changes.

ip link set dev ens192 up
ip addr add 10.20.0.5/24 dev ens192
ip route add default via 10.20.0.1

These take effect at once and are lost at reboot.

Permanent configuration belongs to whichever tool manages networking on the system:

ToolTypical onConfiguration
NetworkManagerRHEL family, desktopsnmcli, files in /etc/NetworkManager/system-connections
systemd-networkdMinimal and container hosts/etc/systemd/network/*.network
netplanUbuntu/etc/netplan/*.yaml, rendered to one of the above
ifupdownOlder Debian/etc/network/interfaces

Find out which one is active before editing files; configuring an interface in two places leads to settings that keep reverting.

Hardware level. ethtool <interface> shows speed, duplex and whether a link is detected; ethtool -S <interface> and ip -s link show error and drop counters.

Namespaces. Containers have their own set of interfaces. ip shows only the namespace it runs in; ip netns and nsenter reach the others.

ReferenceImportant terms & boundaries4 sections · depth on demand

What this shows and what it does not

Interface state shows only host-side netdevice properties in a namespace, but it does not show switchport/VLAN correctness, route selection, remote reachability or application acceptance.

In depth

Addresses on Linux interfaces with ip address

Linux keeps interface state (links) separate from the addresses assigned to them, and ip address manages the addresses. The ip-address(8) manual page defines the behaviour:

  • Add and delete: ip address add assigns an address to a device, and delete takes the same arguments. flush refuses to run without arguments, because it removes every matching address.
  • Scope: global (valid everywhere), link (valid only on this device) and host (valid only inside this host). site exists for IPv6 but is deprecated.
  • Lifetimes: valid_lft and preferred_lft default to forever. When the preferred lifetime expires, new outgoing connections stop using the address. When the valid lifetime expires, the kernel removes it.
  • noprefixroute: stops the kernel from creating the connected route for the address's prefix.
  • Labels: IPv4 addresses can carry a label of up to 15 characters, such as eth0:mgmt.

Reading the output

ElementMeaning
inet 10.110.0.64/24IPv4 address and prefix length
scope global / scope linkWhere the address is valid
dynamicLearned automatically (DHCP or SLAAC), with lifetimes counting down
secondaryAn additional IPv4 address in the same subnet
tentativeIPv6 duplicate address detection is still running
dadfailedIPv6 DAD found a duplicate; the address is not used
deprecatedThe preferred lifetime has expired

Common tasks

host$ ip -br address show
lo               UNKNOWN        127.0.0.1/8 ::1/128
eth0             UP             10.110.0.64/24 2001:db8:110::64/64 fe80::a6bb:6dff:fe55:164/64
host$ sudo ip address add 10.110.0.65/24 dev eth0 label eth0:svc
host$ ip address show dev eth0 secondary
host$ ip -6 address show dev eth0 tentative
host$ ip -6 address show dadfailed
host$ sudo ip address add 192.0.2.10/32 dev lo
host$ sudo ip address del 10.110.0.65/24 dev eth0

Runtime state isn't saved

Addresses added with ip disappear at reboot, or when the network manager reapplies its configuration. Use ip to test and troubleshoot, then put the result into NetworkManager, systemd-networkd or Netplan. Otherwise the next restart quietly undoes the change.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Network Interfaces is part of Linux Networking → Network Interfaces. A Linux network interface is a kernel netdevice identified by ifindex and a name inside a network namespace; administrative UP, carrier, operstate, master membership, addresses and device-specific properties are distinct state dimensions.

Topic-specific state model. A Linux network interface is a kernel netdevice identified by ifindex and a name inside a network namespace; administrative UP, carrier, operstate, master membership, addresses and device-specific properties are distinct state dimensions.

Interpretation rule. - Interface name ≠ globally unique identity across namespaces or across time.

  • Administrative UP ≠ carrier detected or usable L2 path.
  • Carrier present ≠ valid IP addressing, routing or service reachability.
  • RX/TX counters incrementing ≠ packets are correct, bidirectional or accepted by the application.

Limits and how it fails

Primary failure point. Interface state shows only host-side netdevice properties in a namespace, but it does not show switchport/VLAN correctness, route selection, remote reachability or application acceptance.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Network Interfaces owns Linux netdevice identity and operational state. VLAN, Bonding, Bridges and Network Namespaces own their specialized topology semantics; manager-specific persistence belongs to NetworkManager, Netplan or systemd-networkd.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Linux Networking → Network Interfaces. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/networking/index.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux network interfacesip link linuxip addr interfacelinux netdevice
Embedded reference data

Quick lookup tables

Network Interfaces operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Network Interfaces.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateA Linux network interface is a kernel netdevice identified by ifindex and a name inside a network namespace; administrative UP, carrier, operstate, master membership, addresses and device-specific properties are distinct state dimensions.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin host + namespace + exact flow → identify configuration owner/renderer → identify ifindex/interface + topology → inspect link/carrier → inspect addresses → inspect neighbor resolution → reproduce route/rule lookup → verify VLAN/bond/bridge/MTU as relevant → inspect packets/socket → verify return path → repeat original workload.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainnamespace → ifindex/name → device type/driver → admin state → carrier/operstate → addresses → master/peer/parent relation → counters → packet path → workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryInterface state proves only host-side netdevice properties in a namespace; it does not prove switchport/VLAN correctness, route selection, remote reachability or application acceptance.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux networking evidence can establish this proof path: namespace → ifindex/name → device type/driver → admin state → carrier/operstate → addresses → master/peer/parent relation → counters → packet path → workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. Interface state proves only host-side netdevice properties in a namespace; it does not prove switchport/VLAN correctness, route selection, remote reachability or application acceptance.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: confirm namespace and configuration owner, inspect ifindex/link/address/neighbor/route state for the exact flow, verify L2/MTU construction and packet movement, then test the listening service and return path before making additional changes.Continue to the next unresolved boundary while preserving the original test condition.

Network Interfaces · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryNetwork Interfaces
Topic pathLinux Networking → Network Interfaces
Runtime stateA Linux network interface is a kernel netdevice identified by ifindex and a name inside a network namespace; administrative UP, carrier, operstate, master membership, addresses and device-specific properties are distinct state dimensions.
Fast checks- Identify namespace, ifindex, name, MAC, driver/type and any master/peer/parent relationship. - Compare administrative state, carrier/operstate, addresses and error/drop counters. - Correlate changes or renames with udev/manager state and kernel logs when identity is uncertain. - Verify an exact flow through the interface rather than relying on generic counter movement.
Verification chainnamespace → ifindex/name → device type/driver → admin state → carrier/operstate → addresses → master/peer/parent relation → counters → packet path → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Failure boundaryInterface state proves only host-side netdevice properties in a namespace; it does not prove switchport/VLAN correctness, route selection, remote reachability or application acceptance. Boundary chain: process/socket namespace → source/rule/FIB → neighbor → netfilter/eBPF/qdisc → virtual/physical device → peer → return → application.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?