You can advertise label-switched paths (LSPs) into OSPFv2 as point-to-point links so that all participating routers can take the LSP into account when performing SPF calculations. The advertisement contains a local address (the from address of the label-switched path), a remote address (the to address of the label-switched path), and a metric with the following precedence:
To advertise LSPs, include the label-switched-path statement, with a specified name and metric:
-
label-switched-path name metric metric;
For a list of hierarchy levels at which you can include this statement, see the statement summary section for this statement.
![]() |
Note: If you want an LSP that is announced into OSPFv2 to be used in SPF calculations, there must be a reverse link (that is, a link from the tail end of the LSP to the head end). You can accomplish this by configuring an LSP in the reverse direction and also announcing it in OSPFv2. |
For more information about advertising label-switched paths, see the JUNOS MPLS Applications Configuration Guide.