> How do I set the input and output interface Id? By default nProbe tries to emulate a switched environment even if a mirror packet stream is used.

# How do I set the input and output interface Id?

By default nProbe tries to emulate a switched environment even if a mirror packet stream is used. For this reason both input and output interfaces are set to the last two bytes of the MAC address of the packet that is part of the flow. While this is a nice property, it is not likes by some netflow collectors that instead rely on static/physical interface numbers. nProbe supports this, however you need to understand first how interfaceId works on NetFlow and how to set it on nProbe.

The netflow id corresponds to the SNMP interfaceId and not the nprobe interface id. In order to find the correct value, it is necessary to snmpwalk on the host where nprobe is active, and see what are the indexes associated with the interfaces. In other words it is necessary to make sure that the snmp interfaceId and netflow interfaceId are consistent.

Example:

sh-3.2# snmpwalk -v 1 -c public localhost ifDescr  
IF-MIB::ifDescr.1 = STRING: lo0  
IF-MIB::ifDescr.2 = STRING: gif0  
IF-MIB::ifDescr.3 = STRING: stf0  
IF-MIB::ifDescr.4 = STRING: en0  
IF-MIB::ifDescr.5 = STRING: fw0  
IF-MIB::ifDescr.6 = STRING: en1  
IF-MIB::ifDescr.7 = STRING: en2  
IF-MIB::ifDescr.8 = STRING: en3

This means that we need to use interfaceId 8 for en3, 7 for en2….

Note that some collectors do not like flows with the same input and output interfaceId, so in case you use the same Id for in and out, this can create problems.

## Related questions

-   [How to capture from a bond interface using PF\_RING ZC?](https://www.ntop.org/faq/how-to-capture-from-a-bond-interface-using-pf_ring-zc/)
-   [Starting ntopng on the correct network interface under Windows](https://www.ntop.org/faq/starting-ntopng-on-the-correct-network-interface-under-windows/)
-   [Are Licenses Perpetual? What About Maintenance?](https://www.ntop.org/faq/are-licenses-perpetual-what-about-maintenance/)

## Learn more about ntop products

-   [ntop products overview and features](https://www.ntop.org/products/)
-   [Detecting CVE-2026-98432 using nDPI/ntopng](https://www.ntop.org/detecting-cve-2026-98432-using-ndpi-ntopng/)
-   [How we Redesigned Search in ntopng](https://www.ntop.org/how-we-redesigned-search-in-ntopng/)
-   [All frequently asked questions](https://www.ntop.org/support/need-help/faq/)

## Ready to see it on your network?

Download the free Community edition, or talk to the ntop team about scale, licensing and support.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/faq/how-do-i-set-the-input-and-output-interface-id/