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 年前303 查看次数
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 年前

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

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

回答问题的准则