static-lsp transit

Use static-lsp transit to configure the transit node of a static LSP.

Use undo static-lsp transit to delete the transit node configuration of a static LSP.

Syntax

static-lsp transit lsp-name in-label in-label { nexthop next-hop-ip-address | outgoing-interface interface-type interface-number } out-label out-label

undo static-lsp transit lsp-name

Default

No static LSPs exist.

Views

System view

Predefined user roles

network-admin

Parameters

lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.

in-label in-label: Specifies an incoming label. The value range for the in-label argument is 16 to 15999.

nexthop next-hop-ip-address: Specifies a next hop address.

outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number. The specified interface must be a point-to-point interface.

out-label out-label: Specifies an outgoing label. The value range for the out-label argument is 0, 3, and 16 to 1048575.

Usage guidelines

You must enable MPLS on the outgoing interface of the static LSP.

A static LSP must have a different incoming label than an existing static CRLSP. If they are the same, the static LSP is not available, even if you change the incoming label of the static CRLSP. To make the static LSP available, delete the static LSP, and reconfigure it with an unused incoming label.

Examples

# Configure a static LSP on the transit node: specify the LSP's name as bj-sh, incoming label as 123, next hop address as 202.34.114.7, and outgoing label as 253.

<Sysname> system-view
[Sysname] static-lsp transit bj-sh in-label 123 nexthop 202.34.114.7 out-label 253

Related commands

display mpls static-lsp