ip
Show and manipulate routing, network devices, interfaces, and tunnels.
Synopsis
ip [OPTION]... OBJECT COMMAND
Examples
ip addr show
ip -br link
ip route show
ip -4 addr show eth0
sudo ip addr add 192.168.1.100/24 dev eth0
Common options
| Flag | Description |
|---|---|
| -4 | IPv4 only |
| -6 | IPv6 only |
| -br | Brief output |
| -c | Color output |
| -j | JSON 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