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개 답변
0
수락된 답변

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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
profile picture
전문가
검토됨 한 달 전
  • Thank you Julian!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인