Network

ip

Show and manipulate routing, network devices, interfaces, and tunnels.

Synopsis

syntax
ip [OPTION]... OBJECT COMMAND

Examples

Show all IP addresses
ip addr show
Brief view of network interfaces
ip -br link
Show routing table
ip route show
Show IPv4 address of eth0
ip -4 addr show eth0
Assign IP to interface
sudo ip addr add 192.168.1.100/24 dev eth0

Common options

FlagDescription
-4IPv4 only
-6IPv6 only
-brBrief output
-cColor output
-jJSON output

About ip

The `ip` command show and manipulate routing, network devices, interfaces, and tunnels. Networking commands handle connectivity testing, DNS resolution, data transfer, remote access, firewall rules, and traffic analysis.

Linux is the dominant server operating system, and strong networking skills are essential for web hosting, container orchestration, security auditing, and infrastructure management. The command accepts 5 commonly used flags shown above, though the full set of options is available in the man page (`man ip`).

The 5 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Network Commands

Other commands in the Network category

Related tools