External OSPF route cost metric

Ondrej Zajicek santiago at crfreenet.org
Fri Jul 17 22:46:50 CEST 2015


On Sat, Jul 11, 2015 at 02:58:02PM -0400, Jigar Mehta wrote:
> Hi,
> 
> Is there a way we can advertise external OSPF routes with the actual route
> cost instead of ospf.metric1 or ospf.metric2.
> For eg :
> Route to 5.5.5.0/24 is via protocol1 with cost of 5
> Route to 4.4.4.0/24 is via protocol1 with cost of 6
> but ospf advertises this external route with metric of 10000. (I know i can
> change the 10000 in the config) but both the routes will be advertised with
> the same cost instead of 5 or 6.
> I have assigned the protocol1 with highest preference but need to also
> advertise with the actual cost.
> Is it possible to use the filter and replace the ospf metric with the above
> route metric ?

Hi

Not sure what you mean by 'actual route cost', but OSPF metric for exported
external routes could be changed by setting ospf_metric1 or ospf_metric2
in OSPF export filter.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150717/cd2860eb/attachment.asc>


More information about the Bird-users mailing list