[193762] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Juniper Advertise MED on EBGP session.

daemon@ATHENA.MIT.EDU (Keenan Tims)
Wed Feb 22 04:19:27 2017

X-Original-To: nanog@nanog.org
To: nanog@nanog.org
From: Keenan Tims <ktims@stargate.ca>
Date: Tue, 21 Feb 2017 11:10:35 -0800
In-Reply-To: <20170221152620.GA69839@ussenterprise.ufp.org>
Errors-To: nanog-bounces@nanog.org

I also spent a significant amount of time trying to figure out a way to 
do this, and was using communities for a while before I found a 
solution. It turns out that the expression knob lets you use the 
existing metric as an input, and this works to export the iBGP MED, at 
least on my 12.3X48 SRX:

     then {
         metric {
             expression {
                 metric multiplier 1;
             }
         }
     }

Keenan

On 2017-02-21 07:26, Leo Bicknell wrote:
> I tried to pull an old trick out of my playbook this morning and
> failed.  I'd like to advertise BGP Metrics on an EBGP session,
> specifically the existing internal metrics.  I know how to do this
> on a Cisco, but I tried on a Juniper and it seems to be impossible.
>
> I can set a metric in a policy, or put a default metric on the
> session as a whole, or even set it to IGP.  But none of those are
> what I want.  I want the existing metrics advertised as-is, just
> like would be done over an IBGP session.  After an hour of reading
> documentation and trying a few things, I'm starting to think it
> may be impossible on JunOS.
>
> Anyone have a tip or trick?
>


home help back first fref pref prev next nref lref last post