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
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 for the out-label argument is 0, 3, and 16 to 1048575.
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