Users Guide

Layer 2 Switching Commands 630
This example configures the CTP transmit interval to 5 seconds. If an
interface receives two CTP packets, it error disables the interface.
console(config)#keepalive 5 2
In the next example, if the CTP transmit interval is configured to 5 seconds,
if an interface receives three CTP packets, it will error disable the interface.
console(config)#no keepalive
keepalive action
Use the keepalive action command to configure the action taken when a loop
is detected on an interface. Use the no form of the command to return the
action to the default.
Syntax
keepalive action {error-disable | log-only}
no keepalive action
error-disable
— When a loop is detected, the interface is disabled and a
log message is issued.
log-only
— When a loop is detected, a log message is issued and the
interface is not error disabled.
Default Configuration
The default is to error disable the interface when a loop is detected.
Command Mode
Interface Configuration mode
User Guidelines
Error disabled interfaces can be configured to auto-recover using the
errdisable recovery cause loop-protect command. Keepalive should only be
configured on interfaces that do not participate in spanning-tree. Keepalive
may disable interfaces in the spanning-tree designated (blocked) role.