[j-nsp] Set MED in BGP to IGP metric for iBGP NEXT-HOP router

Jeff Wheeler jsw at inconcepts.biz
Wed Feb 22 20:29:54 EST 2012

On Tue, Feb 21, 2012 at 7:25 PM, Paul Zugnoni <paul.zugnoni at onlive.com> wrote:
> I'm looking to set the MED on routes exported to eBGP peers to reflect the IGP metric to the BGP protocol next-hop

I did not see any replies to your question.  Apologies if you already
figured this out yourself.

set metric igp already does what you describe.  You will also want to
read the documentation on `set metric minimum-igp` which is often what
folks really want.

Keep in mind that the MED will be set to the IGP metric to the
protocol next-hop, NOT "the address of the router it learned the route
from."  You used both phrasings in your post.  So for example, if you
have a route reflector in your AS, a route may be learned from an RR
but the metric will obviously not be based on the path to the RR, but
the path to the next-hop.

Jeff S Wheeler <jsw at inconcepts.biz>
Sr Network Operator  /  Innovative Network Concepts

More information about the juniper-nsp mailing list