In article <>,
David Hill <> wrote:
> As you said above:
> Unless you enable "bgp always-compare-med", metric is ignored when
> comparing paths that come from different remote ASes.
>
> I do not have "bgp always-compare-med" enabled. So if the number of AS
> hops are the same down two different uplinks/different remote ASes, then
> how was the following route chosen as best?
>
> 1239 3561
> ...Sprint
> Origin IGP, metric 26, localpref 100, weight 1000, valid,
> external, best
> 6347 3561
> ...Savvis
> Origin IGP, localpref 100, weight 1000, valid, external
>
> I do not set the metric. So I am assuming Sprint sends us MED's, Savvis
> doesn't. If the path _is_ chosen because Sprint sent us a metric of 26
> and Savvis sends us nothing (so metric is 0), should we have Savvis send
> us MEDs too?
It doesn't matter -- as I said in the sentence you quoted, the metric is
ignored. BTW, if metrics were being compared, Savvis would have won,
since the lowest metric is best (it's assumed to be a distance of some
kind).
If the weight, path length, localpref, and origin are the same, Cisco
uses the age of the path as the deciding factor. So it's probably using
the Sprint path because it learned it earlier.
Before Cisco added this to their criteria, they used the neighbor ID
(which is usually its IP address), always preferring the one with the
lowest ID.
If you want to prefer Savvis over Sprint when the path lengths are the
same, you can pad the AS path of the Sprint routes with a route-map.
--
Barry Margolin,
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***