Chapter 11 Port Mirror Commands; Mirror Add - TP-Link TL-SG2216 Cli Reference Manual

Gigabit smart switch
Hide thumbs Also See for TL-SG2216:
Table of Contents

Advertisement

Chapter 11 Port Mirror Commands

Port Mirror refers to the process of forwarding copies of packets from one port to a mirroring port.
Usually, the mirroring port is connected to data diagnose device, which is used to analyze the
mirrored packets for monitoring and troubleshooting the network.

mirror add

Description
The mirror add command is used to enable Port Mirror function.
Syntax
mirror add {mirrored port} {mirroring port} {none | ingress | egress | both}
{group-num}
Parameter
mirrored port —— The port to be monitored.
mirroring port —— The mirroring port.
none —— Remove the mirrored port from the current mirror group.
ingress — — Ingress monitoring. Select this option, the incoming packets
received by the mirrored port will be copied to the mirroring port.
egress —— Egress monitoring. Select this option, the outgoing packets sent
by the mirrored port will be copied to the mirroring port.
both
packets received and the outgoing packets sent by the mirrored port will both be
copied to the mirroring port.
group-num
Command Mode
Global Configuration Mode
Example
Configure port 3 as mirrored port, port 4 as mirroring port, the mirror mode as
both and group number as 1 :
TP-LINK(config)# mirror add 3 4 both 1
User Guidelines
1.
2.
——
Ingress and Egress monitoring. Select this option, the incoming
——
The group number of mirrior group.
The mirroring port is corresponding to current interface configuration mode.
Mirrored ports number is not limited, but it can't be the mirroring port at the
68

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tl-sg2424

Table of Contents