keepalive (POS)
To set the keepalive timer for a specific interface, use the
keepalive
command in interface configuration
mode. To reset the keepalive timer to the default of 10 seconds, use the
no
form of this command.
keepalive
{
interval
[
retry
]
| disable
}
no keepalive
Syntax Description
Number of seconds (from 1 to 30) between keepalive messages. The default is 10.
interval
(Optional) Number of keepalive messages (from 1 to 255) that can be sent to a peer
without a response before transitioning the link to the down state. The default is 5 for
interfaces with PPP encapsulation, and 3 for interfaces with HDLC encapsulation.
retry
Turns off the keepalive timer.
disable
Command Default
The default interval is 10 seconds between keepalive messages. The default number of retry keepalive messages
that can be sent without a response is 5 for interfaces with PPP encapsulation, and 3 for interfaces with HDLC
encapsulation. However, when more than 5 (or 3) keepalive messages are sent to a peer without a response,
the link transitions to the down state.
Command Modes
Interface configuration
Command History
Modification
Release
This command was introduced.
Release 4.0.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
cHDLC keepalives require that the
keepalive
command is configured the same way on both routers. The two
connected routers have no way of negotiating the keepalive value, because there is no way for the routers to
tell each other what their configured values are. The keepalive value configured on each router (local and
partner) sets the rate at which the Cisco IOS XR software sends packets. It also sets the rate at which the local
end expects to receive incoming packets.
To set the keepalive value to the default value, use the
keepalive
command without specifying a value for the
seconds
argument.
If three keepalives are sent to the peer and no response is received from the peer, then the link makes the
transition to the down state.
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
700
Packet-over-SONET Interface Commands on the Cisco ASR 9000 Series Router
keepalive (POS)