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 réponse
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?

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions