Configuring a bypass LSP CSPF computation mode

The user can base a bypass LSP CSPF computation on an IGP metric or a TE metric. By default, the CSPF computation mode sets to the TE metric. The user can set the CSPF computation mode by using the cspf-computation-mode command and its options. This parameter is an adaptive parameter.

To configure a bypass LSP CSPF computation mode, 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 of my-bypass-lsp .
    device(config-router-mpls)# bypass-lsp my-bypass-lsp
  4. Configure the cspf-computation-mode command with the use-igp-metric option or the use-te-metric option.
    • Configuring the cspf-computation-mode command with the use-igp-metric option.
      device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode  use-igp-metric
    • Configuring the cspf-computation-mode command with the use-te-metric option.
      device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode  use-te-metric

Example

The following example combines the steps above to configure a static bypass LSP with a unique bypass LSP name of my-bypass-lsp and a cspf-computation-mode with the use-igp-metric or use-te-metric option.

device>configure
device(config)# router mpls
device(config-router-mpls)# bypass-lsp my-bypass-lsp
device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode  use-igp-metric
-or-
device(config-router-mpls-bypass-lsp-my-bypass-lsp)# cspf-computation-mode  use-te-metric