iproute2
networkingLinux
The iproute2 command is one of the most frequently used commands in Linux/Unix-like operating systems. iproute2 A collection of utilities for controlling TCP/IP networking and traffic control in Linux
Quick Reference
Command Name:
iproute2
Category:
networking
Platform:
Linux
Basic Usage:
iproute2 [options] [arguments]
Common Use Cases
Syntax
Various commands including ip, tc, ss, bridge, rtacct, rtmon, etc.
Options
Command | Description |
---|---|
ip |
Show/manipulate routing, devices, policy routing and tunnels |
tc |
Traffic control for bandwidth management and packet scheduling |
ss |
Socket statistics, replacement for netstat |
bridge |
Configure bridge devices |
rtacct |
Network statistics tools |
rtmon |
Route monitoring utility |
lnstat |
Linux network statistics |
nstat |
Network statistics tools |
routel |
List routes with pretty output format |
ifstat |
Interface statistics |
genl |
Generic netlink utility |
Examples
How to Use These Examples
The examples below show common ways to use the iproute2
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Common commands in the iproute2 package
ip addr show