Debug Packet !

Unanswered Question
Mar 6th, 2009
User Badges:

Hi, i have been trying to use debug Packet command on cli ( with terminal monitor on). But i am not able to see any result ? why is that so. I can see various other debug results but i couldnt see a single line shown after debug packet. Is this command not working anymore or is there any other issue ??

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
adamclarkuk_2 Fri, 03/06/2009 - 02:10
User Badges:
  • Silver, 250 points or more

Hi


This command does work but will only show packets that are process switch and not cef switched. If you ping an IP address on the router and debug for that, you will see output.


[Correction]

Adding a log entry to line on the ACL attached to the interface will force the packet to be punted to the CPU and also show up in the output.



hxxp://www.cisco.com/en/US/docs/ios/12_0/debug/command/reference/dipdrp.html#wp...

illusion_rox Fri, 03/06/2009 - 02:40
User Badges:

I have disabled cef switching but still i am not able to see any output :(

adamclarkuk_2 Fri, 03/06/2009 - 02:44
User Badges:
  • Silver, 250 points or more

Added an ACL to your interface with a log against the entry you want to see


example below :-


access-list 100 permit ip host 1.1.1.1 host 2.2.2.2 log

access-list 100 permit ip host 2.2.2.2 host 1.1.1.1 log

access-list 100 permit ip any any


interface FastEthernet0/0

ip address 192.168.1.1 255.255.255.252

ip access-group 101 in


Router#debug ip packet 100



illusion_rox Fri, 03/06/2009 - 02:49
User Badges:

Dear Adam, i am focusing deb packet command not deb ip packet :(

adamclarkuk_2 Fri, 03/06/2009 - 05:10
User Badges:
  • Silver, 250 points or more

This command also only shows packets that have been process switched, so the ACL attached to the interface with a log solution I suggested should also work.


From cisco.com

hxxp://www.cisco.com/en/US/docs/ios/12_3/debug/command/reference/dbg_p1g.html#w...

Usage Guidelines


The debug packet command displays all process-level packets for both outbound and inbound packets.

cnscisco Sat, 08/10/2013 - 00:38
User Badges:

Adam,

Just wanted to say thanks much. Adding the access list (with the log option) on the appropriate interface, did it for me. It produced the results I wanted. Before I was not able to see the expected output from packets to  the far end device, after the acl I could see activity to the destinations of interest.


Where would we be without this forum and others like it?

glen.grant Fri, 03/06/2009 - 07:31
User Badges:
  • Purple, 4500 points or more

On the interface you are trying to debug do a "no ip route-cache " .

adamclarkuk_2 Fri, 03/06/2009 - 07:41
User Badges:
  • Silver, 250 points or more

Hi Glen


Not sure how that will help as the log entry forces the packet to be process switched as can be observed with the command


show interface x/x stats


I have not been able to get any output from debug packet but the command 'debug ip packet detail' should give you all the info you need.



Actions

This Discussion