---
title: "Configuring NetSense for NetMirror"
canonical: "https://thoughtdata.refined.site/space/TUD/55480987/Configuring%20NetSense%20for%20NetMirror"
format: markdown
---
Go to "**cd /usr/local/thoughtdata/netsense/etc" **directory

Edit the **"node.cfg" **file by running **"vi node,cfg"**

In the parameter **"interface" **under section** [worker-1] **replace the existing string with **net::3001. **Note that the port number entered should be same port number which you choose in the "**td_net_mirror.cfg" **on the NetMirror side. Save and exit the file by running **"Esc" ":" "wq!"**

Sample **"node.cfg" **is illustrated below

![image](media://52d30b30-d354-46a0-ae58-2e1b4ed681e0)

Configuration on Netsense side for NetMirrors

**Note**: In the above example it is assumed that Netsense is only listening to NetMirrors and is not monitoring any vNIC interfaces on the machine its installed. You can replicate the **[worker-1] **section to create similar sections for other NetMirrors. You will be required to choose a unique port for each NetMirror. If you have configured **[worker-1] **section for direct network monitoring on a vNIC on Netsense VM, you may skip [worker-1] section and create and [worker-2], [worker-3] etc sections for each NetMirrors

Go to "**cd /usr/local/thoughtdata/netsense/bin" **directory

Run **"./stop**" and **"./start"** to restart your Netsense process

Run **"./ps"** to view all running processes of the Netsense and NetMirror listeners

Optionally if you have setup Netsense as a service, you can stop and start Netsense service by running **"service stop tdnetsense" **and **"****service start tdnetsense"**

This completes the configuration required to make your Netsense sensor to receive traffic streams sent by your NetMirrors.