The static-lsp ingress command configures the ingress for a static label switched path (LSP).
The undo static-lsp ingress command deletes the configuration.
By default, no static LSP is configured for the ingress LSR.
static-lsp ingress lsp-name destination ip-address { mask-length | mask } { nexthop next-hop-address | outgoing-interface interface-type interface-number } * out-label out-label
undo static-lsp ingress 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. |
| destination ip-address | Specifies the destination IP address. | It is in dotted decimal notation. |
| mask-length | Specifies the mask length of the destination IP address. | An integer ranging from 0 to 32. |
| mask | Specifies the mask of the IP address. | It is in dotted decimal notation. |
| nexthop next-hop-address | Specifies the next-hop address. | It is in dotted decimal notation. NOTE:
The local IP address cannot be designated as the next-hop address. |
| outgoing-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. |
| out-label out-label | Specifies the value of an outgoing label. | An integer ranging from 16 to 1048575 |
After configuring a static LSP, run the display mpls static-lsp command to view whether the static LSP is established successfully.
To modify the destination destination-address, nexthop next-hop-address, outgoing-interface interface-type interface-number, or out-label out-label, run the static-lsp ingress command to set a new value. There is no need to run the undo static-lsp ingress command before changing a configured value.
There are some restrictions on the configuration of static LSPs:
If you specify a next hop when configuring a static LSP, specify a next hop when configuring a static IP route. Otherwise, the static LSP cannot be set up. For example:
[sysname] ip route-static 10.10.0.0 16 10.1.1.2
[sysname] static-lsp ingress staticlsp1 destination 10.10.0.0 16 nexthop 10.1.1.2 out-label 100
If you specify an outgoing interface when configuring a static LSP, specify the outgoing interface when configuring a static IP route. Otherwise, the static LSP cannot be set up. Therefore, the local IP address cannot be specified as the next hop. For example:
[sysname] ip route-static 10.10.0.0 16 GigabitEthernet 0/0/0
[sysname] static-lsp ingress staticlsp1 destination 10.10.0.0 16 outgoing-interface GigabitEthernet 0/0/0 out-label 100
If a dynamic routing protocol applies to the link between LSRs, the next-hop IP address along the LSP must be the same as the IP address of the next hop in the routing table.