
109
incoming-interface
interface-type interface-number
: Specifies an incoming interface by its type and
number.
in-label
in-label
: Specifies the incoming label, which can be 0, 3, or a value ranging from 16 to 1023.
Examples
# Configure a static LSP named
bj-sh
, taking the current LSR as the egress, VLAN-interface 2 as the
incoming interface, and 233 as the incoming label.
<Sysname> system-view
[Sysname] static-lsp egress bj-sh incoming-interface vlan-interface 2 in-label 233
static-lsp ingress
Description
Use the
static-lsp ingress
command to configure a static LSP taking the current LSR as the ingress.
Use the
undo static-lsp ingress
command to remove a static LSP taking the current LSR as the ingress.
If you specify the next hop when configuring a static LSP, and the address of the next hop is present in the
routing table, you also need to specify the next hop when configuring the static IP route.
The address of the next hop cannot be any local public network IP address.
Related commands:
display mpls static-lsp
,
static-lsp egress
, and
static-lsp transit
.
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
View
System view
Default level
2: System level
Parameters
lsp-name
: Specifies the name for the LSP, which is a string of 1 to 15 characters.
destination
dest-addr
: Specifies the destination IP address of an LSP.
mask
: Specifies the mask of the destination IP address.
mask-length
: Specifies the length of the mask for the destination address, ranging from 0 to 32.
nexthop
next-hop-addr
: Specifies the next hop address.
out-label
out-label
: Specifies the outgoing label, which can be 0, 3, or a value ranging from 16 to 1023.
Examples
# Configure a static LSP named
bj-sh
to destination address 202.25.38.1/24, taking the current LSR as
the ingress, 202.55.25.33 as the next hop address, and 237 as the outgoing label.
<Sysname> system-view
[Sysname] static-lsp ingress bj-sh destination 202.25.38.1 24 nexthop 202.55.25.33 out-
label 237