Forever & AlwaysLINUX COMMAND ATLAS

LINUX COMMAND ATLAS · COMMAND GUIDE

Linux ip command

Inspect or configure network interfaces, addresses, and routes.

iproute2

Syntax

Command form
ip [OPTIONS] OBJECT { COMMAND | help }

Common options

7 options
OptionWhat it does
-4 / -6Restrict the command to IPv4 or IPv6.
-br, -briefUse concise output for supported objects.
-s, -statsShow statistics where supported.
address (addr)Inspect or configure interface addresses.
linkInspect or configure network interfaces.
routeInspect or configure routing tables.
monitorWatch for network object changes.

Usage examples

3 examples

Inspect or configure network interfaces, addresses, and routes.

ip address show

List interface addresses in a compact format.

ip -br address

Show the current routing table.

ip route

Notes

Commands that change links, addresses or routes can disrupt connectivity and often require root privileges. Inspect the exact object before applying changes.