static-lsp egress

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

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

Syntax

static-lsp egress lsp-name in-label in-label [ destination ip-address { mask | mask-length } ]

undo static-lsp egress 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.

destination ip-address: Specifies a destination IP address for the LSP.

mask: Specifies the mask of the destination IP address.

mask-length: Specifies the mask length of the destination address, in the range of 0 to 32.

Usage guidelines

You must specify the incoming label on the egress node if PHP is not configured. If PHP is not configured, an egress node pops the incoming label of a packet, and performs label forwarding according to the inner label or IP forwarding.

To associate a static LSP with an LDP LSP, you must specify the incoming label and destination address on the egress node of the static LSP.

You can associate a static LSP with an LDP LSP to simplify packet processing when the following conditions are met:

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 egress node: specify the LSP's name as bj-sh and incoming label as 233.

<Sysname> system-view
[Sysname] static-lsp egress bj-sh in-label 233

Related commands

display mpls static-lsp