简体   繁体   中英

aws access from ec2 instance to its own public ip

I configure ec2 instance with elastic-ip on AWS with custom VPC, pinging to its own elastic-ip not returning any reply, Adding the IP to the security-group didn't resolve it. any idea?

Yes, it works.

To test this, I did the following:

  • Connected via SSH to a Linux Amazon EC2 instance, using its public IP address
  • Did a ping to its public IP address -- it failed
  • Added Inbound All ICMP - IPv4 permissions from 0.0.0.0/0 to a security group associated with the instance
  • Did a ping to its public IP address -- it worked!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM