How to source route Availability Zone to closest Direct Connect location?

0

I have 1 VPC with 3 subnets, 1 for each Availability Zone A,B,C. I have 2 Private VIF terminated on the VGW. Each VIF uses a different Direct Connect location. The network latency from hosts in Availability Zone A is best to Direct Connect location 1. The network latency from hosts in Availability Zones B and C is best to Direct Connect location 2.

How can I configure routing so that: 1.) Hosts in Availability Zone A prefer the VIF using Direct Connect location 1 and use Direct Connect location 2 as backup. 2.) Hosts in Availability Zone B and C prefer the VIF using Direct Connect location 2 and use Direct Connect location 1 as backup.

已提問 1 年前檢視次數 312 次
2 個答案
0

Set "AS_PATH prepending" as described in the following document.
https://docs.aws.amazon.com/directconnect/latest/UserGuide/private-transit-vif-example.html

profile picture
專家
已回答 1 年前
  • Sorry this answer is incorrect. This would result in traffic from all 3 Availability Zones using the same VIF. My question explains the Availability Zone A subnet should use VIF 1 and Availability Zone B, C subnets use VIF 2.

  • In the active/active case, "AS_PATH prepending" must be the same value so that load balancing occurs.
    So I found it difficult to route to a specified VIF for a specific subnet only.

0

It is not possible to do on-premises style PBR (policy based routing) like that with VGW.

How did you conclude the below?

The network latency from hosts in Availability Zone A is best to Direct Connect location 1. The network latency from hosts in Availability Zones B and C is best to Direct Connect location 2.

profile pictureAWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南