I have three routers (RouterA, RouterB and RouterC) connected to the same LAN.
RouterA : 10.1.1.1/24
RouterB : 10.1.1.2/24
RouterC : 10.1.1.3/24
Router A is not running OSPF, but RouterB and RouterC are in the same ospf area 0. A static route is inserted into RouterB with the RouterA as the next hop gateway:
ip route 10.2.2.0 255.255.255.0 10.1.1.1
router ospf 1
redistribute static subnets
When this static route is advertised to RouterC via the redistribute command, RouterC's routing table is showing:
10.2.2.0/24 [110/20] via 10.1.1.1(Router A), Vlan1
Shouldn't it be
10.2.2.0/24 [110/20] via 10.1.1.2 (RouterB), Vlan1
instead, since the route was advertised to RouterC by RouterB?