EC2s in an Autoscaling group across 2 subnets in same VPC can't connect to each other

0

Hi, I am trying to install MariaDB Galera on 2 EC2s in an Autoscaling group across 2 subnets in the same private VPC. I need the EC2s to connect to each other but they can't even ping each other using their private IP addresses. There is no NACLs and I have opened all ports to the same Security Group that these 2 EC2s use.

For reference, here's the guide I am using.

https://galeracluster.com/library/training/tutorials/galera-on-aws.html

Any advice?

3回答
0

Hi, you may have an issue in the configuration of the route tables associated to your subnets. Each of them has its own routing table which must contain a route to the other subnet.

See https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html

Your VPC has an implicit router, and you use route tables to control where network 
traffic is directed. Each subnet in your VPC must be associated with a route table, 
which controls the routing for the subnet (subnet route table). You can explicitly 
associate a subnet with a particular route table.

Best,

Didier

profile pictureAWS
エキスパート
回答済み 9ヶ月前
  • Hi, the 2 subnets have the same route table with the VPC IP range set as the target. So, don't think this is the issue

0

Hi,

Could you please verify the following in the NACL and route table attached to your subnet?

  • NACL - Allows all traffic or relevant ports/protocols in both inbound and outbound
  • Route Table - Allows traffic to the VPC or subnets

Additionally, the document you shared, mentions enabling the firewall in the instances. Assuming you did this could you try disabling the firewall and try connecting to test if the issue is related to the firewall rules?

profile picture
Bisina
回答済み 9ヶ月前
0

Does the SG for the EC2 instance you're pinging from have an outbound (egress) rule allowing Ping? Also you said you opened all ports but is that just TCP ports? You need ICMP for Ping.

エキスパート
回答済み 9ヶ月前

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

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

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

関連するコンテンツ