Enabling OSPF Shortcuts

To enable OSPF shortcuts:

  1. Navigate to the Global Configuration Mode.
    SLX# configure terminal
    SLX (config)# 
  2. Navigate into the Router MPLS context.
    SLX (config)# router mpls
    SLX (config-router-mpls)# 
  3. Navigate into the LSP context. If the LSP is not created, this will create a new LSP.
    SLX (config-router-mpls)# lsp test-lsp
    SLX (config-router-mpls-lsp-test-lsp)# 
  4. Disable the LSP before configuring LSP Shortcuts.
    SLX (config-router-mpls-lsp-test-lsp)# no enable
    SLX (config-router-mpls-lsp-test-lsp)#
  5. Enable OSPF shortcuts.
    SLX (config-router-mpls-lsp-test-lsp)# shortcuts ospf
    SLX (config-router-mpls-lsp-test-lsp)# 
  6. Optional: To ignore the configured metric for this LSP, use this command.
    SLX (config-router-mpls-lsp-test-lsp)# shortcuts ospf ignore-lsp-metric
    SLX (config-router-mpls-lsp-test-lsp)# 
  7. Enable the LSP after configuring LSP Shortcuts.
    SLX (config-router-mpls-lsp-test-lsp)# enable
    SLX (config-router-mpls-lsp-test-lsp)#

This example is the consolidation of the above steps and show the additional configuration of ignoring LSP metrics:

SLX# configure terminal
SLX (config)# router mpls
SLX (config-router-mpls)# lsp test-lsp
SLX (config-router-mpls-test-lsp)# shortcuts ospf ignore-lsp-metric