Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add a primary next-hop for a destination and then a secondary next-hope for the same destination, in case the first one fails. How can i do that? i couldn't find a straight answer on the Internet.

Thanks, Alex

share|improve this question
How do you define fails? Are you expecting the to only detect if the next hop fails or are you expecting to find some method to know that the link is broken upstream? – Zoredache Dec 13 '11 at 8:29

Look up "metrics".

These are used to calculate the "cost" of a route, the lowest being the best, but as i understand it they aren't fully used with static routing, so you'll need a routing protocol to take advantage of it (rip, ospf, etc).

The last argument on the command line is the routing metric. The metric argument is not used when routes are deleted, but some older systems require it when a route is added; for Solaris 8, the metric is optional. Systems that require a metric value for the route command use it only to decide if this is a route through a directly attached interface or a route through an external gateway. If the metric is 0, the route is installed as a route through a local interface, and the G flag, which we saw in the netstat -i display, is not set. If the metric value is greater than 0, the route is installed with the G flag set, and the gateway address is assumed to be the address of an external gateway. Static routing makes no real use of the metric. Dynamic routing is required to make real use of varying metric values.

Info from this guide

share|improve this answer

Your Answer


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.