Changing the LDP Hello Interval

To change the global link and target intervals for LDP Hello messages, and configure a link interval for an interface, 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 interval for the link sessions.
    device(config-router-mpls-ldp)# hello-interval-link 10
    In this example, the hello interval set to 10. The default value is 5. You can enter an integer from 1 through 32767.
    Note

    Note

    The Hello interval for link sessions can be overridden on a per-interface basis.
  5. Change the interval for the target sessions.
    device(config-router-mpls-ldp)# hello-interval-target 20
    In this example, the hello interval set to 20. The default value is 15. You can enter an integer from 1 through 32767. The change takes effect immediately.
    Note

    Note

    This value can only be set globally for all targeted LDP sessions on the router. Per-interface configuration is only available for Link LDP sessions.
  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 on Ethernet port 0/2.
  8. Configure LDP parameters on the interface.
    device(config-router-mpls-interface-0/2)# ldp-params
  9. Change the interval for link sessions on the interface.
    device(config-router-mpls-interface-0/2-ldp-params)# hello-interval 15
    In this example, the hello interval set on this interface for LDP Link Hello messages is set to 15 seconds. You can enter an integer from 1 through 65535. No default value exists for this parameter. However, when no value is set for this parameter, it defaults to the global LDP Hello interval. When you set a hello interval on the interface, it overrides the global LDP Hello interval.

Example

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

device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# hello-interval-link 10
device(config-router-mpls-ldp)# hello-interval-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-interval 15