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 年前檢視次數 302 次
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 年前

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

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

回答問題指南