ip aEvery interface and its IPv4 and IPv6 addresses (short for ip address show).
The iproute2 tool for addresses, links, routes, neighbours and network namespaces — the modern replacement for ifconfig and route.
sudo apt install iproute2ip aEvery interface and its IPv4 and IPv6 addresses (short for ip address show).
ip -br aBrief one-line-per-interface summary.
ip -4 a show <iface>IPv4 addresses on one interface.
Example
ip -4 a show eth0sudo ip addr add <cidr> dev <iface>Adds an address (not persistent across reboots).
Example
sudo ip addr add 10.10.14.5/24 dev eth0sudo ip addr del <cidr> dev <iface>Removes an address.
Example
sudo ip addr del 10.10.14.5/24 dev eth0ip -br linkInterfaces, their state and MAC addresses.
sudo ip link set <iface> upBrings an interface up; use down to disable it.
Example
sudo ip link set eth0 upsudo ip link set dev <iface> address <mac>Changes the MAC address (bring the interface down first).
Example
sudo ip link set dev wlan0 address 02:11:22:33:44:55ip -s link show <iface>Packet, byte, error and drop counters.
Example
ip -s link show eth0ip rThe routing table; the default route shows your gateway.
ip route get <ip>Which interface, source address and gateway the kernel would use to reach an address.
Example
ip route get 8.8.8.8sudo ip route add <cidr> via <gateway>Adds a static route — common when pivoting into internal networks.
Example
sudo ip route add 172.16.0.0/16 via 10.10.14.1sudo ip route del <cidr>Deletes a route.
Example
sudo ip route del 172.16.0.0/16ip neighThe ARP/NDP cache: nearby hosts this machine has talked to.
sudo ip neigh flush allClears the neighbour cache.
ip netns listNetwork namespaces, used by containers and for isolated testing.
sudo ip netns exec <ns> <cmd>Runs a command inside a namespace.
Example
sudo ip netns exec lab ip aThe modern Linux socket statistics tool: lists listening ports, established connections and the processes behind them, faster than netstat.
Sends ICMP echo requests to test reachability and measure round-trip time.
Shows network connections, listening ports, routing tables and interface statistics. Largely replaced by ss on Linux but still common everywhere.
The modern nl80211 tool for configuring Linux wireless devices: scan, set channels, switch modes and inspect capabilities.