MPLS 2 ISP's and BGP with Metric

Unanswered Question
May 28th, 2008
User Badges:

I am looking for some documentation for BGP and using Metric. What I want to do is have my network traffic directed to my branch offices over PE1 and not PE2 at the moment.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
cpubob Wed, 05/28/2008 - 08:16
User Badges:
  • Bronze, 100 points or more

Please see this:


http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094431.shtml#bestpath


Although you can certainly manipulate the route's metric to influence the routing decision, BGP does provide other, more preferred methods for route control. For instance, metric, or MED, is actually the 6th value examined in the routing decision process. Its far more common to manipulate the weight or local preference to influence a routing decision since its close to the top and will have little or no chance of being overridden by something higher in the decision process.


Also, just wanted to make sure you understood that BGP does NOT use metric the same way a IGP, like OSPF, does. For bgp, in the traditional sense, the metric is merely a differentiator when you have two direct connections (as in AS connections) to a remote AS.


As for an example, if it were me, I would do something like the following:



ip prefix-list branchx permit 10.x.x.x/24

!

route-map local-pref permit 10

match ip add prefix branchx

set local-pref 200

route-map local-pref permit 20

!

router bgp yyyyy

neighbor zz.zz.zz.zz route-map local-pref in

!


Alternativly, you could also just set the weight, it really depends on your topology, your downstream neighbors, if any, and how many routers your trying to manipulate.


HTH


GL


-Rob

Actions

This Discussion