Chapter 15
| Loopback Detection Commands
– 399 –
loopback-detection
This command enables loopback detection globally on the switch or on a
specified interface. Use the
no
form to disable loopback detection.
Syntax
[
no
]
loopback-detection
Default Setting
Enabled
Command Mode
Global Configuration
Interface Configuration (Ethernet, Port Channel)
Command Usage
Loopback detection must be enabled globally for the switch by this command
and enabled for a specific interface for this function to take effect.
Example
This example enables general loopback detection on the switch, disables
loopback detection provided for the spanning tree protocol on port 1, and then
enables general loopback detection for that port.
Console(config)#loopback-detection
Console(config)#interface ethernet 1/1
Console(config-if)#no spanning-tree loopback-detection
Console(config-if)#loopback-detection
Console(config)#
loopback-detection
action
This command specifies the protective action the switch takes when a
loopback condition is detected. Use the
no
form to restore the default setting.
Syntax
loopback-detection action
{
none
|
shutdown
}
no loopback-detection action
none
- No action is taken.
shutdown
- Shuts down the interface.
Default Setting
Shut down
Command Mode
Global Configuration