简体   繁体   English

EC2 实例无法相互 ping 通

[英]EC2 instances cannot ping each other

I have 2 EC2 Ubuntu instances.我有 2 个 EC2 Ubuntu 实例。 They are sharing same VPC, su.net and Security Group.他们共享相同的 VPC、su.net 和安全组。 Instances' firewall was turnoff.实例的防火墙已关闭。 But I still can't ping each other by private IP. How to allow those instances ping each other?但我仍然无法通过私有 IP 相互 ping 通。如何让这些实例相互 ping 通?

In the security group, add "Custom ICMP" rule for "Echo Request" -- or -- "All ICMP Traffic" -- and as the source IP, instead of an address or block, add the security group's identifier, sg-xxxxxxxx. 在安全组中,为“回应请求” - 或 - “所有ICMP流量”添加“自定义ICMP”规则 - 并且作为源IP,而不是地址或块,添加安全组的标识符sg-xxxxxxxx 。

Simply being in the same security group doesn't mean the instances can communicate among themselves. 仅仅处于同一安全组并不意味着实例可以相互通信。 It only means they follow the same set of rules... but security group membership is a source attribute as well, on traffic originating from instances that are members of the group. 它只表示它们遵循相同的规则集......但安全组成员资格也是源属性,来自作为组成员的实例的流量。

Hence, the above. 因此,以上。

if it is windows instance, then you need to enable rule in firewall.如果它是 windows 实例,则需要在防火墙中启用规则。 And also need to add inbound rule for your private CIDR range atleast并且还需要至少为您的私有 CIDR 范围添加入站规则

防火墙规则

CIDR

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

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