cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1265
Views
0
Helpful
3
Replies

OSPF static redistribution

james.hailes
Level 1
Level 1

I'm trying to redistribute a single static route from my router into my ospf process to propagate to other routers in my network without having to advertise all of my static routes. I am using a route-map to do this, but I'm having a problem. When I do a show ip route xx.xx.xx.61, I see that it is being redistributed (as well as being a static route), but I cannot see it on any neighbor routers as a route. Any insight would be greatly appreciated

ip route xx.xx.xx.61 255.255.255.255 xx.xx.xx.34

ip access-list extended REDIST

permit ip host xx.xx.xx.61 any

route-map REDIST permit 10

match ip address REDIST

set metric 10

metric-type type-1

router ospf xx

redistribute static subnets route-map REDIST

3 Replies 3

Edison Ortiz
Hall of Fame
Hall of Fame

Why are you using an extended ACL?

outer ospf 1

log-adjacency-changes

redistribute static subnets route-map STATIC-TO-OSPF

network 192.168.1.1 0.0.0.0 area 0

!

ip forward-protocol nd

ip route 1.1.1.1 255.255.255.255 Null0

ip route 2.2.2.2 255.255.255.255 Null0

ip route 3.3.3.3 255.255.255.255 Null0

no ip http server

no ip http secure-server

!

!

!

access-list 1 permit 1.1.1.1

!

!

!

route-map STATIC-TO-OSPF permit 10

match ip address 1

set metric 10

set metric-type type-1

on the adjancent router:

Router#sh ip route os

     1.0.0.0/32 is subnetted, 1 subnets

O E1    1.1.1.1 [110/11] via 192.168.1.1, 00:00:07, FastEthernet0/0

cadet alain
VIP Alumni
VIP Alumni

Hi james,

I just verified that it works with the extended ACL but it should be redistributed as E2 because you missed the set keyword before the metric-type.

Can you do a sh  run | s router ospf and  sh ip ospf and post output.

Regards.

Alain.

Don't forget to rate helpful posts.

please use the redistribution suggested by Edison because extended ACL it works but you dont need complicate things as it works a bit differently interns of source the network and the destination is considered the source of the route

however simple standard ACL will match the source route with no issues as per the example provided by Edison

HTH