Configuration procedure, Establishing dynamic lsps through ldp, Configuring mpls ldp capability – H3C Technologies H3C S10500 Series Switches User Manual
Page 69: Establishing dynamic lsps, Through ldp

58
Configuration procedure
Follow these steps to configure a static LSP:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure a static LSP taking the
current LSR as the ingress
static-lsp ingress lsp-name
destination dest-addr mask |
mask-length } { nexthop
next-hop-addr | out-label out-label
Required
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 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 specified must be consistent with the
next hop of the optimal route in the routing table. If you configure a static IP route for the LSP, you must
specify the same next hop 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
Follow these steps 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