To change the hold time included in LDP Hello messages, perform the following steps.
-
In privileged EXEC mode, enter global configuration mode.
device# configure terminal
-
Enable MPLS on the device.
device(config)# router mpls
-
Access LDP configuration mode.
device(config-router-mpls)# ldp
-
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
The Hello hold time for link sessions can be overridden on a per-interface basis.
-
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.
-
Access MPLS mode.
device(config-router-mpls-ldp)# exit
-
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.
-
Configure LDP parameters on the interface.
device(config-router-mpls-interface-0/2)# ldp-params
-
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.
Example
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