DGS-3200 Series Layer 2 Gigabit Managed Switch CLI Manual
170
19
Mirror Command List
config mirror port <port> [add|delete] source ports <portlist> [rx | tx | both]
enable mirror
disable mirror
show mirror
19-1 config mirror port
Purpose
Used to configure a mirror port
−
a source port pair on the switch. Traffic from any source port to a target
port can be mirrored for real-time analysis. A logic analyzer or an RMON probe can then be attached to
study the traffic crossing the source port in a completely unobtrusive manner.
Format
config mirror port <port> [add |delete] source ports <portlist> [rx|tx|both]
Description
The
config mirror
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 or both is mirrored to the target port.
Parameters
Parameters
Description
port
The port that will receive the packets duplicated at the mirror port.
add
The mirror entry to be added.
delete
The mirror entry to be deleted.
portlist
The port that will be mirrored. All packets entering and leaving the
source port can be duplicated in the mirror port.
rx
Allows the mirroring of only packets received (flowing into) the port or
ports in the port list.
tx
Allows the mirroring of only packets sent (flowing out of) the port or
ports in the port list.
both
Mirrors all the packets received or sent by the port or ports in the port
list.
Restrictions
You must have administrator privileges.