亚马逊ec2,无法ping内部主机 [英] amazon ec2, cannot ping internal host

查看:210
本文介绍了亚马逊ec2,无法ping内部主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Amazon ec2中,我在一个展示位置组中有2个实例.第一个节点是172.31.12.76/20,第二个节点是172.31.12.77/20我可以从我的PC SSH两个节点.他们共享具有这两个规则的同一安全组:

In amazon ec2, I have 2 instances in a placement group. First node is 172.31.12.76/20, second, 172.31.12.77/20 I can ssh both nodes from my pc. They share the same security group that has got these 2 rules:

入站规则:

Type        Protocol    Port Range    Source
SSH         TCP         22            0.0.0.0/0
All IMCP    All         N/A           0.0.0.0/0

(没有出站规则)

两个节点在L2中彼此见面

Both nodes see to each other in L2:

root@ip-172-31-12-76:~# arp
[...]
ip-172-31-12-77.eu-west  ether   0a:ad:5e:e4:12:de   C                     eth0
[...]

root@ip-172-31-12-77:~# arp
[...]
ip-172-31-12-76.eu-west  ether   0a:34:a1:17:57:28   C                     eth0
[...]

iptables在两个节点上都是空的.

iptables are empty on both nodes.

但是ping彼此之间不起作用

But ping does not work between each other

我已经检查了以前的帖子: EC2实例不响应内部ping 但它不能解决问题.看来没有其他类似的帖子.

I have already checked a previous post: EC2 instances not responding to internal ping but it does not address the issue. It looks like there are no other similar posts.

有什么主意吗?非常感谢你!

Any idea? Thank you very much!

推荐答案

我得到了答案;我还需要在每台主机上允许出站icmp,以便能够ping通内部和外部IP.

I got the answer; I need to also allow outbound icmp on each host in order to be able to ping both external and internal IPs.

这篇关于亚马逊ec2,无法ping内部主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆