Cisco – Monitoring incoming/outgoing packets on a Cisco switch

ciscoiosswitch

I would like to monitor (i.e. have the switch print out packets) incoming and/or outgoing packets on a Cisco switchport.

For instance, I'd like to be able to tell it: Print to the log all packets arriving on Gi0/1.

Something tells me this should be easy, but I can't find any way to do so!

I am aware that I could set up a mirror port, however for this particular scenario that won't be useful.

Best Answer

debug packet interface gi0/1

http://www.cisco.com/en/US/docs/ios/12_2/debug/command/reference/dbfmodem.html#wp1060637

Important Note:

Because the debug packet command generates a substantial amount of output for every packet processed, use it only when traffic on the network is low, so other activity on the system is not adversely affected.

Related Topic