Configuring LDP on an interface
To establish LDP sessions and exchange labels with a peer, LDP must be enabled on the neighbors' interfaces.
To use LDP, configure a loopback address with a 32-bit mask on the LSR. The first loopback address configured on the device is used in its LDP identifier. When the loopback address used in the LDP identifier is removed, all LDP functions on the LSR are shut down. LDP sessions between the LSR and its peers are terminated, and LDP-created tunnels are removed. When other loopback interfaces are configured on the device, the lowest-numbered loopback address is used as a new LDP identifier. LDP sessions and tunnels are set up using this new LDP identifier.
Configure LDP on the same set of interfaces that IGP routing protocols such as OSPF are enabled.
To configure LDP on an interface, perform the following steps.
The following example displays MPLS LDP configured on three interfaces.
vyatta@vyatta:~$ show mpls ldp interface
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