cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3891
Views
0
Helpful
4
Replies

Nexus bash-shell tcpdump capture packets on switchport

Tony Rosolek
Level 1
Level 1

Hello Cisco world,

I'm currently troubleshooting a problem, where I want to see if specific packets (e.g. ICMP) are entering and/or leaving a specific switch ports. 

I used tcpdump (bash-4.2# tcpdump -i Eth1-2) via bash-shell, but all I see are rapid spanning tree control packets. I don't see any data packets. I tested it on trunk and access ports. I'm sure that the packets are switched via these ports, but I can't see them in tcpdump output.

Do you have any idea if I'm doing something wrong, or is there a known bug or limitation?

Tested on C93108TC-FX and C92348GC-X with nxos 10.1.1

Thanks in advance

||| Please rate helpful posts. Thanks! |||
4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

can you check are you using the right interface

#ifconfig Eth1-2

#tcpdump -A -i Eth1-2 (check with this command)

BB

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

How to Ask The Cisco Community for Help

Yes, I'm sure that I used the correct interface. I also compared MAC address displayed via "sh int eth1/2" (IOS) and ifconfig Eth1-2 (bash). It's the correct interface, but all I see is Rapid STP Traffic. 

Might there be some limitation that Tcpdump on Nexus only shows Control-Traffic and maybe routed packets via TCPDump? But no switched traffic? 

||| Please rate helpful posts. Thanks! |||

is this layer2 intercace or layer3 interface, can you post ifconfig eth1-2 to look ?

 

BB

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

How to Ask The Cisco Community for Help

Christopher Hart
Cisco Employee
Cisco Employee

Hi Tony!

Both the Ethanalyzer capture tool and tcpdump/tshark in the Bash shell of NX-OS devices only support capturing control plane traffic. Data plane traffic (both routed and switched) will not be captured by either Ethanalyzer or tcpdump/tshark.

If you are interested in capturing data plane traffic for troubleshooting purposes on Cisco Cloud Scale-based Nexus switches (which both the N9K-C93108TC-FX and N9K-C92348GC-X are), you may be interested in the SPAN-to-CPU or ELAM features.

I hope this helps - thank you!

-Christopher