DGS-3024 Layer 2 Switch CLI Reference Manual 
14 
PORT MIRRORING COMMANDS 
The port mirroring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the 
following table. 
Command Parameters 
config mirror   {source port <port> | ingress_target [disable | port <port>] | 
egress_target [disable | port <port>]} 
enable mirror   
disable mirror   
show mirror   
Each command is listed, in detail, in the following sections. 
config mirror 
Purpose 
Used to configure a mirror port − source port pair on the Switch. 
Syntax 
config mirror {source port <port> | ingress_target [disable | port 
<port>] | egress_target [disable | port <port>]} 
Description  This command allows a range of ports to have all of their traffic also sent to 
a designated port, where a network sniffer or other device can monitor the 
network traffic. In addition, you can specify that only traffic received by or 
sent by one or both is mirrored to the Target port. 
Parameters 
source port <port> − This specifies the port or ports being mirrored. 
ingress_target – This parameter denotes that the user wishes to mirror 
traffic entering the port specified in the source port parameter. 
 
 
 
 
disable – Entering this parameter will disable ingress mirroring for 
the source port. 
port <port> - Specifies the target port to where ingress traffic will be 
mirrored. This port cannot be the same as the source port and also 
cannot have a slower transfer speed as the source port. 
egress_port - This parameter denotes that the user wishes to mirror traffic 
leaving the port specified in the source port parameter. 
disable – Entering this parameter will disable egress mirroring for 
the source port. 
port <port> - Specifies the target port to where egress traffic will be 
mirrored. This port cannot be the same as the source port and also 
cannot have a slower transfer speed as the source port. 
Restrictions  Any target port cannot be listed as a source port. Only administrator-level 
users can issue this command. 
Example usage: 
To add the mirroring ports: 
 
86