To resolve this issue, change the mirroring mode to Distributed Port Mirroring. This mode selects the source traffic by specific virtual ports rather than by VLAN, preventing interference with the production VLAN.
vSphere Port Mirroring Modes Overview:
- Distributed Port Mirroring: Mirrors traffic from designated source virtual ports to destination virtual ports on the same vSphere Distributed Switch (vDS).
- Use Case: Use this mode when both the monitored VMs and the collector VM reside on the same vDS.
- Requirements: Source and destination virtual ports must be configured on the same vDS.
- Remote Mirroring Source: Mirrors traffic from virtual ports to a specific physical uplink port on the vDS.
- Use Case: Use this mode to send traffic to an external, physical network analyzer.
- Requirements: A designated physical uplink port.
- Remote Mirroring Destination: Mirrors traffic from a specific VLAN to virtual ports.
- Use Case: Use this mode to monitor all traffic traversing a specific VLAN.
- Requirements: A dedicated VLAN ID for the mirror traffic that is distinct from the production VLAN.
- Encapsulated Remote Mirroring (L3) Source: Mirrors traffic from virtual ports to a remote IP address using GRE encapsulation.
- Use Case: Use this mode when the traffic collector resides on a different Layer 3 network segment.
- Requirements: The IP address of the destination collector.
- Distributed Port Mirroring (Legacy): Mirrors traffic using older vDS architectures.
- Use Case: Avoid this mode unless explicitly required for backward compatibility with legacy environments.
Steps to Configure Distributed Port Mirroring:
- Delete the existing Remote Mirroring Destination session.
- Create a new Port Mirroring Session.
- Select Distributed Port Mirroring as the session type.
- Select the specific source virtual ports for the application VMs you wish to monitor.
- Select the destination virtual port for the collector VM.
- Enable the mirroring session.