12
To do…
Use the command…
Remarks
Configure a static LSP taking the
current LSR as a transit LSR
static-lsp
transit
lsp-name
incoming-interface
interface-type
interface-number
in-label
in-label
{
nexthop
next-hop-addr
|
outgoing-interface
interface-type
interface-number
}
out-label
out-label
Required
Configure a static LSP taking the
current LSR as the egress
static-lsp egress
lsp-name
incoming-interface
interface-type
interface-number
in-label
in-label
Required
NOTE:
•
When you configure a static LSP on the 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.
•
For an ingress or transit LSR, do not specify the public address of an interface on the LSR as the next hop
address.
•
For information about configuring a static IP route, see
Layer 3—IP Routing Configuration Guide.
Establishing dynamic LSPs through LDP
Configuring MPLS LDP capability
To configure MPLS LDP capability:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable LDP capability globally and
enter MPLS LDP view
mpls ldp
Required
Not enabled by default
Configure the LDP LSR ID
lsr-id
lsr-id
Optional
MPLS LSR ID of the LSR by default
Return to system view
quit
—
Enter interface view
interface
interface-type
interface-number
—
Enable LDP capability for the
interface
mpls ldp
Required
Not enabled by default