Port Mirroring
Port-Mirroring Configuration
454
G8264 Command Reference for ENOS 8.4
Port Mirroring is disabled by default. For more information about port mirroring
on the G8264, see "Appendix A: Troubleshooting" in the Lenovo RackSwitch G8264
Application Guide for Lenovo Enterprise Network Operating System 8.4.
Port Mirroring commands are used to configure, enable and disable the monitor
port. When enabled, network packets being sent and/or received on a target port
are duplicated and sent to a monitor port. By attaching a network analyzer to the
monitor port, you can collect detailed information about your network
performance and usage.
Table 220.
Port Mirroring Configuration Options
Command Syntax and Usage
[no] portmirroring enable
Enables or disables port mirroring.
Command mode: Global configuration
show portmirroring
Displays current settings of the mirrored and monitoring ports.
Command mode: All
The following table describes the Port Mirroring commands.
Table 221.
Port‐Based Port‐Mirroring Configuration Options
Command Syntax and Usage
portmirroring monitorport <port alias or number> mirroringport
<port alias or number> {in|out|both}
Adds the port to be mirrored. This command also allows you to enter the
direction of the traffic. It is necessary to specify the direction because:
If the source port of the frame matches the mirrored port and the mirrored
direction is ingress or both (ingress and egress), the frame is sent to the
monitoring port.
If the destination port of the frame matches the mirrored port and the mirrored
direction is egress or both, the frame is sent to the monitoring port.
Command mode: Global configuration
no portmirroring monitorport <port alias or number>
[mirroringport <port alias or number>]
Removes the monitor port. The mirroringport option only removes the
mirrored port.
Command mode: Global configuration
show portmirroring
Displays the current settings of the monitoring port.
Command mode: All