--- title: "Configure port-mirroring on the vSphere Distributed Switch" slug: "configure-port-mirroring-on-the-vsphere-distributed-switch" tags: ["Product Usage", "IPS 10.1.10"] updated: 2026-10-05T15:39:58Z published: 2026-10-05T15:39:58Z canonical: "docs.trellix.com/configure-port-mirroring-on-the-vsphere-distributed-switch" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure port-mirroring on the vSphere Distributed Switch ## Before you begin - Set up a VMware datacenter with the supported version of vSphere Distributed Switch (VDS). - Define a dedicated switch uplink port on the ESX server that will send the copied packets to the VM-Aware interface on the Sensor. - Make sure the uplink port on the VDS is assigned a physical NIC on the ESX server. For the Sensor to inspect VM traffic, it should receive all the traffic from your virtual data center. The method for this is to configure port-mirroring on the VDS so that a SPAN port of the Sensor receives a copy of all the VM traffic. The steps for defining port-mirroring in vSphere 5.0 are provided in this section. Use it in conjunction with VMware documentation. When you configure port-mirroring, you specify the virtual source ports from which the traffic is to be copied and the uplink port to which the copied traffic is to be sent. These source and destination ports must belong to the same VDS. Virtual network with port mirror for VMware ![](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/GUID-B5F9275D-A03D-4478-9A16-451D0AD9B52A-low(1).jpg?sv=2026-02-06&spr=https&st=2026-11-22T15%3A07%3A00Z&se=2026-11-22T16%3A07%3A00Z&sr=c&sp=r&sig=gCXFdl%2BPS0uAAYcGMc0bmifd9ACBUqmIo0LWWb4Bivo%3D) ## Task 1. Use vSphere Client to connect to vCenter. 2. Select **Home** → **Inventory** → **Networking,** and then select the VDS for which you want to set up the IDS inspection. 3. Right-click and select **Edit Settings.** 4. Select the **Port Mirroring** tab and click **Add.** 5. In the **Name** text box, enter the name for the port mirroring session. For example, you can enter *Trellix IDS*. 6. Select **Encapsulation VLAN** and enter the VLAN ID corresponding to the VLAN range entered in the VM-Aware interface. > [!NOTE] > Note > > Make sure the mirrored packet is not restricted in its length (keep **Mirrored packet length** deselected). 7. Click **Next.** 8. From **Specify Sources,** select the ports whose traffic you want inspected, for example, 2-100, and then click **Next**. 9. From the **Destination** type, select **Uplink.** Select the dvUplinks that are connected/routable to a Sensor monitoring port. For example, if there are two uplinks, then dvUplink2 is typically chosen for mirroring whereas dvUplink1 can be used for the normal uplink communication on the vDS. 10. Click **Next.** 11. Select the **Enable this port mirroring session** checkbox and click **Finish.** You can directly connect the Sensor's VM-Aware interface (the SPAN monitoring port) to the physical NIC on the ESX server that is associated with the uplink port on the VDS. Alternatively, you can connect the physical NIC associated with the uplink port to a physical switch. In this case, you must configure SPAN on that physical switch as well. That is, the physical switch port to which the physical NIC of the uplink port must be configured as the source. The switch port to which the Sensor's VM-Aware port is connected must be configured as the destination. So, the traffic from the uplink port on the ESX server is now copied to the port where you have connected the Sensor's VM-Aware port.