Specify 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 at the
[edit routing-options static route]hierarchy level (for routing instances, include the statements at the[edit routing-instancesrouting-instance-namerouting-options static route]hierarchy level):[edit routing-options static route]qualified-next-hopaddress{metricmetric;preferencepreference;}The
preferencevalue can be a number in the range 1 through 255, with a lower number indicating a more preferred route. Themetricvalue can be a number in the range 1 through 65,535.