Community discussions

MikroTik App
 
Amela
just joined
Topic Author
Posts: 5
Joined: Wed May 19, 2021 10:17 pm

BGP unequal cost Link

Wed May 19, 2021 10:31 pm

I have 3 Link from diferents isp-s with diferent capacity of bandwidth,and i get the public ip from Ripe with /24 prefix i configured the BGP but i cant balance the bandwidth.The bandwidth for ISP1 8G ISP2 7.5G ISP3 3G.any example please.
 
Amela
just joined
Topic Author
Posts: 5
Joined: Wed May 19, 2021 10:17 pm

Re: BGP unequal cost Link

Fri May 21, 2021 10:26 am

can anyone help with this?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP unequal cost Link

Fri May 21, 2021 10:49 am

You want to balance upstream or downstream traffic?
 
Amela
just joined
Topic Author
Posts: 5
Joined: Wed May 19, 2021 10:17 pm

Re: BGP unequal cost Link

Fri May 21, 2021 12:01 pm

i wan to balance both downstream and upstream
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP unequal cost Link

Fri May 21, 2021 1:23 pm

You cannot balance downstream with single /24 prefix, because now minimum prefix that ISPs accept is /24

For upstream you can use several features policy routing, or if you want to use BGP then play with routing filters and adjust nexthops (for ECMP), or set weights or local prefs to prefer specific network blocks over specific links (will work if you receive full routing table).

But special care must be taken (with firewall and rp-filters) due to asymmetric routing
 
Amela
just joined
Topic Author
Posts: 5
Joined: Wed May 19, 2021 10:17 pm

Re: BGP unequal cost Link

Fri May 21, 2021 2:14 pm

is it possible to give me a rough example of how to configure it?
 
Amela
just joined
Topic Author
Posts: 5
Joined: Wed May 19, 2021 10:17 pm

Re: BGP unequal cost Link

Sat May 22, 2021 12:52 pm

Can i do this with to balance bandwidth with 3 routers ?
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: BGP unequal cost Link

Thu May 27, 2021 3:51 pm

There are two ways to help with inbound traffic when you only have a /24

1. Use BGP communities with your upstream providers if they support it to adjust the local pref of your prefix within the peer ASN
2. Deploy IPv6 - use communities and adjust prefix advertisements (once you have IPv6, large sections of traffic will move to IPv6)

Here is an example of community usage:

Image

Who is online

Users browsing this forum: saktie and 16 guests