03-17-2025 10:08 PM
How / Can we enable netflow on trunk interface?
03-17-2025 11:43 PM
Hello @hs08
Check on your platform. On Nexus is feasable
03-18-2025 12:36 AM
My devices using C9500, it's possible?
03-18-2025 01:22 AM
03-17-2025 11:57 PM - edited 03-17-2025 11:57 PM
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 ********
03-18-2025 12:00 AM
Catalyst 9K check the configuration guide lines :
03-18-2025 12:35 AM
We only can see enabling the AVC on trunk interface not netflow. Am i right?
03-18-2025 04:57 AM
You can enable netflow on Trunk or port-channel, make sure destination not part of the port-channel or trunk or VLAN
03-18-2025 05:38 AM
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
03-18-2025 06:07 AM
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
03-18-2025 07:46 AM
Hi
The error is when i try to apply in physical interface t1/0/35
03-18-2025 07:52 AM - edited 03-18-2025 07:52 AM
Hello @hs08
Could you please share your recorder configuration, please ? Same as bottom ?
03-18-2025 08:14 AM
This
03-18-2025 08:31 AM - edited 03-18-2025 08:32 AM
03-18-2025 09:05 AM - edited 03-18-2025 09:06 AM
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 :
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