简体   繁体   English

AWS从EC2实例访问其自己的公共IP

[英]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. 我在具有自定义VPC的AWS上使用elastic-ip配置ec2实例,对自己的Elastic-ip执行ping操作,不返回任何回复,将IP添加到安全组中无法解决。 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 使用其公用IP地址通过SSH连接到Linux Amazon EC2实例
  • Did a ping to its public IP address -- it failed 对其公共IP地址执行ping -失败
  • Added Inbound All ICMP - IPv4 permissions from 0.0.0.0/0 to a security group associated with the instance 向与该实例关联的安全组添加了从0.0.0.0/0入站所有ICMP-IPv4权限
  • Did a ping to its public IP address -- it worked! 对其公共IP地址执行ping -它起作用了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法访问 AWS EC2 实例 IP - Not able to access AWS EC2 instance IP AWS - 在同一个公共子网中连接一个带有私有 ip 的 ec2 实例和一个带有公共 ip 的 ec2 实例? - AWS - Connecting an ec2 instance with a private ip and an ec2 instance with a public ip in the same public subnet? 无法从公共 IP 访问 AWS EC2 - AWS EC2 not accessible from public IP 从 EC2 实例“分离弹性 IP 地址”后,将公共 IP 自动分配给 AWS EC2 实例 - Auto assign of public IP to AWS EC2 instance after "Dissociate Elastic IP address" from EC2 instance 我们可以将只有私有 IP 的 AWS ec2 实例与另一个具有公共 IP 的 ec2 实例连接起来吗? 从腻子 - can we connect AWS ec2 instance which is having only private IP with the other ec2 instance with a public IP ? from putty 是否在不更改其公共IP的情况下升级或降级正在运行的AWS EC2实例? - upgrade or downgrade a running AWS EC2 instance without changing its public ip? 如何通过实例ID从AWS CLI获取EC2实例的公共IP? - How to get public ip of an EC2 instance from aws CLI by instance id? AWS Java SDK - 使用公共IP启动EC2 Spot实例 - AWS Java SDK - launching an EC2 Spot instance with a public IP 无法使用公共 IP ping AWS EC2 实例 - Cannot ping AWS EC2 instance with public IP AWS - EC2 - Ubuntu 实例公共 ip 拒绝连接 - AWS - EC2 - Ubuntu instance public ip refused to connect
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM