64
Step Command
Remarks
2.
Configure a static LSP.
•
On the ingress node:
static-lsp
ingress
lsp-name
destination
dest-addr
mask
|
mask-length
} {
nexthop
next-hop-addr
|
out-label
out-label
•
On a transit node:
static-lsp
transit
lsp-name
incoming-interface
interface-type
interface-number
in-label
in-label
nexthop
next-hop-addr
out-label
out-label
•
On the egress end:
static-lsp egress
lsp-name
incoming-interface
interface-type
interface-number
in-label
in-label
Follow the configuration
guidelines to set correct
parameters for the ingress,
transit, and egress nodes.
Establishing dynamic LSPs through LDP
Configuring MPLS LDP capability
To configure MPLS LDP capability:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable LDP capability
globally and enter MPLS LDP
view.
mpls ldp
Not enabled by default.
3.
Configure the LDP LSR ID.
lsr-id
lsr-id
Optional.
You need to perform this task only
in a multi-VPN context to make sure
different LDP instances have
different LDP LSR IDs if their
address spaces overlap.
Otherwise, TCP connections
cannot be established.
4.
Return to system view.
quit
N/A
5.
Enter interface view.
interface
interface-type
interface-number
N/A
6.
Enable LDP capability for the
interface.
mpls ldp
Not enabled by default.
NOTE:
Disabling LDP on an interface terminates all LDP sessions on the interface. As a result, all LSPs using the
sessions are deleted.