- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Static LSP commands | 63.22 KB |
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, the 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 GE3/0/1 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. |
static-lsp egress
Use static-lsp egress to configure a static LSP on the egress node.
Use undo static-lsp egress to delete a static LSP on the egress node.
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
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, which can be 0, 3, or a value in the range of 16 to 1023.
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 a static LSP on the ingress node.
Use undo static-lsp ingress to delete a static LSP on the ingress node.
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
mdc-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. You can specify an outgoing interface only in a point-to-point network.
out-label out-label: Specifies an outgoing label, which can be 0, 3, or a value in the range of 16 to 1023.
Usage guidelines
The next hop or outgoing interface specified for the LSP must be consistent with the next hop or outgoing interface 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.
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 a static LSP on a transit node.
Use undo static-lsp transit to delete a static LSP on a transit node.
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
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 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. You can specify an outgoing interface only in a point-to-point network.
out-label out-label: Specifies an outgoing label, which can be 0, 3, or a value in the range of 16 to 1023.
Usage guidelines
You must enable MPLS on the outgoing interface of the static LSP.
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