Community discussions

MikroTik App
 
ppwicho
newbie
Topic Author
Posts: 32
Joined: Fri Nov 23, 2012 11:45 pm

BGP Best Path - Something strange.

Wed Sep 25, 2013 9:36 pm

Hello,

I just finish my first configuration with my second peer and monitoring the best path algorithm in CCR 6.3 I cant understand this:
 @MikroTik] > ip route print detail where dst-address in 173.252.96.0/19
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
41 ADb  dst-address=173.252.96.0/19 gateway=201.163.MM.YY
        gateway-status=201.163.xx.xx recursive via 201.163.yy.xx ether3 distance=20 scope=40 
        target-scope=30 bgp-as-path="YYZZ,3491,3549,32934,32934" bgp-weight=0 bgp-origin=igp 
        received-from=ISP2 

14  Db  dst-address=173.252.96.0/19 gateway=201.174.MM.MM
        gateway-status=201.174.xx.yy recursive via 201.158.xx.yy ether2 distance=20 scope=40 
        target-scope=30 bgp-as-path="NNYY,32934" bgp-weight=5 bgp-origin=igp received-from=ISP1
You can see the bgp-as-path is smaller, also de bgp-weight its higher on the #14.
 /routing bgp peer> print detail 
Flags: X - disabled, E - established 
 0 E name="ISP1" instance=ISP1 remote-address=201.174.YY.XX remote-as=320YY
     tcp-md5-key="" nexthop-choice=default multihop=yes route-reflect=no hold-time=3m ttl=255 
     in-filter=in-isp1 out-filter=out-isp1 address-families=ip default-originate=never 
     remove-private-as=no as-override=no passive=no use-bfd=no 

 1 E name="ISP2" instance=ISP2 remote-address=201.163.YY.XX remote-as=111XX tcp-md5-key="" 
     nexthop-choice=default multihop=yes route-reflect=no hold-time=3m ttl=225 in-filter=in-isp2 
     out-filter=out-isp2 address-families=ip default-originate=never remove-private-as=no 
     as-override=no passive=no use-bfd=no 
Please, someone knows whats its happening? Why the best path algorithm its taking the route with more jumps on the AS_PATH?.

Thanks!!!.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Best Path - Something strange.

Thu Sep 26, 2013 10:39 am

This is because both routes are received from different BGP instances. Best path algorithm is used only when routes are received from the same instance.
 
ppwicho
newbie
Topic Author
Posts: 32
Joined: Fri Nov 23, 2012 11:45 pm

Re: BGP Best Path - Something strange.

Thu Sep 26, 2013 8:04 pm

This is because both routes are received from different BGP instances. Best path algorithm is used only when routes are received from the same instance.
:shock:

Thanks MRZ.

Cheers from MUM Mexico!.
 
fabiandr
just joined
Posts: 24
Joined: Tue Mar 03, 2009 10:28 pm

Re: BGP Best Path - Something strange.

Thu Oct 03, 2013 8:59 pm

This is because both routes are received from different BGP instances. Best path algorithm is used only when routes are received from the same instance.

hello, I have 2 suppliers and would like to configure the bgp so work with fail over, I have my ASN and my IP blocks. Where I can find documentation or some guidance to help me implement it.

Regards
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Best Path - Something strange.

Fri Oct 04, 2013 10:42 am

 
fabiandr
just joined
Posts: 24
Joined: Tue Mar 03, 2009 10:28 pm

Re: BGP Best Path - Something strange.

Fri Oct 04, 2013 2:59 pm

Hello, thank you very much for your reply.

I implemented that way, but only upload traffic goes through one of the ISPs.

Input filters should always discard all?

/routing filter
add chain=isp1-in action=discard
add chain=isp2-in action=discard

Regards
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Best Path - Something strange.

Fri Oct 04, 2013 3:11 pm

for upload you use regular load balancing methods like PCC
 
fabiandr
just joined
Posts: 24
Joined: Tue Mar 03, 2009 10:28 pm

Re: BGP Best Path - Something strange.

Tue Oct 08, 2013 4:01 pm

for upload you use regular load balancing methods like PCC

Thank you very much!

It can make a more advanced implementation of BGP? is there any documentation on how to use the filters for routes?

Who is online

Users browsing this forum: No registered users and 15 guests