Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

OSPF- Redstribute static routes

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

Everyone's tags (3)
3 REPLIES

OSPF- Redstribute static routes

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

HTH, John *** Please rate all useful posts ***

OSPF- Redstribute static routes

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

New Member

OSPF- Redstribute static routes

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.

289
Views
0
Helpful
3
Replies
CreatePlease to create content