cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
5644
Views
15
Helpful
5
Replies

OSPF and redistributing CERTAIN static routes

Chris Schroeder
Level 1
Level 1

Current setup:

A) Only one routing protocol is in use: OSPF 100, area 0

B) There are three "categories" of static routes on the router.

1) The first set is defined by a route map and redistributed into OSPF 100 via the redistribute static via route map command. These particular static routes are for a specific customer.
2) The second set of static routes I do not want redistributed into OSPF at all.
3) The third set of static routes I DO want redistributed into OSPF, but for technical/management reasons I do not want to alter the first route-map command (it's dedicated to a customer's subnets)

 

Questions:

A) Can I use more than one redistribute static via route-map command per single OSPF process? I don't think so because when I tried it, it blew the first one away.

B) How do I get that "third set" of static routes defined on the router redistributed into OSPF 100 area 0 if I do not want to alter the first redistribute static via route-map command AND I do not want to advertise ALL static routes on this router in OSPF?

2 Accepted Solutions

Accepted Solutions

Hello

 You can just add an additional stanza to the existing one as a catch all and/or reference another acl in it.

This way is you want to remove additional statics you just have to remove either the acl within in it or the whole stanza 20

If you want to add to it - Then either just amend the exiting static or if you are not referencing any acl they will automatically get added.

 

 

 

Example:
route-map original permit 10
match ip address 1

 

route-map original permit 20
match ip address 2 
<--optional for just other specific statics or no match statement to include all other statics

 

 

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

Got it working, gang ... thanks for the tips - I appreciate it!

View solution in original post

5 Replies 5

Chris Schroeder
Level 1
Level 1
Actually I tried adding the static route in question to the customer's route-map and associated ip access-list (which I didn't want to do but it was a test) and it STILL doesn't advertise in OSPF. The network I'm trying to advertise in ospf from a static route is 10.170.41.0/24

You can try this :

ip prefix-list abcd seq 10 permit 10.170.41.0/24
router ospf 100
redistribute static route-map ABCD

route-map ABCD permit 10
match ip address prefix-list abcd

Please note syntax may not be accurate.
I prefer to do all changes only in maintenance windows :)

You need to add the subnet keyword as follow:

 

redistribute static route-map ABCD subnet

 

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Hello

 You can just add an additional stanza to the existing one as a catch all and/or reference another acl in it.

This way is you want to remove additional statics you just have to remove either the acl within in it or the whole stanza 20

If you want to add to it - Then either just amend the exiting static or if you are not referencing any acl they will automatically get added.

 

 

 

Example:
route-map original permit 10
match ip address 1

 

route-map original permit 20
match ip address 2 
<--optional for just other specific statics or no match statement to include all other statics

 

 

 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Got it working, gang ... thanks for the tips - I appreciate it!