Configuring Port Loopback Detection
Loop detection is disabled by default.
Loop detection can be enabled on a physical port or on a VLAN.
- Enter the global configuration mode.
- Enable loop detection on a physical port (strict mode) or on a VLAN (loose mode).
- Exit the interface or VLAN configuration mode and enter the global configuration mode.
- Set global loop detection interval.
- Configure the device to automatically re-enable ports that were disabled due to loop detection.
- Specify the recovery time interval.
- Clear loop detection statistics.
The following example shows how to enable loop detection on a port, 1/1/1.
device# configure terminal device(config)# interface 1/1/1 device(config-if-e1000-1/1/1)# loop-detection device(config-if-e10000-1/1/1)# exit device(config)# loop-detection-interval 50 device(config)# errdisable recovery interval 120
The following example shows how to enable loop detection on a VLAN, VLAN-10.
device# configure terminal device(config)# vlan 10 device(config-vlan-10)# loop-detection device(config-vlan-10)# exit device(config)# loop-detection-interval 50 device(config)# errdisable recovery interval 120