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.
- Enable MPLS LDP on an interface in configuration mode.
vyatta@R1# set protocol mpls-ldp discovery interfaces interface dp0p1s1 address-family ipv4
- Verify the configuration of the interface in operational mode.
vyatta@vyatta:~$ show mpls ldp interface dp0p1s1 Interface LDP Identifier LDP Enabled Version Merge Capability dp0p1s1 18.104.22.168:0 Enabled IPv4 Merge capable
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 22.214.171.124:0 Disabled N/A dp0s4 126.96.36.199:0 Disabled N/A dp0p1s1 188.8.131.52:0 Enabled IPv4 Merge capable dp0p1s2 184.108.40.206:0 Enabled IPv4 Merge capable dp0p1s3 220.127.116.11:0 Enabled IPv4 Merge capable