我通过向导设置了一个 Amazon VPC,将其设置为“仅公共网络”,因此我的所有实例都在公共子网中。
VPC 中分配了 Elastic IP 的实例可以毫无问题地连接互联网。
但是没有弹性 IP 的实例无法连接到任何地方。
互联网网关已存在。AWS 控制台中的路由表如下:
Destination Target
10.0.0.0/16 local
0.0.0.0/0 igw-nnnnn
在实例内部进行路由显示
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
default 10.0.0.1 0.0.0.0 UG 100 0 0 eth0
我尝试打开实例所属安全组的所有入站和出站流量,以使其允许来自0.0.0.0/0的流量通过。仍然没有成功。
~$ ping google.com
PING google.com (74.125.224.36) 56(84) bytes of data.
^C
--- google.com ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5017ms
我还能做什么?