Capturing physical network traffic with VMware vSensor
How to capture physical network traffic using a VMware vSensor.
It may be desirable to mirror traffic from a physical switch to a VMware vSensor. There are two ways to mirror traffic from a physical switch into a VMware ESXi hypervisor host for monitoring by a Vectra vSensor.
The first method utilizes a dedicated physical NIC on the host chassis to carry tagged or untagged traffic from the mirror session on the switch to the vSensor on the host. The second method utilizes a VLAN that is trunked over a link to the host.
Method 1: Dedicated link to ESXi host
Utilizing a dedicated link from the physical switch to the ESXi host may require the addition of a dedicated vSwitch due to VLAN tagging. The following procedure outlines the necessary steps required to setup ESXi's network to accomplish this.
Create port group for capture interface
On the Port groups tab, click Add port group.

Enter VLAN ID 4095 to monitor all VLANs being trunked (including native) over the physical link from the switch.
Select the virtual switch created in the previous step for Virtual switch.
Ensure that the port group's security settings are being inherited from the vSwitch.
Verify vSensor is receiving packets
Log in to the vSensor's CLI
Run the command
show traffic statsseveral times to verify the interface is receiving traffic as expected andpackets_receivedcounts are increasing. Please note that this command will only function after the vSensor has been paired and updated from the Brain. For details, please see the earlier guidance about the embryo state of vSensors immediately after initial deployment.

Method 2: Utilizing a VLAN tag over an existing trunked link
When a dedicated physical link between the switch and the ESXi host is not desired or possible, a switch's mirroring session output can usually be configured to output on a VLAN. Configuration on the physical network will vary by deployment and network vendor. Please work with your networking team and/or vendor to complete physical network configuration.
Create the port group
Create a port group for the vSensor's capture interface.
In ESXi's Networking menu, choose the Port groups tab.
Click on Add port group.
Enter the VLAN ID that the switch will be mirroring traffic over (4000 in this case).
Choose the appropriate virtual switch that has the physical link trunking the VLAN.
Ensure Promiscuous mode is enabled under Security.

Verify vSensor is receiving packets
Log in to the vSensor's CLI.
Run the command
show traffic statsseveral times to verify the interface is receiving traffic as expected andpackets_receivedcounts are increasing. Please note that this command will only function after the vSensor has been paired and updated from the Brain. For details, please see the earlier guidance about the embryo state of vSensors immediately after initial deployment.

Last updated
Was this helpful?



