Network Interfaces
Cheat sheet · https://pcornel.dk/topic.php?topic=365
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.
Remember
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.
First 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 statusornetworkctl— which manager controls it.
Commands
ip -br addr- Compact interface/address state.
ip -s link- Interface counters, errors and drops.
ip -details link show- Shows interface state, flags, MTU and link-layer details.
ip address show- Shows IPv4/IPv6 addresses and interface state.
ip -6 addr show- Inspect IPv6 addresses, scope and interface state.
ip routeip ruleip route getip neighip addressip address addip -br linknmcliethtool <interface>ethtool -S <interface>ip netns
Verify in this order
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
Where it usually breaks
First mismatch in link/interface → address/namespace → route/neighbor → firewall/policy → socket/daemon → DNS/TLS/SSH/application peer path; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=365