Community discussions

MikroTik App
 
User avatar
tishri
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Oct 03, 2009 4:13 pm
Location: Philippines
Contact:

BGP Routing Help

Fri Jan 13, 2017 4:14 am

Hi,
I need some assistance with this configuration. I have a network: 1.1.1.1/22, it is connected to a single ISP but using two interfaces. I'm using this AS Number: 65534.
I have problem prepending routes. All the traffic are still going to ISP1 and not doing traffic balancing. Kindly check if there is something wrong with this configuration.
/routing bgp instance
set default as=65534 client-to-client-reflection=no

/routing bgp network
add network=1.1.1.0/22 synchronize=no

/routing bgp peer
add name=toISP2 out-filter=isp2-out remote-address=4.4.4.4 remote-as=4775
add name=toISP1 out-filter=isp1-out remote-address=5.5.5.5 remote-as=4775

/routing filter
add action=accept chain=isp1-out prefix=1.1.1.0/22 set-bgp-prepend=2
add action=discard chain=isp1-out

add action=accept chain=isp2-out prefix=1.1.1.0/22
add action=discard chain=isp2-out
 
Last edited by tishri on Sun Feb 19, 2017 3:07 pm, edited 1 time in total.
 
User avatar
Alferez
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Mon Sep 12, 2016 9:40 am
Location: Seville / Spain
Contact:

Re: BGP Routing Help

Fri Jan 13, 2017 2:35 pm

That's correct, but BGP does not do traffic balancing. If you want to do this you must deceive him.
You have a / 22 you can cut in / 24 and announce one by one and others by another.
Another thing that you should do is to make an internal BGP, so that two bgp have the complete routes even with a jump.

Example
ISP1: announces 103.68.156.0/24 and 103.68.157.0/24
ISP2: announces 103.68.158.0/24 and 103.68.159.0/24

BGP session between ISP1 and ISP2 (ISP1 will receive ISP2 networks and ISP2 will receive ISP1 networks)
BGP session between ISP1 and Globe (will announce 103.68.156.0/24 and 103.68.157.0/24 as own and 103.68.158.0/24 and 103.68.159.0/24 with a jump)
BGP session between ISP2 and Globe (will announce 103.68.158.0/24 and 103.68.159.0/24 as own and 103.68.156.0/24 and 103.68.157.0/24 with a jump)

First of all you should ask to Gobal if they announce the ranges of yours that have defined although they are cut, since there are operators that only announce the ranges of yours as they are defined in Ripe)
 
User avatar
hknet
Member Candidate
Member Candidate
Posts: 128
Joined: Sun Jul 17, 2016 6:05 pm
Location: Vienna, Austria
Contact:

Re: BGP Routing Help

Sat Jan 14, 2017 12:43 am

I'd suggest doing some reading on BGP, two ISPs having the same AS is not two ISPs :)
 
User avatar
tishri
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Oct 03, 2009 4:13 pm
Location: Philippines
Contact:

Re: BGP Routing Help

Sat Jan 14, 2017 6:19 pm

Posting questions and reading answers in forums is already doing some reading. :)
Where did you get the two ISP idea?
I'd suggest doing some reading on BGP, two ISPs having the same AS is not two ISPs :)
 
User avatar
hknet
Member Candidate
Member Candidate
Posts: 128
Joined: Sun Jul 17, 2016 6:05 pm
Location: Vienna, Austria
Contact:

Re: BGP Routing Help

Sat Jan 14, 2017 10:57 pm

Posting questions and reading answers in forums is already doing some reading. :)
Where did you get the two ISP idea?
I'd suggest doing some reading on BGP, two ISPs having the same AS is not two ISPs :)
probably from:
add name=toISP2
add name=toISP1
if you would like to have two links to one ISP and exchange routes via BGP you probably should ask for communities used by your upstream to set routing preferences on their side.
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1742
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: BGP Routing Help

Sun Jan 15, 2017 4:48 pm

Because you're concerned about load sharing inbound traffic, what you really need to do is see if the ISP can enable BGP multipath and then you can remove the prepend and see traffic inbound on both circuits. MikroTik does not have this capability inherently in BGP although ECMP can be achieved by using an IGP underneath like OSPF or static routes.

https://www.juniper.net/documentation/e ... nding.html

http://gns3vault.com/bgp/bgp-multipath-load-balancing/

Who is online

Users browsing this forum: No registered users and 8 guests