cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
762
Views
0
Helpful
3
Replies

OSPF- Redstribute static routes

tconnorbok
Level 1
Level 1

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

3 Replies 3

John Blakley
VIP Alumni
VIP Alumni

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 ***

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

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.

Review Cisco Networking for a $25 gift card