|
|
To set the keepalive timer for a specific interface, use the keepalive interface configuration command. To turn off keepalives entirely, use the no form of this command.
keepalive [seconds]
seconds | Unsigned integer value greater than 0 that defines the keepalive interval. The default is 10 seconds. |
10 seconds
Interface configuration
This command does not apply to ATM interfaces. Refer to the atm ilmi-keepalive command for configuration of keepalives on ATM interfaces.
You can configure the keepalive interval, which is the frequency at which the switch sends messages to itself (Ethernet) or to the other end (auxiliary), to ensure a network interface is alive. The interval is adjustable in one-second increments down to one second. An interface is declared down after three update intervals pass without receiving a keepalive packet.
You must set the interval as a positive integer that is less than the interval set on the neighboring switch. Setting the keepalive timer to a low value is useful for detecting Ethernet interface failures (transceiver cable disconnecting, cable unterminated, and so on).
A typical serial line failure involves losing CD. Since this sort of failure is typically noticed within a few milliseconds, adjusting the keepalive timer for faster routing recovery is generally not useful.
The following example shows how to set the keepalive interval to 3 seconds.
Switch(config)# interface ethernet 0 Switch(config-if)# keepalive 3
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Thu Sep 2 10:30:02 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.