Changing the LDP Hold Time Sent to Adjacent LSRs

To change the hold time included in LDP Hello messages, perform the following steps.
  1. In privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable MPLS on the device.
    device(config)# router mpls
  3. Access LDP configuration mode.
    device(config-router-mpls)# ldp
  4. Change the hold time for link sessions.
    device(config-router-mpls-ldp)# hello-timeout-link 10

    In this example, the hello hold time set to 10. The default value is 15. You can enter an integer from 2 through 65335.

    Note

    Note

    The Hello hold time for link sessions can be overridden on a per-interface basis.
  5. Change the hold time for target sessions.
    device(config-router-mpls-ldp)# hello-timeout-target 20
    In this example, the hello interval set to 20. The default value is 45. You can enter an integer from 2 through 65335.
    The new time takes effect immediately and goes in the next Hello message sent. This hold time applies to only the hold time that the device sends to its peers; it does not affect the hold time the device uses to time out those peers. The latter is determined from the hold time that peers send to the device.
  6. Access MPLS mode.
    device(config-router-mpls-ldp)# exit
  7. Enable MPLS on an interface.
    device(config-router-mpls)# mpls-interface ethernet 0/2
    For example, MPLS is enabled on interface Ethernet port 0/2.
  8. Configure LDP parameters on the interface.
    device(config-router-mpls-interface-0/2)# ldp-params
  9. Change the hold time for link sessions on the interface.
    device(config-router-mpls-interface-0/2-ldp-params)# hello-timeout 30
    In this example, the hello hold time on this interface for LDP Link Hello messages is set to 30 seconds. The minimum value that you can configure is 2 times the value set for the Hello interval.

The following example shows the previous steps to configure the LDP Hello hold time.

device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# hello-timeout-link 10
device(config-router-mpls-ldp)# hello-timeout-target 20
device(config-router-mpls-ldp)# exit
device(config-router-mpls)# mpls-interface ethernet 0/2
device(config-router-mpls-interface-0/2)# ldp-params
device(config-router-mpls-interface-0/2-ldp-params)# hello-timeout 30