16.2.
Configure loop detection.
Enter global patterns to configure loop detection.
Command
Function
Switch(config)#
loopback-detection
[
enable|interval|errdisable
]
Configure loop detection,enable: Open
detection
(
default on
)
Interval:Set loop detection time.
(
2-15secs
,
Default3s
)
Errdisable
:
Port recovery time
(
30-86400S
Default 60s
)
Below is the example that configuration port open loop detection and set the detection time
slot
:
Switch#configure terminal
Enter configuration commands, one per line. End with CTRL+Z.
Switch(config)#loopback-detection enable
Switch(config)#loopback-detection interval 2
Switch(config)#loopback-detection errdisable recover 30
Switch#configure terminal
Enter configuration commands, one per line. End with CTRL+Z.
Switch(config)#loopback-detection enable
Switch(config)#loopback-detection interval 2
Switch(config)#loopback-detection errdisable recover 30
16.3.
loop detection processing mechanism
Processing mechanism when Enter the port patterns to revise the loop
Command
Function
Switch(config-if-GigabitEthernet-0/1)#
loopback-
detection
control
processing mechanism:
Close the port
Switch(config-if-GigabitEthernet-0/1)#
noloopba
ck-detection
control
processing
mechanism :Warning
Below is the example to revise the port loop processing mechanism function.
Switch#configure terminal
Enter configuration commands, one per line. End with CTRL+Z.
Switch(config)#interface gigabitEthernet 0/1