cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1291
Views
5
Helpful
8
Replies
Beginner

Debug Packet !

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 ??

8 REPLIES 8
Enthusiast

Re: Debug Packet !

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#wp4599

Beginner

Re: Debug Packet !

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

Enthusiast

Re: Debug Packet !

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

Beginner

Re: Debug Packet !

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

Enthusiast

Re: Debug Packet !

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#wp1089791

Usage Guidelines

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

Highlighted
Beginner

Re: Debug Packet !

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?

Advisor

Re: Debug Packet !

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

Enthusiast

Re: Debug Packet !

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.

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards