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

Static into OSPF

billmatthews
Level 1
Level 1

I have a router (r1) with an internal interface that faces another router (r2).  r1 participates in OSPF with all our other routers.  r2 can't do OSPF.  So I have some static routes on r1 pointing to r2.

How do I advertise those networks into OSPF?  I probably don't want to redistribute ALL static routes from r1, just the subnets heading to r2.

Thanks

Bill

1 Accepted Solution

Accepted Solutions

Abzal
Level 7
Level 7

Hi,

If I understood you correctly, you want to redistribute some static routes connected on R2?

If so, create an access-list that covers your subnets, match with route-map and then redistribute it.

R1:

ip route 192.168.1.0 255.255.255.0 10.0.1.10

ip access-list standard 10

permit 192.168.1.0 0.0.0.255

route-map redist-static

  match ip address 10

route ospf 1

redistribute static route-map redist-static subnets

UPD. I've tested it on GNS3 and it works as it should.

Hope it will help.

Please rate helpful posts.

Best regards,
Abzal

View solution in original post

3 Replies 3

Abzal
Level 7
Level 7

Hi,

If I understood you correctly, you want to redistribute some static routes connected on R2?

If so, create an access-list that covers your subnets, match with route-map and then redistribute it.

R1:

ip route 192.168.1.0 255.255.255.0 10.0.1.10

ip access-list standard 10

permit 192.168.1.0 0.0.0.255

route-map redist-static

  match ip address 10

route ospf 1

redistribute static route-map redist-static subnets

UPD. I've tested it on GNS3 and it works as it should.

Hope it will help.

Please rate helpful posts.

Best regards,
Abzal

That worked perfectly, thank you!

Glad to hear it! Always welcome.

Abzal

Best regards,
Abzal