Skip to content

Transitive Routing Options for AWS Site-to-Site VPN (VGW vs. TGW)

0

Hi all

Let's assume a client connects two on-premises sites (Site A and Site B) to a single AWS VPC via Site-to-Site VPN.

My understanding is that transitive routing (allowing communication: Site A $\to$ AWS $\to$ Site B) is possible in the following configurations:

  1. Virtual Private Gateway (VGW): Supported only if using BGP (Dynamic Routing). This configuration effectively leverages AWS VPN CloudHub. Static routing is not supported for this use case.
  2. Transit Gateway (TGW): Supported using either BGP or Static routing, as the TGW acts as a centralized transit hub.

Is this understanding correct?

Thanks.

1 Answer
0

Your understanding is mostly correct, but let me clarify a few points:

For Virtual Private Gateway (VGW):

  • You're correct that transitive routing between on-premises sites (Site A → AWS → Site B) is supported using BGP (dynamic routing) through AWS VPN CloudHub.
  • This requires each customer gateway to use a unique BGP Autonomous System Number (ASN).
  • Each site must advertise specific prefixes (non-overlapping IP ranges) to the virtual private gateway.
  • The VGW re-advertises these routes to each BGP peer, enabling communication between sites.
  • Static routing is indeed not supported for this transitive routing use case with VGW.

For Transit Gateway (TGW):

  • You're correct that TGW supports transitive routing between on-premises sites using either BGP or static routing.
  • With TGW, you can terminate multiple VPN connections and enable routing between them.
  • When using BGP with TGW, you get additional benefits like routing priorities, policies, and weights to influence network paths.
  • Both IPsec and BGP sessions must be terminated on the same customer gateway device when using dynamic routing.

AWS generally recommends using BGP-capable devices when available because BGP provides robust liveness detection checks that assist with failover to the second VPN tunnel if the first tunnel goes down.
Sources
AWS Transit Gateway + AWS Site-to-Site VPN - Amazon Virtual Private Cloud Connectivity Options
Static and dynamic routing in AWS Site-to-Site VPN - AWS Site-to-Site VPN
Secure communication between AWS Site-to-Site VPN connections using VPN CloudHub - AWS Site-to-Site VPN
AWS Site-to-Site VPN - Amazon Virtual Private Cloud Connectivity Options

answered a year ago

AWS
EXPERT

reviewed a year ago

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.