08-06-2012 02:43 PM - edited 03-07-2019 08:10 AM
I have two sites one is our main site and the other is our backup site. Both sites have static routes in the core switches and some are duplicate address on both cores just pointing to different firewalls if our main site lost connectivity. I would like to take these static routes and redistribute them into OSPF, but I needs to have some statics display a different metric. What is the best way to do this? I thought about a route map with an access list listing the static addresses that I need set to metric 200 but i haven't been able to get it to work. Here is what I have so far, this is just on a simulator. Any help would be appreciated....Thanks
router ospf 1
restribute static subnets route-map STATIC_INTO_OSPF
network 10.1.0.0 0.0.0.255 area 1.0.0.0
network 10.1.1.0 0.0.0.255 area 1.0.0.0
ip route 152.187.22.38 255.255.255.255 10.1.0.2 200 tag 1000
ip route 162.7.32.0 255.255.255.224 10.1.0.2 200 tag 1000
ip route 162.7.40.0 255.255.255.224 10.1.0.2 tag 1000
ip access-list standard STATIC_ROUTES
permit 152.187.22.38
permit 162.7.32.0 0.0.0.31
route-map STATIC_INTO_OSPF permit 5
match ip address STATIC_ROUTES
set metric 200
08-06-2012 06:36 PM
First of all, the routes that you're redistributing have to be in the routing table. The static routes that you have that you're trying to redistribute have an AD of 200. Is there another routing protocol that's running on this router that could have a lower ad? The config looks fine to me, which is why I'm wondering if you have a route that's keeping the statics from getting in the table.
HTH,
John
08-07-2012 05:06 AM
Hi Guys,
i was thinking that possibly this route-map should not be that complex. The static routes have a tag..... why don't you use it?
The easier , the better
Alessio
08-07-2012 07:27 AM
I have tried adding them with the tags I have assigned but I still get the same results. I can't seem to get find a way to display the different metrics.
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