xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
393
50
L
OOPBACK
D
ETECTION
C
OMMANDS
The Loopback Detection commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command
Parameters
config loopdetect
{recover_timer [0 | <sec 60-1000000>] | interval <sec 1-32767> | mode [port-
based | vlan-based]}
config loopdetect ports
[<portlist> | all] state [enable | disable]
enable loopdetect
disable loopdetect
show loopdetect
show loopdetect ports
{<portlist>}
config loopdetect trap
[none | loop_detected | loop_cleared | both]
config loopdetect log state
[enable | disable]
config loopdetect vlan
[<vid_list> | all] state [enable | disable]
Each command is listed, in detail, in the following sections.
config loopdetect
Purpose
Used to setup the loop-back detection function (LBD) for the entire Switch.
Syntax
config loopdetect {recover_timer [0 | <sec 60-1000000>] | interval <sec 1-32767> |
mode [port-based | vlan-based]}
Description
This command is used to setup the loop-back detection function (LBD) for the entire Switch.
Parameters
recover_timer
- The time interval (in seconds) used by the Auto-Recovery mechanism to
decide how long to check before determining that the loop status has gone. The valid range
is from 60 to 1000000. 0 is a special value that specifies that the auto-recovery mechanism
should be disabled. When the auto-recovery mechanism is disabled, a user would need to
manually recover a disabled port. The default value for the recover timer is 60 seconds.
•
0
- Specifies that the value of 0 will be set to the recovery timer.
•
<
sec 60-1000000
> - Enter the recovery timer value here. This value must be
between 60 and 1000000 seconds.
interval
<
sec - 1-32767
> - The time interval (in seconds) that the device will transmit all the
CTP (Configuration Test Protocol) packets to detect a loop-back event. The default setting is
10 seconds. The valid range is from 1 to 32767 seconds.
mode
- Specify the loop-detection operation mode. In port-based mode, the port will be shut
down (disabled) when loop has been detected In VLAN-based mode, the port cannot process
the packets of the VLAN that has detected the loop.
•
port-based
- Specify that the loop-detection operation mode will be set to port-based
mode.
•
vlan-based
- Specify that the loop-detection operation mode will be set to vlan-based
mode.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage: