cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1545
Views
15
Helpful
16
Replies

Redistribute Static Routes into OSPF

akhran1974
Level 1
Level 1

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:

RouterB#

!

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?

Thanks !

16 Replies 16

Hi,

You are totally confusing.

One thing is sure, if there is no intra-area or inter-are path to the FA (here 10.1.1.1), then that external LSA will be ignored.

But you are saying, you have enabled OSPF on 10.1.1.2 interface in RouterB, in that case, RouterB should have advertised 10.1.1.0 subnet to other routers, in that case RouterC should see 10.1.1.1 through OSPF.

I think you have missed something.

Kindly describe about your current topology and ask questions.

Thanks,

Vijaybabu

Hi Vijaybabu,

The topology is still the same as mentioned previously:

RouterA

|.1

|------------------------LAN1(10.1.1.0/24)

|.2 |.3

RouterB RouterC

|.1 |.2

-------------------------LAN2(192.168.1.0/24)

|.3

RouterD

10.1.1.0/24 is a connected interface on RouterC. So if I understand correctly, the route to 10.2.2.0/24 was dropped in RouterC after enabling ospf on 10.1.1.2 interface on RouterB because in RouterC, the route to 10.1.1.0/24 is not learnt through OSPF and/or OSPF is not running on the 10.1.1.3 interface. Correct me if I'm wrong...

Thanks !

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card