TL-SL5428E
24-port 10/100Mbps + 4-port Gigabit L2 Managed Switch CLI Guide
Chapter 24 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.
port mirror
Description
The port mirror command is used to enable Port Mirror function. To disable the
Port Mirror function, please use no port mirror command.
Syntax
port mirror
no port mirror
Command Mode
Interface Configuration Mode(interface Ethernet)
Example
Configure port 1 as mirroring port:
TP-LINK(config)# interface Ethernet 1
TP-LINK(config-if)# port mirror
port mirrored
Description
The port mirrored command is used to configure the port monitoring. To delete
the corresponding configuration, please use no port mirrored command.
Syntax
port mirrored {port-list} { ingress | egress | both }
no port mirrored {port-list} { ingress | egress | both }
Parameter
port-list —— List of mirrored port. It is multi-optional.
ingress — — Ingress monitoring. Select this option, the incoming packets
received by the mirrored port will be copied to the mirroring port.
137