DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
415
Chapter 41
Mirror Commands
config mirror port
<port> {[add | delete] source ports <portlist> [rx | tx | both]}
enable mirror
disable mirror
show mirror
41-1
config mirror port
Description
This command is used to allow 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, sent by or both is mirrored to the target port.
Format
config mirror port <port> {[add |delete] source ports <portlist> [rx | tx | both]}
Parameters
<port>
- Specifies the port that will receive the packets duplicated at the mirror port.
add
- (Optional) Specifies the mirror entry to be added.
delete
- (Optional) Specifies the mirror entry to be deleted.
source ports
- (Optional) Specifies the ports that will be mirrored. All packets entering and
leaving the source port can be duplicated in the mirror port.
<portlist>
- Specifies a range of ports to be configured.
rx
- (Optional) Allow the mirroring of only packets received (flowing into) the port or ports in the
port list.
tx
- (Optional) Allow the mirroring of only packets sent (flowing out of) the port or ports in the port
list.
both
- (Optional) Mirror all the packets received or sent by the port or ports in the port list.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To add mirroring target port 6 and the source ports 1 to 5 rx and tx packets:
DGS-3710-12C:admin#config mirror port 6 add source ports 1-5 both
Command: config mirror port 6 add source ports 1-5 both
Success.
DGS-3710-12C:admin#