Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

NetFlow

Does anyone know how to setup netflow for layer 2 interface. I know how to do it in a routed interface but not on a layer 2 port.This is for a nexus 7010 to monitor port for SQL Server. Any help would be great. Thanks

3 ACCEPTED SOLUTIONS

Accepted Solutions

Re: NetFlow

New Member

Re: NetFlow

The configuration guide is fairly confusing and you really don't know what you need to implement. Typically, I did the 'flow exporter' and found that obviously did not work. Here is what works now:

flow exporter MGT
  destination x.x.x.x
  transport udp 2055
  source loopback0
  version 9
    option exporter-stats timeout 1
flow record CasFlow
  description ipv4Flow
  match transport destination-port
  collect counter packets
flow monitor Cascade
  description ipv4Monitor
  record netflow-original
  exporter MGT

interface Vlanxx
  no shutdown
  ip flow monitor Cascade input

I would use what we are running on our Nexus 7000s and adapt to your own use. Our configuration is fairly generic.

regards

Ricky Boyd

CCIE 2901

Cisco Employee

Re: NetFlow

You cannot place it specifically on the l2 port ... you must place the monitor on the L3 interface, and then use your collector software to filter it down by the ip address of the server/sql ports.

Rob

4 REPLIES

Re: NetFlow

New Member

Re: NetFlow

The configuration guide is fairly confusing and you really don't know what you need to implement. Typically, I did the 'flow exporter' and found that obviously did not work. Here is what works now:

flow exporter MGT
  destination x.x.x.x
  transport udp 2055
  source loopback0
  version 9
    option exporter-stats timeout 1
flow record CasFlow
  description ipv4Flow
  match transport destination-port
  collect counter packets
flow monitor Cascade
  description ipv4Monitor
  record netflow-original
  exporter MGT

interface Vlanxx
  no shutdown
  ip flow monitor Cascade input

I would use what we are running on our Nexus 7000s and adapt to your own use. Our configuration is fairly generic.

regards

Ricky Boyd

CCIE 2901

Cisco Employee

Re: NetFlow

You cannot place it specifically on the l2 port ... you must place the monitor on the L3 interface, and then use your collector software to filter it down by the ip address of the server/sql ports.

Rob

New Member

Re: NetFlow

I'm trying to set up netflow on layer2 interface that is also a trunk. Is that OK to do? I barely receive any flows in my Netflow analyzer. At first I put a command

"layer2-switched flow monitor Layer2Flow input" on layer2 port as per configuration guide. Since that doesn't really work I applied:

"ip flow monitor Layer2Flow input 
  ip flow monitor Layer2Flow output"

commands on layer3 interface.

In Netflow analyzer I see some data going through, barely any, and Source IP and Destination IP fields show only 0.0.0.0

Am I missing something? Is it possible to receive flows from a layer2, trunked interface?

thanks in advance!

-Joanna

1383
Views
6
Helpful
4
Replies
CreatePlease login to create content