cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
915
Views
0
Helpful
14
Replies

Netflow in trunk Interface

hs08
VIP
VIP

How / Can we enable netflow on trunk interface?

14 Replies 14

M02@rt37
VIP
VIP

Hello @hs08 

Check on your platform. On Nexus is feasable 

Screenshot_20250318_074013.jpg

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

My devices using C9500, it's possible?

Blue_Bird
VIP
VIP

Hello hs08,

It is based on your switch platform..! As M02@rt37 mentioned, on Nexus 9000 switches is possible..! 

 

if it is lower series switches..You can't directly enable NetFlow on a trunk interface, as NetFlow is a Layer 3 technology, while trunk interfaces are Layer- 2. Instead, you'll need to enable NetFlow on the VLAN interfaces (SVIs) associated with the VLANs carried by the trunk. 

 

Best regards
******* If This Helps, Please Rate ********

 

 

balaji.bandi
Hall of Fame
Hall of Fame

hi @balaji.bandi 

We only can see enabling the AVC on trunk interface not netflow. Am i right?

You can enable netflow on Trunk or port-channel, make sure destination not part of the port-channel or trunk or VLAN

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Belo my config

flow record NTA-Rec
match ipv4 tos
match ipv4 protocol
match ipv4 source address
match ipv4 destination address
match transport source-port
match transport destination-port
match interface input
collect interface output
collect application name
!
!
flow exporter NTA-Exp
destination 10.103.248.55
source Loopback0
transport udp 2055
export-protocol ipfix
template data timeout 60
option application-table timeout 60
option application-attributes timeout 300
!
!
flow monitor NTA-Mon
description NetFlow nbar
exporter NTA-Exp

But i get this error when applying on trunk interface

CS01(config-if)#ip flow monitor NTA-Mon input
% Flow Monitor: Failed to add monitor to interface: Invalid set of fields in monitor record for wired interface

when you say trunk you try to apply Port-channel ?

suggest to apply Physical interface part of Port-channel.

interface range te 1/x/1, te 1/x/2
ip flow monitor xxxxxxxx input
ip flow monitor xxxxxxxxxxxxx output

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi 

The error is when i try to apply in physical interface t1/0/35

hs08_0-1742309178907.png

 

Hello @hs08 

Could you please share your recorder configuration, please ? Same as bottom ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

This

hs08_1-1742310823130.png

 

 

@hs08 

Ok I'm gonna check

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

i tested my Lab switch cat 9300 running 17.9.5

 

#show version
Cisco IOS XE Software, Version 17.09.05
Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 17.9.5, RELEASE SOFTWARE (fc1)

#show run interface port-channel 20
Building configuration...

Current configuration : 32 bytes
!
interface Port-channel20
end

TEST#show run interface tw1/0/20
Building configuration...

Current configuration : 130 bytes
!
interface TwoGigabitEthernet1/0/20
switchport mode trunk
ip flow monitor mymonitor input
channel-group 20 mode active
end

TEST#show run interface tw1/0/21
Building configuration...

Current configuration : 130 bytes
!
interface TwoGigabitEthernet1/0/21
switchport mode trunk
ip flow monitor mymonitor input
channel-group 20 mode active
end

 

Full example :

https://www.balajibandi.com/?p=1383

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help