Integration of Direct Gateway, VPN TGW Attachments, and VPCs in Routing Table

0

Hello esteemed experts,

I am currently exploring networking solutions for a project and would greatly appreciate your insights on a particular scenario.

My setup involves approximately 10 VPCs connected to a single TGW routing table. I already have a DX gateway attachments in the same routing table

The requirement is to establish connectivity from a remote branch office to one of these VPCs. My plan is to implement a Site-to-Site (S2S) VPN and attach it to the same Transit Gateway (TGW), subsequently updating the routing tables as needed.

Could you kindly advise if it's feasible to integrate both Direct Gateway and VPN TGW attachments within the same routing table?

Additionally, any considerations or best practices you could share for implementing this solution would be immensely helpful.

1 Answer
0
Accepted Answer

Hello,

In theory and practice, it would be feasible to have a DX connection and a Site 2 Site VPN attached to AWS. However, one concern I have is what would be the reason for it. The DX connection for most large companies is going to be the preferred way, which is going to offer higher security (which you have to implement, for example, by using an S2S VPN over the DX) and also lower cost in the long term, and in addition, it is going to offer a stable and faster connection.

The second problem you might run into is that AWS has a routing preference, which essentially means that AWS will route traffic through a connection based on different "preferences".

An example of this would be if we have a VPC, a DX connection, and an S2S connection attached to it, which is going to send traffic to a desired destination. The VPC will route traffic to the destination with the longest prefix, so the prefix is going to match the best. The second priority for the VPC is that it routes to destinations that were statically propagated and then to routes that were not statically propagated. If they are still the same, the VPC will choose the route that goes over a DX connection, and then, if there is nothing left over, the VPN. This essentially means if you have the same routes configured for a VPC, it will always prefer the DX connection over the VPC.

profile picture
Julian
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago
  • Thank you Julian!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions