cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3003
Views
0
Helpful
5
Replies

How to trace the source of a ip packet?

c.chunxia
Level 1
Level 1

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 5

mariont
Level 1
Level 1

Use the command "trace" in router.

draoul
Level 1
Level 1

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

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

marcusl
Level 1
Level 1

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

usmarine
Level 1
Level 1

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.

jdiazbacolor
Level 1
Level 1

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