Did you know?
ip -br a shows every network interface and its IP addresses on one line each.
A clean replacement for ifconfig, which is no longer installed by default on many systems.
- Networking
- Last checked
Explained
ip addr prints a lot of detail. Add -br (brief) to get one line per interface with its state and addresses:
ip -br a
lo UNKNOWN 127.0.0.1/8 ::1/128
enp1s0 UP 203.0.113.24/24 2001:db8::24/64
docker0 DOWN 172.17.0.1/16
More brief views:
ip -br linkip -c -br a
ip -br link lists interfaces with their MAC addresses, and -c adds colour. Other everyday ip commands are ip route for the routing table and the default gateway, and ip neigh for the ARP/neighbour cache.
ifconfig belongs to the old net-tools package, which Debian, RHEL and many minimal images don’t install. ip comes with iproute2, which is always there.
Learn more
- ip Command in Linux (Manage Networking) Full guide · Updated Apr 2025
-
ipcommand cheat sheet Options and copy-ready examples
