< Home

static-lsp egress

Function

The static-lsp egress command configures the local label switching router (LSR) as the egress of a static label switched path (LSP).

The undo static-lsp egress command restores the default configuration.

By default, the local LSR is not the egress of a static LSP.

Format

static-lsp egress lsp-name incoming-interface interface-type interface-number in-label in-label

undo static-lsp egress lsp-name

Parameters

Parameter Description Value
lsp-name Specifies the name of an LSP. A string of 1 to 19 case-sensitive characters, spaces not supported.
NOTE:
When double quotation marks are used around the string, spaces are allowed in the string.
incoming-interface interface-type interface-number Specifies the type and number of an interface.
NOTE:

If "---" is displayed in this field in the configuration file, the configured interface is unavailable. Please modify the configuration.

in-label Specifies the value of an incoming label. An integer ranging from 16 to 4095.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After configuring a static LSP, run the display mpls static-lsp command to view whether the static LSP is established successfully.

To modify the incoming-interface interface-type interface-number or in-label in-label, run the static-lsp egress command to set a new value. There is no need to run the undo static-lsp egress command before changing a configured value.

Example

# Configure the LSR as the egress of a static LSP named bj-sh.

<sysname> system-view
[sysname] static-lsp egress bj-sh incoming-interface GigabitEthernet 0/0/0 in-label 233
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >