简体   繁体   English

AWS VPC - 更改路由表后无法从 ec2 实例 ping

[英]AWS VPC - cannot ping from ec2 instance after changing route tables

It's been a long time since I was working with aws and I haven't been able to figure this out on my own.自从我使用 aws 以来已经有很长时间了,我自己无法解决这个问题。

Basically, my EC2 instance was able to ping google yesterday when I was logged in with ssh.基本上,昨天当我使用 ssh 登录时,我的 EC2 实例能够 ping 谷歌。 I had two rules inbound on the security group associated with the VPC:我在与 VPC 关联的安全组上有两个入站规则:

IPv4    SSH TCP 22  my ipd

IPv4    All UDP 0 - 65535   my ip

When I changed the second rule to;当我将第二条规则更改为;

HTTPS   TCP 443 security group

I could use my ec2 instance as a proxy to access my opensearch instance on the same VPC but, I could no longer ping google.我可以使用我的 ec2 实例作为代理来访问同一个 VPC 上的我的 opensearch 实例,但是我无法再 ping google。

So, I added back the rule I replaced, and I still can't ping google.所以,我添加了我替换的规则,我仍然无法 ping 谷歌。

I've confirmed that I have an internet gateway connected to the VPC.我已经确认我有一个连接到 VPC 的互联网网关。

I'm reading documentation and brushing up on my networking, but if someone does have an inkling right off the bat, I'd be very grateful.我正在阅读文档并复习我的网络,但如果有人确实有一个初步的想法,我将非常感激。

You should confirm that the subnet has a Route Table that points to the Internet Gateway.您应该确认子网有一个指向 Internet 网关的路由表。

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

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