11-16-2012 09:28 AM - edited 03-04-2019 06:09 PM
I have a router (r1) with an internal interface that faces another router (r2). r1 participates in OSPF with all our other routers. r2 can't do OSPF. So I have some static routes on r1 pointing to r2.
How do I advertise those networks into OSPF? I probably don't want to redistribute ALL static routes from r1, just the subnets heading to r2.
Thanks
Bill
Solved! Go to Solution.
11-16-2012 09:39 AM
Hi,
If I understood you correctly, you want to redistribute some static routes connected on R2?
If so, create an access-list that covers your subnets, match with route-map and then redistribute it.
R1:
ip route 192.168.1.0 255.255.255.0 10.0.1.10
ip access-list standard 10
permit 192.168.1.0 0.0.0.255
route-map redist-static
match ip address 10
route ospf 1
redistribute static route-map redist-static subnets
UPD. I've tested it on GNS3 and it works as it should.
Hope it will help.
Please rate helpful posts.
11-16-2012 09:39 AM
Hi,
If I understood you correctly, you want to redistribute some static routes connected on R2?
If so, create an access-list that covers your subnets, match with route-map and then redistribute it.
R1:
ip route 192.168.1.0 255.255.255.0 10.0.1.10
ip access-list standard 10
permit 192.168.1.0 0.0.0.255
route-map redist-static
match ip address 10
route ospf 1
redistribute static route-map redist-static subnets
UPD. I've tested it on GNS3 and it works as it should.
Hope it will help.
Please rate helpful posts.
11-16-2012 10:36 AM
That worked perfectly, thank you!
11-16-2012 10:53 AM
Glad to hear it! Always welcome.
Abzal
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