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 188.8.131.52
network 10.1.1.0 0.0.0.255 area 184.108.40.206
ip route 220.127.116.11 255.255.255.255 10.1.0.2 200 tag 1000
ip route 18.104.22.168 255.255.255.224 10.1.0.2 200 tag 1000
ip route 22.214.171.124 255.255.255.224 10.1.0.2 tag 1000
ip access-list standard STATIC_ROUTES
permit 126.96.36.199 0.0.0.31
route-map STATIC_INTO_OSPF permit 5
match ip address STATIC_ROUTES
set metric 200
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.
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
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.