Specifications

DGS-3048 Layer 2 Switch CLI Reference Manual
95
13
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 {target <port> | ingress_source <port> | egress_source <port>}
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 {target <port> | ingress_source <port> | egress_source
<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
target port <port> This specifies the port that mirrors traffic forwarding.
ingress_target – This parameter denotes that the user wishes to mirror
traffic entering the port specified in the source port parameter.
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.
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:
DGS3048# config mirror source port 1 ingress_target port 2 egress_target port 3
Command: config mirror source port 1 ingress_target port 2 egress_target port 3
Success.
DGS3048#