How to use the BGP in VPC among the ECs?

0

I want to build a topology in the aws, but I'm not sure how to set up route and as path to route the traffic of instances to some specific instances balancedly.

Enter image description here

expect:

192.168.0.100(az1) & 192.168.1.100(az2), announce a cidr 10.0.0.0/24 to 192.168.3.1

az1: 192.168.0.1 --> 10.0.0.1 via 192.168.3.1 & 192.168.0.100

az2: 192.168.1.1 --> 10.0.0.1 via 192.168.3.1 & 192.168.1.100

when the 192.168.1.100 is down, the traffic of az2 can be sent to 192.168.3.1 & 192.168.0.100

1回答
0

Since all the subnets are part of the same vpc, routing will be done automatically without needing BGP. If you need to use BGP, you need to have an ec2 image capable of that and possibly use GRE tunnels. Also, you can add secondary cidrs blocks in the VPC to allow the network 10 ranges. But what is the use case for the scenario mentioned?

回答済み 1年前

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

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

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

関連するコンテンツ