01-16-2017 01:02 AM - edited 03-08-2019 08:55 AM
I have a Nexus-7010 and have netflow configured on SVI / Routing Interface to collects the flow data for troubleshooting.
Recently, I want to have flow data from a trunk port interface.
Could you tell me, Is it possible to enable the netflow on a trunk port interface likes this ?
interface Ethernet2/6
ip flow monitor NF-Monitor-01 input sampler NF-Sampler-01
ip flow monitor NF-Monitor-01 output sampler NF-Sampler-01
switchport
switchport mode trunk
switchport trunk allowed vlan 100,215
no shutdown
01-16-2017 01:06 AM
Yes but your netflow needs to be set for layer 2 fields or it wont collect anything
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fnetflow/configuration/15-mt/fnf-15-mt-book/fnf-l2-fields.html#d41985e186a1635
flow record LAYER-2-FIELDS-1
match ipv4 source address
match ipv4 destination address
match datalink dot1q vlan output
match datalink mac source address input
match datalink mac source address output
match datalink mac destination address input
match flow direction
01-16-2017 01:22 AM
Hi Mark,
Thanks for your help and I will schedule to test the new configuration :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide