How to use ip (iproute2)

Hackbydoing Academy tool guide · Network scanning & recon · free, no login

What ip (iproute2) is, in plain words

Ip is the modern Linux tool for looking at and changing your own machine's network settings: its addresses, cards and routes (the directions packets follow).

A working ip command

ip addr show

This lists every network card on your machine with the IP address and hardware address each one is using.

Every piece of the command, explained

aThe short spelling of addr, so ip a does exactly the same job as ip addr show.
addrWork with IP addresses: ip addr show lists the addresses on each card. Address is the long spelling of the same word.
linkWork with the network cards themselves: ip link shows whether each card is up or down, and ip link set can switch one on or off.
neighShow the neighbour table — the same local address pairings as the ARP table: which hardware address was last seen for each nearby IP address.
routeWork with routes — the directions that say where packets go: ip route shows the table, including the default line that names your router (gateway).

Use it the legal way

Only run ip on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.

✦ Practice ip (iproute2) hands-on in a guided lab

Reading about ip is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.

Join Hackbydoing Academy →

Related tool guides

Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.