static-lsp ingress

Function

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

The undo static-lsp ingress command deletes the configuration.

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

Format

static-lsp ingress lsp-name destination ip-address { mask | mask-length } { { outgoing-interface { out-interface-name | { out-interface-type out-interface-number } } } { nexthop next-hop-address } } out-label out-label

static-lsp ingress lsp-name destination ip-address { mask | mask-length } { { nexthop next-hop-address } { outgoing-interface { out-interface-name | { out-interface-type out-interface-number } } } } out-label out-label

static-lsp ingress lsp-name destination ip-address { mask | mask-length } { outgoing-interface { out-interface-name | { out-interface-type out-interface-number } } } out-label out-label

static-lsp ingress lsp-name destination ip-address { mask | mask-length } nexthop next-hop-address out-label out-label

undo static-lsp ingress 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 (").

destination ip-address

Specifies the destination address of a static LSP.

The value is in dotted decimal notation.

mask

Specifies the mask of IP addresses.

The value is in dotted decimal notation.

mask-length

Specifies the mask length of a specified IP address.

The value is an integer ranging from 0 to 32.

outgoing-interface

Indicates an inbound interface.

-

out-interface-name

Specifies the name of an outbound interface.

-

out-interface-type

Specifies the type of an outbound interface.

-

out-interface-number

Specifies the number of an outbound interface.

-

nexthop next-hop-address

Specifies a next-hop IP address.

The value is in dotted decimal notation.

No local IP address can be configured as a next-hop IP address.

out-label out-label

Specifies the value of an outgoing 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 ingress of a static LSP, run the static-lsp ingress command.

To modify the destination address, next-hop IP address, outbound interface name, or outgoing label value, run the static-lsp ingress command to set a new value, but there is no need to run the undo static-lsp ingress command before changing a setting.

Precautions

If an outbound interface name is configured but no next-hop IP address is specified, a forwarding failure occurs on an Ethernet network.

Note the following conditions when you configure a static LSP:

  • If a next-hop IP address is specified for a static LSP, a next-hop IP address must be also specified for a static IP route to be configured, which prevents a failure to establish the static LSP.

    ip route-static 10.10.0.0 32 1.1.1.2

    static-lsp ingress staticlsp1 destination 10.10.0.0 32 nexthop 10.1.1.2 out-label 100
  • If LSRs run a dynamic routing protocol to implement connectivity, specify the same next-hop IP address of the LSP as that in the routing table.
  • If a static LSP and an LDP LSP with the same destination IP address exist on the ingress, the ingress transmits traffic only along the LDP LSP because the LDP LSP has a higher priority than the static LSP.

Example

# Configure the local node as the ingress of the static LSP destined for 10.1.1.9.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] static-lsp ingress bj-sh destination 10.1.1.9 32 nexthop 10.1.1.2 out-label 237
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >