An enterprise is designing a hybrid network architecture for its multi-account AWS environment. The environment consists of spoke VPCs spread across two AWS Regions: `us-east-1` and `us-west-2`. The VPCs are connected using an AWS Transit Gateway (TGW) in each region. The on-premises data center must connect to AWS with high availability and optimal performance.
The primary path is a Gbps AWS Direct Connect (DX) connection using a Transit Virtual Interface (Transit VIF) terminated at a Direct Connect Gateway (DXGW) associated with both TGWs. A backup path is established using an AWS Site-to-Site VPN connection over the internet, terminating directly on the TGWs.
During failover testing, the network team observes that traffic originating from the on-premises data center to the AWS spoke VPCs is being load-balanced across both the DX and VPN paths, causing asymmetric routing. Furthermore, outbound traffic from the AWS spoke VPCs to the on-premises network () is preferring the VPN path because the on-premises router is advertising over the DX connection and more specific subnets ( and ) over the VPN connection.
Which combination of routing configurations will resolve these routing issues and ensure that the DX connection is prioritized for bi-directional traffic, while maintaining the VPN as a dynamic failover?
- Configure the on-premises router to advertise the identical prefix over both the DX and VPN BGP sessions. Set a higher BGP Local Preference on the on-premises router for routes received from AWS via the DX connection compared to the VPN. Prepend the on-premises Autonomous System (AS) number multiple times on the BGP advertisements sent to AWS over the VPN connection.Cevap
- BConfigure the on-premises router to advertise the identical prefix over both BGP sessions. Set a higher Multi-Exit Discriminator (MED) value on the BGP advertisements sent to AWS over the VPN connection. On the on-premises router, prepend the Autonomous System (AS) number on the DX BGP advertisements to skew the inbound path selection.
- CLeave the prefix advertisements as they are. In the AWS Transit Gateway route tables, configure a static route for pointing to the DXGW attachment, and set its administrative distance lower than the propagated routes from the VPN connection to override the subnet specificity.
- DRoute all on-premises and outbound traffic through a centralized egress VPC in each region containing a single NAT Gateway. On the on-premises router, configure policy-based routing to forward traffic to the NAT Gateway IP address, and configure the Transit Gateway to prioritize the NAT Gateway route over the VPN.