Name

keepalive — interface

Synopsis

keepalive seconds
no keepalive

Configures

The keepalive interval

Default

10 seconds

Description

The keepalive command specifies the interval (in seconds) that the router waits before sending a message on the interface to test the link and determine whether it is up or down. On Ethernet interfaces, the router sends the message to itself. On serial interfaces, the message is sent to the router on the other end of the link.

Keepalive settings can be very sensitive. If the keepalive interval is too low, the keepalive packets might be delayed by other traffic. If the interval is set too high, the router will take longer to update the interface’s status, which slows route convergence.

On Frame Relay interfaces, the keepalive value should match (or be less than) the LMI interval configured on the carrier’s switch.

Example

interface ethernet 1
     keepalive 5

Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.