Specifying 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:
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 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.
To specify a point-to-multipoint LSP as the next hop for a static route, include the following statements:
p2mp-lsp-next-hop {interfaceinterface-name;metricmetric;preferencepreference;}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
Enable the qualified next-hop address on the interface by specifying the
interfaceoption. Thepreferencevalue can be a number from 1 through 255. A lower number indicates a more preferred route. Themetricvalue can be a number from 1 through 65,535.