host1(config)#mpls ldp session keepalive-time 180
9. (Optional) Specify an IP address to be advertised to peers as the transport address
in discovery hello messages.
host1(config)#mpls ldp discovery transport-address 192.168.34.2
10. (Optional) Configure independent control as the method of label distribution that
LDP uses.
host1(config)#mpls ldp independent-control
11. (Optional) Configure LDP to advertise the explicit null label or a non-null label
for the egress router to achieve ultimate hop popping.
host1(config)#mpls ldp egress-label explicit-null
For topology-driven LSPs, perform the following LDP configuration tasks.
1. (Optional) Configure the LSR to create topology-driven LSPs. Enabling LDP
automatically creates topology-driven LSPs.
host1(config)#mpls topology-driven-lsp
2. (Optional) Specify filters for the routes and peers to which the labels are
advertised.
host1(config)#mpls ldp advertise-labels host-only
3. (Optional) Specify the LSPs to be put into the IP routing table for forwarding
plain IP traffic.
NOTE: This step is not optional if you are using a topology-driven network to forward
plain IP packets.
host1(config)#ldp ip-forwarding host-only
4. (Optional) Establish a policy governing the distribution of incoming LDP labels.
host1(config)#mpls ldp advertise-labels for boston1
5. (Optional) Remove and then reestablish existing LDP LSPs and to restart
topology-driven LDP. Use this command when you have modified or created
policies or access lists (with the mpls ldp-ip-forwarding and mpls ldp
advertise-labels commands) and want them to be applied to LDP LSPs that are
already in an up state.
host1#clear mpls ldp
LDP Global Tasks â– 271
Chapter 3: Configuring MPLS