cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
443
Views
0
Helpful
1
Replies

Redistribute static route

Ousmanenatha
Level 1
Level 1

How to redistribute a single static subnet into ospf with a custom metric among multiple static routes without altering other.

 

1 Reply 1

Sajid Ali
Level 1
Level 1

Hi Ousmanenatha,

I think you want to redistribute specific static route with modified metric, if so, you need to match static route via prefix list ( it will match static route with exact prefix length) and now set costom metric via router-map. Now call this router map in redistributiion:

#route-map static-to-ospf permit 20
 match ip address prefix-list pfx
 set metric 40000 1000 255 1 1500

RTR(config-router)#redistribute static route-map static-to-ospf

 

Always rate helpfull posts

Sajid Ali Pathan