Community discussions

MikroTik App
 
User avatar
honeyfairy
newbie
Topic Author
Posts: 35
Joined: Sat Nov 21, 2020 1:25 am
Contact:

Route subnet to specific upstream provider

Mon Jun 27, 2022 4:51 am

I have two upstream providers, Orange and Telia. Half of my users should go through Orange, and the other half through Telia.
Depending on what I request, both providers can give me a full table or a default route.
Here is a diagram:
bgptraffic.PNG
For my smaller network, I would have created a mangle rule to mark routing for 100.100.101.0/24 then in IP>Routes I would set the default gateway for that routing mark. However, I don't think this is a feasible solution for a full routing table :)
If this can be accomplished with BGP, please guide me in the right direction.
You do not have the required permissions to view the files attached to this post.
 
User avatar
netzwerghh
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Aug 07, 2011 4:23 pm
Location: Hamburg, DE
Contact:

Re: Route subnet to specific upstream provider

Wed Jun 29, 2022 4:11 pm

Hi,

what are you announcing to the two providers? Do you have more than one public /24? The only way to control ingress traffic via BGP over two providers in your case is to have at least 2 /24 prefixes. You would announce one to Orange and the other to Telia. You can for redundancy also announce the other prefix to each provider but do multipe path prependings to make this a worse route.
For egress traffic if you want to split traffic by your two internal subnets you won't need the full tables. This is overkill (ca. 900.000 routes per full table). As you want to route all traffic from network A over Orange and all from B over Telia you should stick to the mangle way you outlined in your post. But be sure to also control ingress traffic. Just because you sent the initial packet over Telia won't make the internet send the response back over Telia.
If you do not have a public routeable prefix you won't at all benefit from getting the full table. As you are ony allowed to announce PA adress space to the corresponding provider you got those adresses from. That way all replies will of course reach you via that provider the prefix belongs to. And there will be no redundancy for those IP adresses.

Cheers
Dennis

Who is online

Users browsing this forum: No registered users and 13 guests