- Newest
- Most votes
- Most comments
Thanks for the answers guys! Thanks for the articles and links as well! Yeah I'm aware that DX-GW is a global construct, and the reason we're moving to another one is simply bureaucratic and legal, what I mean is that it has to be owned by the same account that owns the transit gateway, and not another account as it's currently DX-GW A, that's the only reason...otherwise I would end up both connections/vifs to the current. As far as I know there's no way to move the ownership of DX-GW from one account to another.
See this Knowledge center article which describes your scenario:
https://aws.amazon.com/premiumsupport/knowledge-center/direct-connect-private-transit-interface/
It also explains methods you can use for more predictable routing.
One other point to note is that DXGW is a globally available resource and you really don't need the second DXGW unless you are hitting some sort of limit.
See this from FAQ:
Q: What is an AWS Direct Connect gateway?
An AWS Direct Connect gateway is a grouping of virtual private gateways (VGWs) and private virtual interfaces (VIFs). An AWS Direct Connect gateway is a globally available resource. You can create the AWS Direct Connect gateway in any Region and access it from all other Regions.
First, this is a great diagram depicting your scenario. Second, and to your question, assuming that we are advertising the same prefix (a.a.a.a/bb) from on-premises over all DX and DX_GW's, I would expect that the route selected by Transit Gateway would be the one with the lowest AS_PATH length (DX_GW A in your scenario).
One question here - is there a reason you're using multiple DX_GW's? Direct Connect Gateway is a global construct that's highly resilient, and we can connect multiple Direct Connect Connections to it (effectively reaching the same result I believe you're targeting). You may also consider thinking about how your on-premises locations are choosing to route traffic back to AWS, and for this you could use BGP communities with local preference to perform this. There are some great resources out there that cover active/passive Direct Connect architectures including this one.
Also, this article may be helpful in describing further the use of BGP AS_PATH prepending and BGP community tags to influence route selection. https://aws.amazon.com/premiumsupport/knowledge-center/on-premises-direct-connect-traffic/
Please mark this answer as accepted if helpful!
Relevant content
- Accepted Answerasked 4 years ago
- Accepted Answerasked 5 years ago
- Accepted Answerasked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
This link that i included in my answer should guide you through the route/traffic engineering: https://aws.amazon.com/premiumsupport/knowledge-center/direct-connect-private-transit-interface/