|
|
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
To enable the LMI for a logical serial port using Frame Relay encapsulation, use the keepalive interface configuration command. To disable this capability, use the no form of this command.
keepalive seconds
seconds | Number of seconds from 0 to 32767 that define the keepalive interval. |
10 seconds
Interface configuration
The interval that you enter must be set as a positive integer that is less than the interval set on the ATM switch. Refer to the frame-relay lmi-t392dce interface configuration command description.
The following example configures serial interface 11/0/0:1 to send a keep-alive packet every 30 seconds.
Switch(config)# interface serial 11/0/0:1 Switch(config-if)# keepalive 30
frame-relay lmi-t392dce
|
|