If you forward a subnet on a router to a static route, and that static route is being learned via OSPF from a device that's a few away, does the destination address of the packet get changed to the static address? Or does it leave it as the original destination address? Here's what I mean:
I got a destination of 10.10.14.129. RouterA has a static route for this subnet that is redistributed through the network via OSPF to RouterB. When the packet comes in destined for 10.10.14.129, the static route in RouterA points to IP address 10.10.100.1.
ip route 10.10.14.129 255.255.255.0 10.10.100.1
10.10.100.1 is learned in RouterA via OSPF from RouterB. 10.10.100.1 is 4 routers away and traces out to a Null0 interface on another router. Doing a trace of 10.10.14.129 there is a loop between RouterA and RouterB as it just keeps bouncing back and forth.
The question I have is this:
When RouterA forwards the packet back to RouterB (per the static route and the route learned via OSPF) does RouterB look at the ORIGINAL destination address (10.10.14.129 - which would explain the loop) or does it change the destination address to the static route destination (10.10.100.1 - which I would think would cause the packets to be dropped and wouldn't result in a loop)? If it looks at the original destination address, how does that work if there is a device a few hops away?
I got a destination of 10.10.14.129. RouterA has a static route for this subnet that is redistributed through the network via OSPF to RouterB. When the packet comes in destined for 10.10.14.129, the static route in RouterA points to IP address 10.10.100.1.
ip route 10.10.14.129 255.255.255.0 10.10.100.1
10.10.100.1 is learned in RouterA via OSPF from RouterB. 10.10.100.1 is 4 routers away and traces out to a Null0 interface on another router. Doing a trace of 10.10.14.129 there is a loop between RouterA and RouterB as it just keeps bouncing back and forth.
The question I have is this:
When RouterA forwards the packet back to RouterB (per the static route and the route learned via OSPF) does RouterB look at the ORIGINAL destination address (10.10.14.129 - which would explain the loop) or does it change the destination address to the static route destination (10.10.100.1 - which I would think would cause the packets to be dropped and wouldn't result in a loop)? If it looks at the original destination address, how does that work if there is a device a few hops away?
