ip examples, explained
$ ip addr show
- ipshow / manipulate routing, network devices, interfaces and tunnels
- addrprotocol (IP) addresses on network interfaces
- showlist the addresses
$ ip route add default via 192.168.1.1
- ipshow / manipulate routing, network devices, interfaces and tunnels
- routethe routing table
- addadd a route
- defaultan argument passed to the command
- viaan argument passed to the command
- 192.168.1.1an argument passed to the command
$ ip -br link
- ipshow / manipulate routing, network devices, interfaces and tunnels
- -brbrief, tabular output
- linknetwork devices (interfaces)
ip subcommands
addr — protocol (IP) addresses on network interfacesaddress — protocol (IP) addresses on network interfacesa — protocol (IP) addresses on network interfaceslink — network devices (interfaces)l — network devices (interfaces)route — the routing tabler — the routing tableneigh — the ARP / neighbour tablerule — routing policy rulestunnel — IP tunnelsmaddr — multicast addressesmonitor — watch for network events as they happen
ip flags & options
| -4 | operate on IPv4 only |
| -6 | operate on IPv6 only |
| -br | brief, tabular output |
| -brief | brief, tabular output |
| -c | colorize the output |
| -s | show statistics (repeat for more detail) |
| -j | output as JSON |
| -json | output as JSON |
| -d | show detailed output |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.