EC2_Peering Connection

0

I was practicing peering connection in aws.. I have created one vpc and there's one default vpc in aws account and created one subnet for user created vpc..Now i have created ec2 for both the vpc one for default vpc and another for user created vpc....Now i have connected ec2 of default vpc and also created one peering connection and in Route table of both vpc i have given ip address of oppsoite vpc and tried to ping user vpc ec2 private ip address...am geeting connection timedout error...Also, further am not able to connect to any ec2 instance...what might be issue any issues or security changed in account level?? Error: Failed to connect to your instance EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see Set up EC2 Instance Connect at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html.

1 回答
1

Verify that the route table is configured correctly for both VPCs.
Also, make sure that the security group configured on the EC2 allows communication from the connection source.
As per the following document, VPCs that are VPC peering can refer to each other's security groups.
https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-security-groups.html

profile picture
专家
已回答 1 年前
  • To add check NACLs allow traffic between the 2 subnets also

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

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

回答问题的准则