02-28-2023 06:02 AM
Hello,
I'm currently trying to configure netflow on my core switch, so that I can figure out why I'm getting millions of dropped packets on a few interfaces. I'm stuck at the step where I need to provide a source interface (see in bold below). I don't think I have a loopback interface on my switch, and I'm not really sure what interface I need to select for this. I've also attached the status of all the ports on the switch if that's any use.
flow record NTARecord
match ipv4 source address
match ipv4 destination address
match ipv4 protocol
match transport source-port
match transport destination-port
match ipv4 tos
match interface input
collect interface output
collect counter bytes long
collect counter packets long
collect timestamp absolute first
collect timestamp absolute last
flow exporter NTAExporter
destination 10.10.0.1
source {LOOPBACK_INTERFACE_NAME}
02-28-2023 10:45 AM
flow exporter NTAExporter
destination 10.10.0.1
source {LOOPBACK_INTERFACE_NAME} <-- this interface you should Layer3 interface which can reach 10.10.0.1 IP address
Note: not necessary loopback, you can use any interface
is this the switch acting as layer 2 ? what is IOS XE running?
02-28-2023 11:03 AM
C9300-48UXM 16.9.2 CAT9K_IOSXE INSTALL
There seems to be some routing, so it's operating at layer 3
ip route 0.0.0.0 0.0.0.0 172.16.3.254
ip route 10.0.3.0 255.255.255.0 172.16.3.253
I'm still not sure which interface to choose
02-28-2023 12:46 PM
Can you post show ip interface brief?
02-28-2023 12:50 PM
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM administratively down down
Vlan100 172.16.3.252 YES NVRAM up up
Vlan101 10.0.1.1 YES NVRAM up up
GigabitEthernet0/0 unassigned YES NVRAM administratively down down
Tw1/0/1 unassigned YES unset up up
Tw1/0/2 unassigned YES unset up up
Tw1/0/3 unassigned YES unset up up
Tw1/0/4 unassigned YES unset up up
Tw1/0/5 unassigned YES unset up up
Tw1/0/6 unassigned YES unset up up
Tw1/0/7 unassigned YES unset up up
Tw1/0/8 unassigned YES unset up up
Tw1/0/9 unassigned YES unset up up
Tw1/0/10 unassigned YES unset up up
Tw1/0/11 unassigned YES unset up up
Tw1/0/12 unassigned YES unset up up
Tw1/0/13 unassigned YES unset up up
Tw1/0/14 unassigned YES unset up up
Tw1/0/15 unassigned YES unset up up
Tw1/0/16 unassigned YES unset up up
Tw1/0/17 unassigned YES unset up up
Tw1/0/18 unassigned YES unset down down
Tw1/0/19 unassigned YES unset up up
Tw1/0/20 unassigned YES unset up up
Tw1/0/21 unassigned YES unset up up
Tw1/0/22 unassigned YES unset up up
Tw1/0/23 unassigned YES unset up up
Tw1/0/24 unassigned YES unset up up
Tw1/0/25 unassigned YES unset up up
Tw1/0/26 unassigned YES unset up up
Tw1/0/27 unassigned YES unset up up
Tw1/0/28 unassigned YES unset up up
Tw1/0/29 unassigned YES unset up up
Tw1/0/30 unassigned YES unset up up
Tw1/0/31 unassigned YES unset up up
Tw1/0/32 unassigned YES unset up up
Tw1/0/33 unassigned YES unset up up
Tw1/0/34 unassigned YES unset up up
Tw1/0/35 unassigned YES unset up up
Tw1/0/36 unassigned YES unset down down
Te1/0/37 unassigned YES unset down down
Te1/0/38 unassigned YES unset up up
Te1/0/39 unassigned YES unset down down
Te1/0/40 unassigned YES unset up up
Te1/0/41 unassigned YES unset up up
Te1/0/42 unassigned YES unset down down
Te1/0/43 unassigned YES unset up up
Te1/0/44 unassigned YES unset up up
Te1/0/45 unassigned YES unset up up
Te1/0/46 unassigned YES unset up up
Te1/0/47 unassigned YES unset up up
Te1/0/48 unassigned YES unset up up
GigabitEthernet1/1/1 unassigned YES unset down down
GigabitEthernet1/1/2 unassigned YES unset down down
GigabitEthernet1/1/3 unassigned YES unset down down
GigabitEthernet1/1/4 unassigned YES unset down down
Te1/1/1 unassigned YES unset up up
Te1/1/2 unassigned YES unset down down
Te1/1/3 unassigned YES unset down down
Te1/1/4 unassigned YES unset down down
Te1/1/5 unassigned YES unset down down
Te1/1/6 unassigned YES unset down down
Te1/1/7 unassigned YES unset down down
Te1/1/8 unassigned YES unset down down
Fo1/1/1 unassigned YES unset down down
Fo1/1/2 unassigned YES unset down down
TwentyFiveGigE1/1/1 unassigned YES unset down down
TwentyFiveGigE1/1/2 unassigned YES unset down down
Port-channel1 unassigned YES unset up up
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