static-lsp egress

Function

The static-lsp egress command configures the egress of a static LSP.

The undo static-lsp egress command deletes the configuration.

By default, no egress of a static CR-LSP is configured.

Format

static-lsp egress lsp-name [ incoming-interface { in-interface-name | { in-interface-type in-interface-number } } ] in-label in-label

undo static-lsp egress lsp-name

Parameters

Parameter Description Value
lsp-name

Specifies the name of a static LSP.

The value is a string of 1 to 19 case-sensitive characters. It cannot contain spaces. The string can contain spaces if it is enclosed with double quotation marks (").

incoming-interface

Indicates an inbound interface.

-

in-interface-name

Specifies the name of an inbound interface.

-

in-interface-type in-interface-number

Specifies the type and number of an inbound interface.

-

in-label in-label

Specifies the value of an incoming label.

The value is an integer ranging from 16 to 1048575.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

The establishment of static LSPs does not require a label distribution protocol or any control packets. The static LSPs consume a few resources and are applicable to small-scale networks with simple and stable topology. To configure the egress of a static LSP, run the static-lsp egress command.

To modify the inbound interface name or incoming label value, run the static-lsp egress command to set a new value, but there is no need to run the undo static-lsp egress command before changing a setting.

Example

# Configure the egress for a static LSP named bj-sh.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] static-lsp egress bj-sh incoming-interface GigabitEthernet0/1/0 in-label 233
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >