ip tcp keepalive

Configures the time interval between TCP keepalive messages.
Syntax
ip tcp keepalive timeout interval-time num-messages
no ip tcp keepalive timeout interval-time num-messages
Command Default

The time interval between TCP keepalive messages is not configured.

Parameters
timeout
Configures the timeout in seconds to start sending keepalive messages. Set to 0 to disable the timeout.
interval-time
Configures the interval time in seconds between keepalive messages. Set to 0 to disable sending keepalive messages.
num-messages
Configures the number of keepalive messages to be sent before disconnecting.
Modes

Global configuration mode

Usage Guidelines

The no form of the command disables sending the keepalive messages. You can also set the interval-time variable as 0 to disable sending the keepalive messages.

Examples

The following example configures the interval between TCP keepalive messages as 5 seconds.

device# configure terminal
device(config)# ip tcp keepalive 10 5 2