Interfaces#
Network interfaces are the kernel’s view of every NIC, virtual link,
bridge, tunnel, and loopback. ip is the modern tool for inspecting
and reconfiguring them; the old ifconfig is deprecated but still
shows up in legacy scripts.
The list of interface kinds an operator meets in the wild. Each
shows up in ip link with its own type, state machine, and
quirks; mixing them up in firewall rules is a frequent source of
“why isn’t this working” tickets.
Name |
Kind |
Notes |
|---|---|---|
|
loopback |
|
|
physical NIC |
|
|
wireless |
SSID, association state |
|
software bridge |
L2 switch ( |
|
link aggregation |
N NICs as one (LACP, active-backup) |
|
802.1Q tag |
|
|
pair |
one half in netns, one in host |
|
userspace tunnel |
L3 (tun) / L2 (tap) |
|
WireGuard |
encrypted L3 |
|
container nets |
bridge or veth into namespaces |
Bring-up sequence; each step gates the next:
flowchart LR
U[link UP] --> C{carrier?} --> A{addr assigned?} --> R{route present?} --> Y[usable]
operator@system:~$ ip addr
operator@system:~$ ip a show eth0
operator@system:~$ ip link set eth0 up
operator@system:~$ ip link set eth0 down
operator@system:~$ ip addr add 192.168.1.10/24 dev eth0
operator@system:~$ ip addr del 192.168.1.10/24 dev eth0