cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
422
Views
0
Helpful
3
Replies

Packet In/Out on Interface

wajnee123
Level 1
Level 1

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

3 Replies 3

lgijssel
Level 9
Level 9

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

Can I use ip accounting for this purpose?

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