Getting MAC Addresses from Flexible NetFlow

Posted in NetFlow on September 21st, 2009 by mike@plixer.com
getting-mac-addresses-from-flexible-netflow

A while ago I had a customer ask me about getting MAC addresses using Flexible NetFlow.  Yes, it is possible but, two issues come into play when getting it to work properly.
• The router must support Flexible NetFlow export
• The collector must accept and display it

Configure The Router
The router must be configured to export MAC addresses.  Here is how we did it:

Step 1: Create a flow record and define fields that you want to export. Give it a name. Called MAC-ATTACK here. I  have also included various other fields. You can ALSO export output MACs. This can show you if the router changed the MAC.

  • flow record MAC_ATTACK
  • description MAC address flow monitor
  • match application name
  • collect ipv4 id
  • collect ipv4 source address
  • collect ipv4 source prefix
  • collect ipv4 source mask
  • collect ipv4 destination address
  • collect ipv4 destination mask
  • collect transport source-port
  • collect transport destination-port
  • collect transport tcp source-port
  • collect transport tcp destination-port
  • collect transport udp source-port
  • collect transport udp destination-port
  • collect interface input
  • collect interface output
  • collect counter bytes
  • collect counter packets
  • collect timestamp sys-uptime first
  • collect timestamp sys-uptime last
  • collect datalink mac source address input
  • collect datalink mac destination address input

Step 2: Create an exporter

  • flow exporter my-happy-funtime-exporter
  • description flexible NF v9
  • destination 66.186.184.205
  • source FastEthernet0/1
  • transport udp 2055
  • template data timeout 60

Step 3: Create a flow monitor

This tells the router what flow record and exporter to use:

  • flow monitor My-flow-monitor
  • description app traffic analysis
  • record app-traffic-analysis
  • exporter export-to-scrut7

Step 4:  Add Monitor to the desired interfaces

  • interface FastEthernet0/0
    ip flow monitor My-flow-monitor input
  • interface FastEthernet0/1
    ip flow monitor My-flow-monitor  input

Step 5: Enjoy the MAC goodness

The NetFlow Collector Must Accept It
The NetFlow collector must accept these new NetFlow packets containing MAC addresses. What’s more, the NetFlow reporting interface must allow you to view and search for the source and destination MAC addresses.  Here is our initial interface to this data:
netFlowMacAddress

Notice to the far right in the image above ‘vlandId’ cool stuff!  You can sort and search on any column, below I’m searching for a MAC address:
netFlowMacAddress2

I can also see the respective IP address for the MAC and trend the traffic for the IP.  All of this with the free version of Scrutinizer!

“The ability to correlate end-users’ identities, as well as IP and MAC addresses, with anomalous network traffic patterns is important for enterprise IT security professionals,” said Phil Hochmuth, senior analyst with Yankee Group.

philHochmuth


Scrutinizer v7 supports Flexible NetFlow and is able to receive and store Cisco NSEL (i.e. NetFlow Security Event Logs) and PSAMP, etc.  Because of this, our collector is able to receive and display anything kicked out that is in a NetFlow v9 format.  However, sometimes we don’t know how to display the data if the information isn’t in the template or if the records aren’t included as one of our defaults.  If you are having trouble displaying your unique NetFlow v9 data, please send a WireShark packet trace to me and make sure the capture includes a template!

Scrutinizer Has It Covered

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

Tags: , , , , , , , ,

12 Responses to “Getting MAC Addresses from Flexible NetFlow”

  1. Newton Ramos Says:

    Have you had a chance to get MAC from netflow V9 on an enterasys router? I noticed plixer advertises being partners with them. It seems to me that based on the documentation I found they only allow four pre-canned templates.

  2. Mike Patterson Says:

    I’m sure we can do it. If you can email me a packet capture, that would be great. I will contact Enterasys as well.

  3. Mike Patterson Says:

    I heard Enterasys will be exporting MAC addresses using NetFlow this year. Please contact them for details.

  4. Interface Names via NetFlow - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] 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 [...]

  5. Apply Names to NetFlow Templates - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] than just traditional ‘flow’ information.  It can also kick out interface names as well as NetFlow counters, MAC Addresses, VLAN IDs and much more.  Often times this means multiple templates are kicked out by the same router or [...]

  6. Flexible NetFlow Configuration using Pre-Defined Flow Records - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] in Flexible NetFlow.  And with the use of Flexible NetFlow and Option Templates, NBAR, MAC Address, VLAN ID, Network Counters, Interface Names, and Bandwidth Utilization Billing reports are all available using [...]

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

    [...] is a example of a Flexible NetFlow export where MAC address and VLAN ID are included in the NetFlow template.  Syslogs can also be exported via NetFlow which has been [...]

  8. ネットフローとSフローからの詳細データ - Free NetFlow Resources Says:

    [...] ネットフローからのMAC addressesを探しているなら(フィルタリストには表示なし)フロービューを使用することができます。ただただ見事です。 [...]

  9. Catch Network Traffic to Hand Helds with NetFlow Analysis : Ravica Blog Says:

    [...] can also export MAC addresses using Cisco’s Flexible NetFlow technology.  However, if you don’t have a Cisco router where you need one, contact us for an [...]

  10. mike@plixer.com Says:

    Learn how to report on MAC addresses in this post:
    http://www.ravica.com/blog/netflow-probes/catch-network-traffic-to-hand-helds-with-netflow-analysis/

  11. what is my router ip address Says:

    Great post, but that wouldn’t seem to make use of my router ip, any hints?

  12. Net Flow: IT Monitoring Service - NetFlow & sFlow Network Monitoring - Systrax Says:

    [...] To export MAC Addresses in Netflow, add these to your Flexible NetFlow Record: [...]

Leave a Reply