11-06-2001 01:25 AM - edited 03-01-2019 07:15 PM
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!
11-06-2001 02:40 AM
Use the command "trace" in router.
11-06-2001 04:09 AM
Do you use the flag log-input with your acl ?
11-06-2001 05:37 AM
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
11-07-2001 07:39 AM
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.
07-31-2013 07:06 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide