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.
static-lsp egress lsp-name incoming-interface interface-type interface-number in-label in-label
undo static-lsp egress lsp-name
| 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. |
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.