ifconfig
the classic interface toolifconfig shows each network interface with its addresses and counters. It has been superseded by the ip command and is no longer installed by default, but older guides, scripts and other Unix systems still use it, so it is worth being able to read.
Learn ip addr for new work; recognise ifconfig when you meet it.
At the terminal
Read the session first, then the notes: each numbered line in the output is answered by the note with the same number.
What the numbered lines are telling you
UP means enabled and RUNNING means a cable or link is present. 1500 bytes is the usual Ethernet MTU.
The netmask is written out in full here; 255.255.255.0 is the same as the /24 that ip addr shows.
"ether" is the hardware address of the interface.
Packets and bytes received and sent since the interface came up. Errors and drops appear on these lines when there are any.
Switches
A switch changes how the command behaves. These are the ones used day to day; man ifconfig lists the rest. Single-letter switches can usually be joined, so -l -a may be written -la.
-a- Show all interfaces, including those that are down.
-s- Short: a one-line summary per interface.
IFACE up- Enable an interface. "down" disables it.
Variations worth knowing
The same tool, pointed at a narrower question. These four cover most of what it is reached for day to day.
ip addr show eth0The modern equivalent of the command above.
ifconfig -aShows every interface, including ones that are down.
sudo ifconfig eth0 downDisables an interface. "ip link set eth0 down" is the current form.
ip -br addrOne line per interface — the quickest overview.
In cybersecurity
An interface listing shows every network the machine is attached to.
An interface in promiscuous mode is accepting traffic not addressed to it — normal while tcpdump runs, suspicious otherwise.
A tun or tap interface means a VPN or tunnel is up. One nobody set up may be a path out of the network.
It can be changed with one command, so access control based on MAC addresses alone is easily bypassed.