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:
[edit routing-options static route]lsp-next-hoplsp-name{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 1 through 255, with a lower number indicating a more preferred route. Themetricvalue can be a number in the range 1 through 65,535.