![](/images/new-backgrounds/1231779/23177937x1.webp)
MPLS Label Distribution Protocol (LDP)
How to Configure MPLS LDP
SUMMARY STEPS
1.enable
2.configure terminal
3.mpls ip
4.mpls label protocol {ldp tdp both}
5.mpls ldp
6.exit
7.show mpls ldp discovery [all detail vrf
DETAILED STEPS
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action | Purpose | |
|
| |
enable | Enables privileged EXEC mode. | |
| • Enter your password if prompted. | |
Example: |
| |
Router> enable |
| |
|
| |
configure terminal | Enters global configuration mode. | |
Example: |
| |
Router# configure terminal |
| |
|
| |
mpls ip | Configures MPLS | |
| • The mpls ip command is enabled by default; you do not have | |
Example: | to specify this command. | |
• Globally enabling MPLS forwarding does not enable it on the | ||
| ||
Router(config)# mpls ip | router interfaces. You must enable MPLS forwarding on the | |
| interfaces as well as for the router. | |
|
| |
mpls label protocol {ldp tdp both} | Configures the use of LDP on all interfaces. LDP is the default. | |
| • If you set all interfaces globally to LDP, you can override | |
Example: | specific interfaces with either the tdp or both keyword by | |
specifying the command in interface configuration mode. | ||
| ||
Router(config)# mpls label protocol ldp |
| |
|
| |
mpls ldp | Specifies the preferred interface for determining the LDP router ID. | |
Example: |
| |
Router(config)# mpls ldp |
| |
|
| |
|
|
MPLS LDP Configuration Guide, Cisco IOS Release 12.4
13