18

I tried to understand the networking tools on Linux. I am confused now about what I should use to manipulate the static routing: route or ip route?:

route - show / manipulate the IP routing table

ip - show / manipulate routing, devices, policy routing and tunnels

What is the difference between these two tools?

Matthias Braun
  • 205
  • 1
  • 8
static
  • 331
  • 2
  • 4
  • 16

2 Answers2

21

The iproute2 suite is set to replace the net-tools suite of network configuration tools. There are "synonym" commands that perform similar function in each.

While most documentation will refer you to the route command, you'll be ahead of the game to learn ip route since distributions should stop including net-tools at some point.

Deprecated Linux networking commands and their replacements

Aaron Copley
  • 12,345
  • 5
  • 46
  • 67
6

route is a fairly simple tool, perfect for creating static routes. It's still present in many distributions for compatibility. ip route is much more powerful, it has much more functionality, and can create more specialized rules.

ip route isn't needed to create a static route, but as it's a much more useful tool, the effort expended in learning it and its syntax is definitely time well spent.

Matthias Braun
  • 205
  • 1
  • 8
NickW
  • 10,183
  • 1
  • 18
  • 26
  • thank you! I hope, I don't need now the "ip route" (i.e. that simple "route" will be enough)! – static Jul 15 '13 at 14:38