static-lsp ingress
Use static-lsp ingress to configure a static LSP taking the current LSR as the ingress.
Use undo static-lsp ingress to remove a static LSP taking the current LSR as the ingress.
Syntax
static-lsp ingress lsp-name destination dest-addr { mask | mask-length } nexthop next-hop-addr out-label
out-label
undo static-lsp ingress lsp-name
Views
System view
Default command level
2: System level
Parameters
lsp-name: Specifies an LSP name, a 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.
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
When you configure a static LSP on an ingress LSR, the next hop or outgoing interface specified must be
consistent with the next hop or outgoing interface of the optimal route in the routing table. 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.
The next hop address cannot be any local public network IP address.
Examples
# Configure a static LSP taking the current LSR as the ingress, and 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 egress
•
static-lsp transit
•
static-lsp transit
Use static-lsp transit to configure a static LSP taking the current LSR as a transit LSR.
106