Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

How to trace the source of a ip packet?

On a router,how can I know the interface which a packet come in(I know the source ip address of the packet)?I use access-list and log to do it,but it's a slow method.Can I use debug or something to do it?

thank you!

5 REPLIES
Community Member

Re: How to trace the source of a ip packet?

Use the command "trace" in router.

Community Member

Re: How to trace the source of a ip packet?

Do you use the flag log-input with your acl ?

See http://www.cisco.com/warp/public/707/22.html#3g

Community Member

Re: How to trace the source of a ip packet?

You can use the 'debug ip packet' command. Please be careful with this command on heavly loaded routers tough.

The best practice would be to create a standard access-list with 'access-list 73 permit 10.0.0.1 0.0.0.0' or whatever ip address /subnet you want to track. Use this list in the debug command, 'debug ip packet 73' to narrow down the debug information....

/M

Community Member

Re: How to trace the source of a ip packet?

You can do a tracert and find the source ip address. Look at your routing tables and find the address that the packet is received on. Then look at you running config to find what port you have assigned to that ip address.

Community Member

Re: How to trace the source of a ip packet?

You can use sh ip route then the network I'd of the packet that your want to trace.... Sh ip route 10.10.10.0

Sent from Cisco Technical Support iPad App

429
Views
0
Helpful
5
Replies
CreatePlease to create content