Advertising Label-Switched Paths into OSPF

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 LSP), a remote address (the to address of the LSP), and a metric with the following precedence:

  1. Use the LSP metric defined under OSPFv2.
  2. Use the LSP metric configured for the label-switched path under MPLS.
  3. If you do not configure any of the above, use the default OSPFv2 metric of 1.

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.