Static LSP commands -- display mpls static-lsp

Use display mpls static-lsp to display static LSP information.

Syntax

display mpls static-lsp [ lsp-name lsp-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

lsp-name lsp-name: Specifies a static LSP by its name, a case-sensitive string of 1 to 15 characters. If you do not specify a static LSP, this command displays information about all static LSPs.

Examples

# Display information about all static LSPs.

<Sysname> display mpls static-lsp

Total: 3

Name FEC In/Out Label Nexthop/Out Interface State

egress123 -/- 16/NULL - Up

ingress123 202.118.224.132/32 NULL/1022 100.100.100.19 Down

transit123 -/- 32/1022 100.100.100.17 Down

Table 1 Command output

Field | Description
Total | Total number of static LSPs.
Name | Name of the static LSP.
FEC | Forwarding equivalence class—IP prefix and the prefix length.
In/Out Label | Incoming label/outgoing label.
Nexthop/Out Interface | Next hop address or outgoing interface specified for an ingress node or a transit node.
State | Current state of the static LSP: · Up—The static LSP is available. · Down—The static LSP is not available. · Idle—The incoming label of the static LSP is not available. · Dup—The incoming label of the static LSP is used by a static CRLSP or a static PW.

Static LSP commands -- static-lsp egress

Use static-lsp egress to configure the egress node of a static LSP.

Use undo static-lsp egress to delete the egress node configuration of a static LSP.

Syntax

static-lsp egress lsp-name in-label in-label [ destination ip-address { mask | mask-length } ]

undo static-lsp egress lsp-name

Default

No static LSPs exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.

in-label in-label: Specifies an incoming label. The value range varies by device model.

destination ip-address: Specifies a destination IP address for the LSP.

mask: Specifies the mask of the destination IP address.

mask-length: Specifies the mask length of the destination address, in the range of 0 to 32.

Usage guidelines

You must specify the incoming label on the egress node if PHP is not configured. If PHP is not configured, an egress node pops the incoming label of a packet, and performs label forwarding according to the inner label or IP forwarding.

To associate a static LSP with an LDP LSP, you must specify the incoming label and destination address on the egress node of the static LSP.

You can associate a static LSP with an LDP LSP to simplify packet processing when the following conditions are met:

· Packets are forwarded over the static LSP and the LDP LSP to the destination.

· The egress node of the static LSP is also the ingress node of the LDP LSP.

After receiving a packet with the specified incoming label, the egress node of the static LSP swaps the label with the outgoing label for the LDP LSP. Then, the node forwards the packet to the next hop.

A static LSP must have a different incoming label than an existing static CRLSP or static PW. If they are the same, the static LSP is not available, even if you change the incoming label of the static CRLSP or the static PW. To make the static LSP available, delete the static LSP, and reconfigure it with an unused incoming label.

Examples

# Configure a static LSP on the egress node: specify the LSP's name as bj-sh and incoming label as 233.

<Sysname> system-view

[Sysname] static-lsp egress bj-sh in-label 233

Related commands

display mpls static-lsp

Static LSP commands -- static-lsp ingress

Use static-lsp ingress to configure the ingress node of a static LSP.

Use undo static-lsp ingress to delete the ingress node configuration of a static LSP.

Syntax

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

undo static-lsp ingress lsp-name

Default

No static LSPs exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.

destination ip-address: Specifies a destination IP address for the LSP.

mask: Specifies the mask of the destination IP address.

mask-length: Specifies the mask length of the destination address, in the range of 0 to 32.

nexthop next-hop-ip-address: Specifies a next hop address.

outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number. The specified interface must be a point-to-point interface.

out-label out-label: Specifies an outgoing label. The value range varies by device model.

Usage guidelines

You must enable MPLS on the outgoing interface of the static LSP.

The next hop or outgoing interface specified for the LSP must be consistent with that of the optimal route destined for the specified address. If you configure a static IP route for the LSP, be sure to specify the same next hop or outgoing interface for the static route and the static LSP.

Examples

# Configure a static LSP on the ingress node: specify the LSP's name as bj-sh, destination address as 202.25.38.1/24, next hop address as 202.55.25.33, and outgoing label as 237.

<Sysname> system-view

[Sysname] static-lsp ingress bj-sh destination 202.25.38.1 24 nexthop 202.55.25.33 out-label 237

Related commands

display mpls static-lsp

Static LSP commands -- static-lsp transit

Use static-lsp transit to configure the transit node of a static LSP.

Use undo static-lsp transit to delete the transit node configuration of a static LSP.

Syntax

static-lsp transit lsp-name in-label in-label { nexthop next-hop-ip-address | outgoing-interface interface-type interface-number } out-label out-label

undo static-lsp transit lsp-name

Default

No static LSPs exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.

in-label in-label: Specifies an incoming label. The value range varies by device model.

nexthop next-hop-ip-address: Specifies a next hop address.

outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number. The specified interface must be a point-to-point interface.

out-label out-label: Specifies an outgoing label. The value range varies by device model.

Usage guidelines

You must enable MPLS on the outgoing interface of the static LSP.

A static LSP must have a different incoming label than an existing static CRLSP or static PW. If they are the same, the static LSP is not available, even if you change the incoming label of the static CRLSP or the static PW. To make the static LSP available, delete the static LSP, and reconfigure it with an unused incoming label.

Examples

# Configure a static LSP on the transit node: specify the LSP's name as bj-sh, incoming label as 123, next hop address as 202.34.114.7, and outgoing label as 253.

<Sysname> system-view

[Sysname] static-lsp transit bj-sh in-label 123 nexthop 202.34.114.7 out-label 253

Related commands

display mpls static-lsp