How to View Transmit/Receive Packets for a Particular IP on a Switch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Catalyst 9000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 07:30 AM - edited 09-15-2022 09:08 AM
Some later Cisco switches support embedded packet capture.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 09:09 AM
Try my referenced link now (somehow, I missed the last character when I copied and pasted it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 11:50 AM
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 11:53 AM
Thanks so much I'll be trying this out soon!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 11:52 AM
This is helpful! Thank you!
