Community discussions

MikroTik App
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Wed May 06, 2009 8:00 pm

Seperate costs for OSPF external redistributed networks

Thu Dec 15, 2011 7:55 pm

As far as I can tell, it's impossible to set costs on external routes injected into a OSPF network by a ASBR. All external routes of a given type that are redistributed (connected, static, other ospf, bgp, rip) are only able to have a global cost set on an ospf instance level. In addition, I can't find any way to use a /routing filter to rewrite the ospf cost on egress from the router of matching network prefixes.

Is the above correct, or is there a way to have a router redistribute arbitrary routes (say, redistributing static) where one route will be redistributed with cost 10 and one will be redistributed with cost 50?

Edit: to clarify, I'm looking for something along the lines of:
router ospf 1
 redistribute connected subnets route-map control-conn
access-list 1 permit
route-map control-conn permit 10
 match ip address 1
 set metric 50
route-map control-conn permit 20
 set metric 10
Where all connected subnets are redistributed at a cost of 10 except, which is redistributed with a cost of 50.
User avatar
MikroTik Support
MikroTik Support
Posts: 6195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia

Re: Seperate costs for OSPF external redistributed networks

Fri Dec 16, 2011 10:30 am

In current routing filter implementation route costs can't be changed.
just joined
Posts: 13
Joined: Fri Mar 30, 2012 3:45 pm

Re: Seperate costs for OSPF external redistributed networks

Mon May 28, 2012 10:09 am


Is this planned to be corrected in future RouterOS releases?


Who is online

Users browsing this forum: anav and 8 guests