11-13-2004 12:49 AM - edited 03-02-2019 07:56 PM
How can I see packet in/out on any interface of router in real time?
Like Packet Source, Destination, Packet type as we see in any packet sniffer softwares.
I have 3660 Router with IOS Version 12.2(2)T
11-13-2004 01:22 AM
You can use "debug ip packet" for this. Beware, this type of debugging is very heavy on the router. You should preferrably use an access-list to limit the amount of debug output: deb ip pack
This debugging will only work when the packets are process-switched. To achieve this, disable fast switching by using the interface command: no ip route-cache. Do not forget to restore fast switching once you have finished debugging.
Regards,
Leo
11-14-2004 10:12 PM
Can I use ip accounting for this purpose?
11-15-2004 12:25 AM
IP accounting will only give you a total number of packets and octets between pairs of IP addresses, and optionally can also tell you whether they were dnied by an access list, or which interface they came in on.
It will not give you a realtime trace. That is what debug ip packet is for.
Kevin Dorrell
Luxembourg
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