13

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?

15

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

  • thank you for the link clarifying all the mess with this zoo of networking tools! – static Jul 15 '13 at 14:36
4

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.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.