Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pinging EC2 instances [closed]

Tags:

amazon-ec2

I'm new to managing EC2 instances. I have created one, and I can run it and remotely login with Windows Remote Desktop. I can ping external servers from inside my instance, but I cannot ping the instance from my machine using its DNS public name. I guess I'm doing something wrong with security groups. Any thoughts anybody?

like image 268
Paweł Głowacki Avatar asked Sep 05 '10 18:09

Paweł Głowacki


People also ask

Why can't I ping EC2 instance?

might be your internal network is blocking that IP to ping or blocked ping packet in your firewall if you have opened in security group and VPC is correct. Show activity on this post. Show activity on this post. Your EC2 instance needs to be attached to a security group that allows the access you require.

How do I find the last time my EC2 instance was stopped?

To get the details of your last stopped instance, you can use CloudTrail service. Go to your Cloudtrail console and there, you will see a list of your EC2 Actions.

How do I view closed instances?

Open the CloudTrail console. Choose Event history. Select Event Name in the Filter dropdown list, and then enter TerminateInstances to view all instance termination API calls.

Why can't I ping my AWS server?

In security group from AWS console you need to allow port 22 and by default ICMP is blocked on AWS , so if you want to enable ping you need to allow ICMP too.


1 Answers

To ping an EC2 instance, you need to allow ICMP traffic in the instance's security group.

like image 73
ktheory Avatar answered Oct 01 '22 10:10

ktheory