keepalive-interval

Use this command to set the global value for the interval after which keep-alive packets are sent out.

Each LSR must send keep-alive messages at regular intervals to its LDP peers to keep the sessions active. The keep-alive interval determines the time interval between successive keep-alive messages. Use this command to set this interval. This value is overridden by the keep-alive interval set on the interface. For optimum performance, set this value to no more than one-third the value of the specified keep-alive time-out value.

Use the no parameter to revert to default keep-alive interval.

Command Syntax

Copy
keepalive-interval <10-21845>
no keepalive-interval

Parameters

<10-21845>

Specify the value of interval in seconds.

Default

By default, keepalive interval is 10 seconds

Command Mode

Router mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

This example shows how to set the keep-alive timer for all interfaces of an LSR.

Copy
#configure terminal
(config)#router ldp
(config-router)#keepalive-interval 635
 
(config-router)#no keepalive-interval