xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
341
45
L
OOP
-
BACK
D
ETECTION
(LBD)
G
LOBAL
C
OMMANDS
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:
D G S – 3 4 2 6 : 5 # c o n f i g l o o p d e t e c t r e c o v e r _ t i m e r 0 i n t e r v a l 2 0 v l a n
–
b a s e d
C o m m a n d : c o n f i g l o o p d e t e c t r e c o v e r _ t i m e r 0 i n t e r v a l 2 0 v l a n
–
b a s e d
S u c c e s s .
D G S – 3 4 2 6 : 5 #