DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
385
Chapter 37
Local Loopback
Commands
config local_loopback ports
[<portlist> | all] [mac | phy {medium_type [copper | fiber]}] [internal |
external] [enable | disable]
show local_loopback ports
{<portlist>}
37-1
config local_loopback ports
Description
When internal loopback is enabled, the device starts to send test packets to the port, and keeps
monitoring the packets received. When internal loopback is disabled, the loopback test is
terminated and the result is displayed. A port can only operate at one loopback mode at a time.
When external loopback is enabled, the MAC/PHY is set to external loopback mode. When
external loopback is disabled, the MAC/PHY recovers to normal operation.
Format
config local_loopback ports [<portlist> | all] [mac | phy {medium_type [copper | fiber]}]
[internal | external] [enable | disable]
Parameters
<portlist>
- Specifies a range of ports to be configured.
all
- Specifies to set all ports in the system.
mac
-
Select the MAC layer on which the loopback is performed.
phy
-
Select the PHY layer on which the loopback is performed.
medium_type
- (Optional) Specifies the medium on which the loopback test is taken for
combo ports. If it is not specified, by default, the loopback test will be performed on copper
medium.
copper
- Specifies the medium type as copper.
fiber
- Specifies the medium type as fiber.
internal
-
Set the loopback mode to internal.
external
-
Set the loopback mode to external.
enable
-
For internal loopback, start loopback test; for external loopback, set port(s) to external
loopback mode.
disable
- For internal loopback, stop loopback test; for external loopback, recover port(s) from
external loopback mode. This is the default setting.
Restrictions
Only Administrator-level users can issue this command.
Example
To enable a loopback test for port 2 for fiber in internal mode: