You can configure the LDP session keepalive interval and the keepalive timeout value is derived as the product of the keepalive interval times the keepalive interval count.
device(config-router-mpls-ldp)# ka-timeout 40 %Warn: Please clear LDP sessions for the new KA parameter value to take effect on existing sessions device(config-router-mpls-ldp)# ka-interval 11 %Error: ka-timeout needs to be unconfigured before ka-interval is configured device(config-router-mpls-ldp)# no ka-timeout %Warn: Please clear LDP sessions for the new KA parameter value to take effect on existing sessions device(config-router-mpls-ldp)# ka-interval 11 %Warn: Please clear LDP sessions for the new KA parameter value to take effect on existing sessions
device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# ka-interval 10 %Warn: Please clear LDP sessions for the new KA parameter value to take effect on existing sessions
device(config-router-mpls-ldp)# ka-int-count 3 %Warn: Please clear LDP sessions for the new KA parameter value to take effect on existing sessions
device # show mpls ldp Label Distribution Protocol version 1 (deleting it will stop LDP) LSR ID: 10.122.122.122, using Loopback 1 Hello interval: Link 5 sec, Targeted 15 sec Hold time value sent in Hellos: Link 15 sec, Targeted 45 sec Keepalive interval: 10 sec, Hold time multiple: 3 intervals Keepalive timeout: 30 sec Load sharing: 8 Tunnel metric: 0 FEC used for auto discovered peers: current 129, configured 129 End of LIB: Disabled, Notification time: 60000 ms, tx label silence time: 1000 ms Rx label silence time: 1000 ms Graceful restart: disabled Reconnect time: 0 seconds, Max peer reconnect time: 120 seconds Recovery time: 0 seconds, Max peer recovery time: 120 seconds Forwarding state holding timer: not running Label Withdrawal delay: 60 seconds (Default)
The following example is the configuration of the previous steps.
device# configure terminal device(config)# router mpls device(config-router-mpls)# ldp device(config-router-mpls-ldp)# ka-interval 10 device(config-router-mpls-ldp)# ka-int-count 3