Specify an LSP as the Next Hop for a Static Route
Static routes can be configured with a next hop that is a label-switched path (LSP). This is useful when implementing filter-based forwarding. You can specify an LSP as the next hop and assign an independent preference and metric to this next hop.
To specify an LSP as the next hop 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]lsp-next-hoplsp-name{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.