07-16-2019 09:32 PM
Facing a PING issue as described:
A router has 2 IPs on its 2 interfaces :(1)192.168.1.1/24 & (2)2.1.1.2/30;
Now when pinging an external IP from the router, which will be the source IP, the router will add in the packet ?
192.168.1.1/24 or 2.1.1.2/30 ?
below I'm attaching the topology I've created
07-16-2019 09:59 PM - edited 07-16-2019 10:00 PM
which exit next hop IP and outgoing interface is based on routing table and CEF. do sh ip cef x.x.x.x [detail] to see specific info
07-17-2019 09:54 AM
Thanks Martin, for the reply.
I will definitely try your's provided solution w.r.t CEF,
However while searching the NET for a solution,I came through a cisco document regarding the issue.
Its stated [am quoting as in the paper]-->
"When a normal ping command is sent from a router, the source address of the ping is the IP address of the interface that the packet uses to exit the router."
It solves my confusion am facing in the topology shared herein.
==Here from RTX PING is unsuccessful to 32.0.0.1,because, default route is via ser 3/0 alias 2.1.1.2.which is taken as the source add. and not permitted by access list;;
BUT,if source address is selected as 192.168.1.1,in extended PING command.,then PING is SUCCESSFUL,as 192.168.1.0/24 is allowed by access list.
--IS THE CONCEPT OK ?
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