|
| 1 | +--- |
| 2 | +title: Extra deployment steps and samples for Enterprise IoT deployment - Microsoft Defender for IoT |
| 3 | +description: Describes additional deployment and validation procedures to use when deploying an Enterprise IoT network sensor. |
| 4 | +ms.topic: how-to |
| 5 | +ms.date: 08/08/2022 |
| 6 | +--- |
| 7 | + |
| 8 | +# Extra steps and samples for Enterprise IoT deployment |
| 9 | + |
| 10 | +This article provides extra steps for deploying an Enterprise IoT sensor, including a sample SPAN port configuration procedure, and CLI steps to validate your deployment or delete a sensor. |
| 11 | + |
| 12 | +For more information, see [Tutorial: Get started with Enterprise IoT monitoring](tutorial-getting-started-eiot-sensor.md). |
| 13 | + |
| 14 | +## Configure a SPAN monitoring interface for a virtual appliance |
| 15 | + |
| 16 | +While a virtual switch doesn't have mirroring capabilities, you can use *Promiscuous mode* in a virtual switch environment as a workaround for configuring a SPAN port. |
| 17 | + |
| 18 | +*Promiscuous mode* is a mode of operation and a security, monitoring, and administration technique that is defined at the virtual switch or portgroup level. When Promiscuous mode is used, any of the virtual machine’s network interfaces that are in the same portgroup can view all network traffic that goes through that virtual switch. By default, Promiscuous mode is turned off. |
| 19 | + |
| 20 | +This procedure describes an example of how to configure a SPAN port on your vSwitch with VMware ESXi. Enterprise IoT sensors also support VMs using Microsoft Hyper-V. |
| 21 | + |
| 22 | +**To configure a SPAN monitoring interface**: |
| 23 | + |
| 24 | +1. On your vSwitch, open the vSwitch properties and select **Add** > **Virtual Machine** > **Next**. |
| 25 | + |
| 26 | +1. Enter **SPAN Network** as your network label, and then select **VLAN ID** > **All** > **Next** > **Finish**. |
| 27 | + |
| 28 | +1. Select **SPAN Network** > **Edit** > **Security**, and verify that the **Promiscuous Mode** policy is set to **Accept** mode. |
| 29 | + |
| 30 | +1. Select **OK**, and then select **Close** to close the vSwitch properties. |
| 31 | + |
| 32 | +1. Open the **IoT Sensor VM** properties. |
| 33 | + |
| 34 | +1. For **Network Adapter 2**, select the **SPAN** network. |
| 35 | + |
| 36 | +1. Select **OK**. |
| 37 | + |
| 38 | +1. Connect to the sensor, and verify that mirroring works. |
| 39 | + |
| 40 | +If you've jumped to this procedure from the tutorial procedure for [Prepare a physical appliance or VM](tutorial-getting-started-eiot-sensor.md#prepare-a-physical-appliance-or-vm), continue with [step 2](tutorial-getting-started-eiot-sensor.md#sign-in) to continue preparing your appliance. |
| 41 | + |
| 42 | +## Validate your Enterprise IoT sensor setup |
| 43 | + |
| 44 | +If, after completing the Enterprise IoT sensor installation and setup, you don't see your sensor showing on the **Sites and sensors** page in the Azure portal, this procedure can help validate your installation directly on the sensor. |
| 45 | + |
| 46 | +Wait 1 minute after your sensor installation has completed before starting this procedure. |
| 47 | + |
| 48 | +**To validate the sensor setup from the sensor**: |
| 49 | + |
| 50 | +1. To process your system sanity, run: |
| 51 | + |
| 52 | + ```bash |
| 53 | + sudo docker ps |
| 54 | + ``` |
| 55 | + |
| 56 | +1. In the results that display, ensure that the following containers are up and listed as healthy. |
| 57 | + |
| 58 | + - `compose_attributes-collector_1` |
| 59 | + - `compose_cloud-communication_1` |
| 60 | + - `compose_logstash_1` |
| 61 | + - `compose_horizon_1` |
| 62 | + - `compose_statistics-collector_1` |
| 63 | + - `compose_properties_1` |
| 64 | + |
| 65 | + For example: |
| 66 | + |
| 67 | + :::image type="content" source="media/tutorial-get-started-eiot/validate-setup.png" alt-text="Screenshot of the validated containers listed." lightbox="media/tutorial-get-started-eiot/validate-setup.png"::: |
| 68 | + |
| 69 | +1. Check your port validation to see which interface is defined to handle port mirroring. Run: |
| 70 | + |
| 71 | + ```bash |
| 72 | + sudo docker logs compose_horizon_1 |
| 73 | + ```` |
| 74 | +
|
| 75 | + For example, the following response might be displayed: `Found env variable for monitor interfaces: ens192` |
| 76 | +
|
| 77 | +1. Wait 5 minutes and then check your traffic D2C sanity. Run: |
| 78 | +
|
| 79 | + ```bash |
| 80 | + sudo docker logs -f compose_attributes-collector_1 |
| 81 | + ``` |
| 82 | + |
| 83 | + Check the results to ensure that packets are being sent as expected. |
| 84 | + |
| 85 | +## Remove an Enterprise IoT network sensor (optional) |
| 86 | + |
| 87 | +Remove a sensor if it's no longer in use with Defender for IoT. |
| 88 | +
|
| 89 | +**To remove a sensor**, run the following command on the sensor server or VM: |
| 90 | +
|
| 91 | +```bash |
| 92 | +sudo apt purge -y microsoft-eiot-sensor |
| 93 | +``` |
| 94 | +
|
| 95 | +> [!IMPORTANT] |
| 96 | +> If you want to cancel your plan for Enterprise IoT networks only, do so from [Defender for Endpoint](/microsoft-365/security/defender-endpoint/enable-microsoft-defender-for-iot-integration). |
| 97 | +> |
| 98 | +> If you want to cancel your plan for both OT and Enterprise IoT networks together, you can use the [**Pricing**](how-to-manage-subscriptions.md) page in Defender for IoT in the Azure portal. |
| 99 | +> |
| 100 | +
|
| 101 | +## Next steps |
| 102 | +
|
| 103 | +For more information, see [Tutorial: Get started with Enterprise IoT monitoring](tutorial-getting-started-eiot-sensor.md) and [Manage sensors with Defender for IoT in the Azure portal](how-to-manage-sensors-on-the-cloud.md). |
| 104 | +
|
| 105 | +<!--for example?--> |
0 commit comments