Route 0 has a shorter AS-PATH. Increase the localpref on your prefered path BGP cares most about as-path length On 16 Jun 2017 10:16 PM, "Matthew Enger" <m.enger@xi.com.au> wrote: [admin@xi_mel_primary] /ip route> print detail where dst-address = 202.52.129.0/24 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 0 ADb dst-address=202.52.129.0/24 gateway=103.85.36.33 gateway-status=103.85.36.33 recursive via 103.51.112.4 vrrp1 distance=200 scope=40 target-scope=30 bgp-as-path="7490,55575" bgp-local-pref=100 bgp-prepend=1 bgp-origin=igp bgp-communities=7490:2,58941:0,58941:1001 bgp-ext-communities="RT:58941:0,RT:58941:1001" received-from=xi_syd_primary 1 Db dst-address=202.52.129.0/24 gateway=218.100.78.11 gateway-status=218.100.78.11 reachable via Vic-IX-Traffic distance=20 scope=40 target-scope=10 bgp-as-path="4826,7490,55575" bgp-med=0 bgp-origin=igp bgp-communities=4739:999,4826:1000,4826:5203,4826:7000,4826: 52034,7490:2,10084:2513 received-from=VIC-IX-IPv4-1 2 Db dst-address=202.52.129.0/24 gateway=218.100.78.11 gateway-status=218.100.78.11 reachable via Vic-IX-Traffic distance=20 scope=40 target-scope=10 bgp-as-path="4826,7490,55575" bgp-med=0 bgp-origin=igp bgp-communities=4739:999,4826:1000,4826:5203,4826:7000,4826: 52034,7490:2,10084:2513 received-from=VIC-IX-IPv4-2 route 0 is coming from ibgp from our Sydney router, 1 and 2 are off bgp directly connected. Matthew Enger | Managing Director PO Box 3279, The Pines, Victoria, 3109 T 1300 789 299 D 03 9909 3104 M 0406 532 792 F 03 8611 7946 m.enger@xi.com.au | www.xi.com.au This email message and any attachments are the property of X Integration. The contents of this email are copyright and may also be confidential and/or legally privileged. They are intended solely for the addressee and it is not intended that either confidentiality or privilege be waived or lost by mistaken delivery to you. Please notify us immediately and delete this communication if received in error. Consider the environment before printing this email. On 16/6/17, 9:13 pm, "Public on behalf of Mike Everest" < public-bounces@talk.mikrotik.com.au on behalf of mike@duxtel.com> wrote: Yes, normally lowest distance is higher preference. There must be something else in action here - routing mark or smaller subnet etc. What does "/ip route print detail" tell us? Cheers, Mike. > -----Original Message----- > From: Public [mailto:public-bounces@talk.mikrotik.com.au] On Behalf Of > Matthew Enger > Sent: Friday, 16 June 2017 7:34 PM > To: public@talk.mikrotik.com.au > Subject: [MT-AU Public] Route selection > > Hello, > > I have three routes below: > > Dab 202.52.129.0/24 103.85.36.33 recursive via 103.51.112.4 > vrrp 1 200 > Db 202.52.129.0/24 218.100.78.11 reachable Vic-IX-Traffic > 20 > Db 202.52.129.0/24 218.100.78.11 reachable Vic-IX-Traffic > 20 > > > My reading of > https://wiki.mikrotik.com/wiki/Manual:Route_Selection_ Algorithm_in_Route > rOS says that the active route should be the distance of 20, but it is selecting > 200. > > Is this a bug or am I not reading it right? > > Running 6.37.5 if that helps anyone. > > > > > > > Matthew Enger | Managing Director > PO Box 3279, The Pines, Victoria, 3109 > T 1300 789 299 D 03 9909 3104 M 0406 532 792 F 03 8611 7946 > m.enger@xi.com.au | www.xi.com.au > > > > This email message and any attachments are the property of X Integration. > The contents of this email are copyright and may also be confidential and/or > legally privileged. They are intended solely for the addressee and it is not > intended that either confidentiality or privilege be waived or lost by mistaken > delivery to you. Please notify us immediately and delete this communication > if received in error. Consider the environment before printing this email. > _______________________________________________ > Public mailing list > Public@talk.mikrotik.com.au > http://talk.mikrotik.com.au/mailman/listinfo/public_talk. mikrotik.com.au _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au -- Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.http://www.mailguard.com.au/mg Click here to report this message as spam: https://console.mailguard.com.au/ras/1R4IYdIbj6/ 47i0MMLhsz8LlA4Bm6ybHp/2.2 _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au