Specifying an Independent Preference for a Static Route
Configuring independent preferences allows you to configure multiple static routes with different preferences and metrics to the same destination. The static route with the best preference, metric, and reachable next hop is chosen as the active route. This feature allows you to specify preference and metric on a next-hop basis using the
qualified-next-hopstatement.
To specify an independent preference for a static route, include the following statements:
[edit routing-options static route]qualified-next-hopaddress{metricmetric;preferencepreference;}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
The
preferencevalue can be a number in the range from 1 through 255, with a lower number indicating a more preferred route. Themetricvalue can be a number in the range from 1 through 65,535.