09-15-2022 07:25 AM
Hello! I am looking for a command that would allow me to view traffic that goes to or coming from a specific IP on a switch.
Scenario: Ping does not work (it is blocked), but I need to see if traffic to a particular IP is working. Is there a show and/or debug command that would show me the traffic to/from a particular IP on a Catalyst 9300 switch?
OR
Is there way to see what traffic is on a particular Switchport (outside of doing a wireshark capture on that port). In other words, is there a way to take a quick glance? Thank you
09-15-2022 07:30 AM - edited 09-15-2022 09:08 AM
Some later Cisco switches support embedded packet capture.
09-15-2022 07:59 AM
I'll take a look into this feature. The link doesn't work but I will research this. Is there a way to tell what devices this works on specifically?
09-15-2022 09:09 AM
Try my referenced link now (somehow, I missed the last character when I copied and pasted it).
09-15-2022 11:50 AM
Thank you!
09-15-2022 07:31 AM
I am out of home now, but I have fast answer
Go and make ping with 100 repeat
Do
Show ip interface
Chech input packet count
This first and easy counter you can check.
09-15-2022 07:54 AM
Thank you! In this case I'd like to see the specifics of the packets not just how many packets have transpired. I'd like to be able to see what the packet source and destination IPs and ports are, if possible.
09-15-2022 08:10 AM
https://www.ciscolive.com/c/dam/r/ciscolive/us/docs/2019/pdf/BRKARC-3190.pdf
use capture BUT friend disable capture after finish it effect the CPU.
09-15-2022 11:53 AM
Thanks so much I'll be trying this out soon!
09-15-2022 08:19 AM
Hi there,
You could create a simple ACL (permit tcp/udp any any log) and apply it to the interface. The log statement will ensure all flows are recorded in your logs. You may need to adjust your log level to ensure they appear.
cheers,
Seb.
09-15-2022 11:52 AM
This is helpful! Thank you!
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