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 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
add comment

1 Answer

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
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.