What does ip do?
ip shows and changes network settings. ip a lists interfaces and IP addresses; ip r shows the routing table.
ip [object] [command]
Most useful options
| Option | What it does |
|---|---|
| a | addresses |
| r | routes (default gateway) |
| link | interfaces |
| n | neighbours (ARP table) |
ip examples
In security work
ip a and ip r are the first two commands when troubleshooting any network problem.
Questions about ip
How do I find my IP address in Linux?
ip a (or the older ifconfig). Look at the inet line of eth0 / wlan0.