- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Static LSP commands | 43.23 KB |
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
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: 4
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
transit124 -/- 34/1020 XGE2/1/2 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. |
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 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
undo static-lsp egress lsp-name
Default
No static LSP exists on the device.
Views
System view
Predefined user roles
network-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 in the range of 16 to 1023.
Usage guidelines
The static LSP must not have the same incoming label as an existing static CRLSP or static PW. If it is the same, the static LSP will not be available, even if you modify 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 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 dest-addr { mask | mask-length } { nexthop next-hop-addr | outgoing-interface interface-type interface-number } out-label out-label
undo static-lsp ingress lsp-name
Default
No static LSP exists on the device.
Views
System view
Predefined user roles
network-admin
Parameters
lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters.
destination dest-addr: 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-addr: 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. The switch does not support this option.
out-label out-label: Specifies an outgoing label, a value of 0, 3, or in the range of 16 to 1023.
Usage guidelines
The next hop 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 for the static route and the static LSP.
You must enable MPLS on the outgoing interface of 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 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-addr | outgoing-interface interface-type interface-number } out-label out-label
undo static-lsp transit lsp-name
Default
No static LSP exists on the device.
Views
System view
Predefined user roles
network-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 in the range of 16 to 1023.
nexthop next-hop-addr: 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. The switch does not support this option.
out-label out-label: Specifies an outgoing label, a value of 0, 3, or in the range of 16 to 1023.
Usage guidelines
You must enable MPLS on the outgoing interface of the static LSP.
The static LSP must not have the same incoming label as an existing static CRLSP or static PW. If it is the same, the static LSP will not be available, even if you modify 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