Community discussions

MikroTik App
 
jmginer
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Tue Dec 11, 2012 4:56 am
Contact:

MED When same AS_PATH

Wed Aug 01, 2018 4:10 pm

Hello!

for the same route destination we have the same AS_PATH (2 hops).
So, we're setting a lower MED value to prefer the left transit instead the right one.
But, seems is not taking affect as the router is prefering the right route that we set with higher MED.
There is not any differente setting a lower o highest MED value. Nothing change.

Image

Any idea how we can prefer the left route?

Thanks!
 
jmginer
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Tue Dec 11, 2012 4:56 am
Contact:

Re: MED When same AS_PATH

Wed Aug 01, 2018 4:35 pm

Ok, I think the correct way is using the WEIGHT instead MED.

High weight to prefer a route.
 
jmginer
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Tue Dec 11, 2012 4:56 am
Contact:

Re: MED When same AS_PATH

Wed Aug 01, 2018 4:43 pm

mmm, the problem now is that setting a WEIGHT value, the AS_PATH has not priority.

Image

There is possible to give the lower AS_PATH most priority that the WEIGHT value?

What I want is to use one transit only in case of the same AS_PATH (hops). but if one route as lower AS_PATH hops, then use it.

Any idea?

Thanks!!
 
Muqatil
Trainer
Trainer
Posts: 573
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: MED When same AS_PATH

Wed Aug 01, 2018 5:47 pm

Reeeeeally stupid question, but worth asking: is the nexthop reachable on both routes? (target scope within scope?)
 
jmginer
Member Candidate
Member Candidate
Topic Author
Posts: 155
Joined: Tue Dec 11, 2012 4:56 am
Contact:

Re: MED When same AS_PATH

Wed Aug 01, 2018 6:01 pm

Reeeeeally stupid question, but worth asking: is the nexthop reachable on both routes? (target scope within scope?)
Yes, note that the route destination of the image of the firt post in not the same as the second. Are different prefixes ;)
 
Muqatil
Trainer
Trainer
Posts: 573
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: MED When same AS_PATH

Thu Aug 02, 2018 12:45 pm

Yes, I noticed that, but both prefixes don't answer my question. Can I see the General tab of these?
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: MED When same AS_PATH

Thu Aug 02, 2018 11:10 pm

If you're trying to influence traffic out of an AS (which is what you appear to be doing) then I would start with marking localpref higher on the route you want to be preferred. localpref, unlike weight will be learned by every router in the AS (unlike weight)
 
bbs2web
Member Candidate
Member Candidate
Posts: 232
Joined: Sun Apr 22, 2012 6:25 pm
Location: Johannesburg, South Africa
Contact:

Re: MED When same AS_PATH

Tue Sep 18, 2018 1:35 am

MED only applies when left most AS is common. It's primarily used to influence which link a neighbor uses when there are redundantly uplinks.

To influence a remote network you would need to agree on them building filters that change local preference using something that you can attach to a route which is inert everywhere else, precisely what BGP communities were designed for...

Hello!

for the same route destination we have the same AS_PATH (2 hops).

Who is online

Users browsing this forum: No registered users and 54 guests