DGS-6604
m
loopback-detection mode
CLI Reference Guide
411
loopback-detection mode
Use the command to decide the loopback detection mode. To return to the
default settings, use the no form of this command.
loopback-detection mode {port-based | vlan-based}
no loopback-detection mode
Default
The default mode is port-based.
Command Mode
Configuration mode
Usage Guideline
If the detection mode is set to port-based means the switch determines loopback
based on port. If loop back happened, will treat the whole port as loop backed
port and block this port. LBD will send the CTP packets periodically per port.
On the other side, vlan-based mode makes switch will per port per VLAN send
the CTP packets periodically. This mode can detect loopback based on VLAN. If
switch detects loopback on a VLAN, LBD will only block the traffic which belongs
to this VLAN. Other VLANs' traffic should not be affected on this port.
Example
This example shows how to choose the loopback detection operation mode:
You can verify your settings by entering the show loopback-detection command.
Syntax Description
port-based
In port-based mode, the port will enter the error disabled state when it detects
the loop.
vlan-based
In VLAN-based mode, the port can’t process packers of the VLAN that detects
the loop.
Switch(config)# loopback-detection mode vlan-based
Switch(config)#