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.

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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ