Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I tried to understand the networking tools on linux. I am confused now about what should I 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 this two tools?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

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

share|improve this answer
    
thank you for the link clarifying all the mess with this zoo of networking tools! –  static Jul 15 '13 at 14:36
add comment

route is a fairly simple tool, perfect for creating static routes, it 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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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