< Home

static-lsp ingress

Function

The static-lsp ingress command configures the ingress node for a static LSP.

The undo static-lsp ingress command deletes the configuration.

By default, no static LSP is configured for the ingress node.

Format

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

static-lsp ingress tunnel-interface tunnel interface-number destination ip-address { nexthop next-hop-address | outgoing-interface interface-type interface-number } * out-label out-label

undo static-lsp ingress { lsp-name | tunnel-interface tunnel interface-number }

Parameters

Parameter Description Value
lsp-name Specifies the name of an LSP. The value is a string of 1 to 19 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
tunnel-interface tunnel interface-number Specifies the index of a tunnel interface. Numeral type. Range: varies with the configuration.
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.
outgoing-interface interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the type of the interface.
  • interface-number specifies the number of the interface.
-
out-label out-label Specifies the value of an outgoing label. An integer ranging from 16 to 1048575.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Run the static-lsp ingress command on the ingress node to configure a static LSP.

The local IP address cannot be designated as the next hop address.

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

Precautions

To modify the parameter 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. You do not need to run the undo static-lsp ingress command before changing a configured value.

When configuring a static LSP, ensure that the route of the static LSP exactly matches the routing information. For example:

  • If you specify a next hop when configuring a static LSP, specify a next hop when configuring a static IP route. If you do not specify a next hop, the static LSP cannot be set up. For example:

[HUAWEI] ip route-static 10.1.0.0 16 10.1.1.2
[HUAWEI] static-lsp ingress staticlsp1 destination 10.1.0.0 16 nexthop 10.1.1.2 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.

If outgoing-interface is configured and next-hop-address is not configured, Ethernet forwarding failures occur.

Example

# Configure the local LSR as the ingress node of the static LSP whose destination address is 10.25.38.1, next hop IP address is 10.55.25.33, and outgoing label is 237.

<HUAWEI> system-view
[HUAWEI] static-lsp ingress bj-sh destination 10.25.38.1 24 nexthop 10.55.25.33 out-label 237
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >