
xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
341
45
LOOP-BACK DETECTION (LBD) GLOBAL COMMANDS
The Loop-back Detection (LBD) Global 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 | <value 60–1000000>] | interval <1–32767> | mode [port–based |
vlan–based]} (1)
config loopdetect ports [<portlist>| all] state [enable | disable ]
enable loopdetect
disable loopdetect
show loopdetect
show loopdetect ports [ all | <portlist> ]
config loopdetect trap [ none | loop_detected | loop_cleared | both ]
Each command is listed, in detail, in the following sections.
config loopdetect
Purpose Used to configure the loop–back detection function on the switch.
Syntax
config loopdetect {recover_timer [ 0 | <value 60–1000000>] | interval <1–32767> |
mode [port–based | vlan–based]} (1)
Description This command is used to set up 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 if the loop status is gone. The valid range is 60 to 1000000.
Zero is a special value which specifies the disabled auto–recovery mechanism, hence,
users need to recover the disabled port manually. The default value of the recover timer
is 60.
interval – The time interval (in seconds) at which the device transmits all the
CTP(Configuration Test Protocol) packets to detect the loop–back event. The default
setting is 10. The valid range is 1 to 32767.
mode – Choose the loop detection operation mode. In the port-based mode, the port will
be shutdown (disabled) when detecting loop; in VLAN-based mode, the port can’t
process packets of the VLAN that detecting the loop.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To set the recover time to 0, the interval to 20, and the mode VLAN-based:
DGS–3426:5#config loopdetect recover_timer 0 interval 20 vlan
–
based
Command: config loopdetect recover_timer 0 interval 20 vlan
–
based
Success.
DGS–3426:5#