This will be first time for me setting up BGP with 2 peers, but on two separate networks(locations). Here is a diagram of what I have, and what I am trying to accomplish.(these are dummy ips of coarse)
Is this even possible to do this? Or am I on the right track?
You are on the right track. The main thing you need to ensure if that all of your BGP routers within the same AS are peered with each other. Typically you will assign each router a loopback address (on a bridge in MikroTik-land) and the routers would advertise this into your IGP (OSPF) and then BGP peer with the other routers using the loopback addresses. If you (will) only have two routers you could do this another way, using a direct link between the routers or a VLAN etc.
Not sure where you are going with “be able to set prefered gateway” - if you are getting partial/full routes to your border routers let BGP control where you are routing traffic off of your network.
Give it a go and if you get stuck come back with specific details for help - there are also lots of guides online for this type of setup.
I have over 60 routers on the network between the two. What I was thinking was running iBGP on the same AS between the two routers over the network. Then peering with the upstream and try to watch the load balance over the gateways. Does this sound more like a solid plan? What I was meaning by preferred gateway is…
The default route that RTG has currently is RTC then RTC has a choice ok send traffic to RTB or RTD. BGP will have a full route table on both RTA and RTF. I will have OSPF redistribute BGP internally. So I want RTG’s traffic to go out Upstream 1, thats what I mean by preferred gateway.
Absolutely, yes. When you say that there are 60 routers between the two BGP routers - you will need to make sure the two BGP routers can see each other and neighbours - this may mean a VLAN or tunnel depending on your specific architecture.
Okay. You also want to make sure that if one of the border routers dies that the routers will “failover” to using the remaining router/connectivity.
Don’t leak/distribute the full internet routing table into your IGP unless you want your network to die. Use OSPF for router loopbacks so your routers can find each other, and use BGP between your “internal” routers to distribute your own routes only - then only have the full internet routing table on your two “border” routers.