Interface Names via NetFlow

Posted in NetFlow, NetFlow Analyzer on February 15th, 2010 by mike@plixer.com
interface-names-via-netflow

Just about all NetFlow Analyzers get the interfaces names of the routers and switches using SNMP. Another reason why SNMP vs. NetFlow is really a no contest. Anyway, we can get the names of interfaces using NetFlow via something called NetFlow option templates.

It basically matches the ifIndex kicked out by NetFlow to the ifName OID. It was introduced in IOS 12.4(2)T or 12.4(4)T depending on what Cisco documentation you reference and is supported in NetFlow v9.

Router(config)# ip flow-export interface-names

Interface Names via NetFlow v9 look like this:

interfaceNamesViaNetFlowOptionTemplates

The above can also be used with NetFlow NBAR:
Router(config)# ip flow-export template options nbar

The ability to get the interface names via NetFlow is important.  Some vendors like Huawei export NetFlow or NetStream with different indexes than what is stated in SNMP. The above options template help us trouble shoot mixed up index problems as well as allow us to get descriptions when SNMP is not available.  BTW: we fixed the Huawei issue and have corrected the same issue for other vendors.

When we made the decision to make major changes to our NetFlow collector back in 2008. Support for Flexible NetFlow and option templates were some of our top priorites. MAC address, VLAN IDs, etc. are now all possible making network traffic analysis with NetFlow even easier.

Michael Patterson
Scrutinizer Product Manager
Click to download Scrutinizer now!
Join NetFlow Developments on Linkedin.com

Tags: , , , , ,

4 Responses to “Interface Names via NetFlow”

  1. Cisco NetFlow Replicator Released - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...]  transport udp 2055  template data timeout 60  option interface-table   !(see my blog on Interface names via NetFlow)  option exporter-stats   !(exports a cool table full of counter stats)  option [...]

  2. Evolution of NetFlow: What’s next - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] what is known as option templates.  These option templates include things such as flow counters, interface names, applications  and [...]

  3. NetFlow Analysis and the Top Ten IOS Services You Should Be Using Now! - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] Flow records or you can set up your own User-defined FlowSet to do such things as getting Interface Names, MAC addresses and VLAN IDS, and much more. You even have the option to apply a custom name [...]

  4. Using NetFlow Options Templates to Export Interface Names - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] names in NetFlow options templates.  Back in February Mike Patterson wrote a blog on exporting Interface Names via NetFlow and the command required to set it [...]

Leave a Reply