I need help with BGP.
I have simple multihome setup with my two upstream providers, and for now, it works very well.
Problem:
I have /21 prefix that i advertise, i want to split it into 8 /24 blocks, so i can route some IP addresses to ISP1 and other part to ISP2.
Is this possible? i readed very much about BGP on few forums and i didn’t find how to solve this problem, i founded some posts about ‘prepending’ but it’s not very clear to me, either…
A /21 is simply 8 /24 subnets aggregated. As such splitting this to specific providers is simply a matter of bgp filters for the relevant providers.
Setup a BGP session to each provider.
Add all the /24’s to your bgp networks.
Setup filters for the specific /24’s you want to announce to each of the providers.
DONE
Other items to consider
if you are in the RIPE region (as example) you’d have to add route entries for all the /24’s otherwise you’re likely to end up having some of your route announcements dropped by BGP filters on a number of larger providers.
A number of providers in Europe certainly suggest a minimum announce of a /23
By just announcing specific routes to specific providers you don’t have any redundancy - if one provider fails you stop announcing those /24’s and they dissapear off the internet.
A workaround for the last item is to still announce the /21 to both providers. The issue here is that in such a case some upstream networks might still prefer the /21 route rather than the /24’s – it should not happen but I’ve seen it a couple of times.
I know this is quite old topic but i need your help once again
Few days ago i realized that my download traffic is going through ISP2 and upload through ISP1, routing filters doesn’t works like earlier too!
Let’s say, when i want to assign one of my /24 blocks to ISP1 not ISP2 it doesn’t work or upload traffic is going through ISP1 and downlad through ISP2…
I didn’t changed anything, and my upstream providers didn’t change anything too… i’m lost for now, i exported routing filters below.
(There is Multihop option its need to set yes if there is indirect connection between you router and remote bgp router , its mean there some router between your router and the router you can to make bgp session with it..)
..
..
..