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

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

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

回答問題指南