Port Mirroring Commands - D-Link DGS-3224TGR Command Line Interface Reference Manual

Layer 2 gigabit ethernet switch
Hide thumbs Also See for DGS-3224TGR:
Table of Contents

Advertisement

The port mirroring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command
config mirror port
enable mirror
disable mirror
show mirror
Each command is listed, in detail, in the following sections.
config mirror port
Purpose
Used to conigure a mirror port − source port pair on the switch.
Syntax
config mirror port <port> add source ports <portlist> [rx|tx|both]
Description
This command allows a range of ports to have all of their traffic also sent to a desnigated 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.
<port> − This specifies the Target port (the port where mirrored packets will be sent).
Parameters
<portlist> − This specifies a range of ports that will be mirrored. That is, a range of ports for
which all traffic will be copied and sent to the Target port. The port list is specified by listing
the beginning port number on that switch and the highest port number of the range. The
beginning and end of the port list range are separated by a dash. For example, 3 would
specify port 3. 4 specifies port 4. 3-4 specifies all of the ports between port 3 and port 4 − in
numerical order.
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
Only administrator-level users can issue this command.
Example Usage:
To add the mirroring ports:
DGS-3224TGR Gigabit Ethernet Switch CLI Reference Manual
P
ORT
Parameters
<port> [add|delete]
source ports <portlist> [rx|tx|both]
M
IRRORING
68
14
C
OMMANDS

Advertisement

Table of Contents
loading

Table of Contents