DGS-3700 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Page | 21
L
OCAL
L
OOPBACK
C
OMMANDS
Back to Section Header
The local loop-back commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
C
OMMAND
P
ARAMETERS
config local_loopback
ports [<portlist> | all] [mac | phy {medium_type [copper | fiber]}] [internal |
external] [enable | disable]
show local_loopback
ports {<portlist>}
Each command is listed, in detail, in the following sections.
config local_loopback
Purpose
Config local loop-back is used to start or stop the internal loop-back tests on selected
ports. It is also used to set or recover the external loop-back mode.
Syntax
config local_loopback ports [<portlist> | all] [mac | phy {medium_type [copper |
fiber]}] [internal | external] [enable | disable]
Description
When internal loop-back mode is enabled, the device starts to send test packets to the
port, and keeps monitoring the packets received. When internal loop-back mode is
disabled, the loop-back test is terminated and the result is displayed.
A port can only operate in one loop-back mode at a time. When external an loop-back
mode is enabled, the MAC/PHY is set to external loop-back mode. When external
loop-back mode is disabled, the MAC/PHY reverts to normal operation.
Parameters
ports [<portlist> | all]
– The port(s) to be set.
[mac | phy]
– Select the layer on which the loop-back is performed.
medium_type
– Specify the medium on which the loop-back test is taken for combo
ports. If it’s not specified, by default, the loop-back test will be performed on
copper medium.
[internal | external]
– The local loop-back mode.
[enable | disable]
– Select enable or disable to:
enable
: for internal loop-back, start loop-back test; for external loop-back, set port(s)
to external loop-back mode.
disable
: for internal loop-back, stop loop-back test; for external loop-back, recover
port(s) from external loop-back mode.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable internal loop-back in the PHY layer on fiber port 9:
DGS-3700-12:5#config local_loopback ports 9 phy medium_type fiber internal enable
Command: config local_loopback ports 9 phy medium_type fiber internal enable
Success.
DGS-3700-12:5#
show local_loopback
Purpose
Used to display local loop-back configurations on the Switch.