Enabling and disabling a bypass LSP

You can enable (admin up) a bypass LSP or disable (admin down) a bypass LSP using the enable and no enable commands respectively. You must configure the bypass LSP with the to-address and exclude-interface commands before enabling the bypass-lsp command.

To enable a bypass LSP, 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 a unique static bypass LSP name such as my-bypass-lsp.
    device(config-router-mpls)# bypass-lsp my-bypass-lsp
  4. Enable of disable the bypass LSP.
    • To enable the bypass LSP, use the following command.

      device(config-router-mpls-bypass-lsp-my-bypass-lsp)# enable
    • To disable the bypass LSP use the following command.

      device(config-router-mpls-bypass-lsp-my-bypass-lsp)# no enable

Example

The following example shows how to enable the bypass LSP.

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