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 Answer
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?

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions