Static routes remain in the routing table until you remove them or until they become inactive. One possible scenario
in which a static route becomes inactive is when the IP address used as the next hop becomes unreachable.
By default, the next-hop IP address of static routes must be reachable using a direct route. Unlike with software from
other vendors, the Junos OS does not perform recursive lookups of next hops by default. You can override this
default behavior using the resolve option.
You can include a number of optional parameters when configuring static routes, such as the
qualified-next-hop and resolve options.
The qualified-next-hop option allows independent preferences for static routes to the same destination. The
sample configuration corresponds with the graphic, which uses the qualified-next-hop option.
[edit routing-options]
user@R1# show
static {
route 0.0.0.0/0 {
next-hop 172.30.25.1;
qualified-next-hop 172.30.25.5 {
preference 7;
}
}
}
In the sample configuration shown, the 172.30.25.1 next hop assumes the default static route preference of 5,
whereas the qualified 172.30.25.5 next hop uses the defined route preference of 7. All traffic using this static route
uses the 172.30.25.1 next hop unless it becomes unavailable. If the 172.30.25.1 next hop becomes unavailable,
the default static route will then use the 172.30.25.5 next hop. Some vendors refer to this implementation as a
floating static route.