Configuring a bypass LSP primary path

The user can configure a bypass LSP with an explicit path using the primary-path command. The path can contain strict and loose hops. Use this path for calculating the path of the bypass LSP, similar to regular LSPs. The path must be defined before configuring it into a bypass LSP. the primary path is an adaptive parameter. By default, there is no configuration of the primary path.

To configure a bypass LSP primary path, complete the following steps.

  1. Enable the device for configuration.
    device>configure
  2. Enable the MPLS router.
    device(config)# router mpls
  3. Configure the bypass LSP with the unique static bypass LSP name. In this example, the name is my-bypass-lsp .
    device(config-router-mpls)# bypass-lsp my-bypass-lsp
  4. Configure the primary path. In this example, the selected primary path is called my-bypass-path .
    device(config-router-mpls-bypass-lsp-my-bypass-lsp)# primary-path  my-bypass-path

The following example combines the steps above to configure a static bypass LSP with a unique bypass LSP of my-bypass-lsp and configures a primary path with the name my-bypass-path .

device>configure
device(config)# router mpls
device(config-router-mpls)# bypass-lsp my-bypass-lsp
device(config-router-mpls-bypass-lsp-my-bypass-lsp)# primary-path  my-bypass-path