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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则