cancel
Showing results for 
Search instead for 
Did you mean: 

BGP AS-PATH preferred route

BGP AS-PATH preferred route

Alexandr_P
Valued Contributor
Hello, all!

Does anybody faced with issue, BGP routes with the same Weight and LPref and Summit is choose preferred route with larger AS-PATH?
EXOS 15.6.2

For example:
X670G2 # sh bgp
routes detail network
123.123.123.0/24

Routes:
Route: 123.123.123.0/24, Peer 1.2.3.4
Origin IGP, Next-Hop 1.2.3.4, LPref 500, MED 0
Weight 3000,
As-PATH: ( 45002 )
Community: 32808:1 32808:2 32808:3


Route: 123.123.123.0/24, Peer 5.6.7.8, BEST, Active
Origin IGP, Next-Hop 5.6.7.8, LPref 500, MED 0
Weight 3000,
As-PATH: ( 45001 45002 )

Community: 32808:1 32808:2 32808:3

Thank you!
5 REPLIES 5

Necheporenko__N
Extreme Employee
Hello Alexandr,

Inside the BGP onfederation, the best path selection cannot be calculated with AS PATH length attribute. This can be taken care only by adding addition configuration like Local preference or Weight.
In your output shortest patch is selected based on Lowest Next hop IP address.

Best Regards,
Nikolay
GTM-P2G8KFN