Configuring LDP
The minimum configuration required to enable MPLS with LDP is to enable LDP on an interface.
In the following example, three interfaces are enabled for MPLS LDP and the show mpls ldp discovery command is used to display all interfaces configured for LDP discovery.
vyatta@R1# set protocols mpls-ldp discovery interfaces interface dp0p1s1 address-family ipv4
vyatta@R1# set protocols mpls-ldp discovery interfaces interface dp0p1s2 address-family ipv4
vyatta@R1# set protocols mpls-ldp discovery interfaces interface dp0p1s3 address-family ipv4
vyatta@R1# commit
vyatta@R1# exit
vyatta@R1:~$ show mpls ldp discovery
Interface LDP Identifier LDP Enabled Version Merge Capability
lo 2.2.2.2:0 Disabled N/A
dp0s4 2.2.2.2:0 Disabled N/A
dp0p1s1 2.2.2.2:0 Enabled IPv4 Merge capable
dp0p1s2 2.2.2.2:0 Enabled IPv4 Merge capable
dp0p1s3 2.2.2.2:0 Enabled IPv4 Merge capable