我有亚马逊VPC通过向导设置为“公共唯一网络”,所以我所有的实例都在公共子网。如何从亚马逊vpc连接到外部世界?
已分配弹性IP的VPC中的实例连接到互联网没有任何问题。
但没有弹性IP的实例无法连接到任何地方。
Internet网关存在。在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
我还能做什么?
该文档说,您还必须分配一个EIP到NAT实例。 – dparkar 2013-01-11 20:38:05
事实上,没有将EIP分配给NAT实例,它将无法工作。刚刚测试过。 – dparkar 2013-01-11 21:56:40
当然你的NAT应该有EIP。暗示。编辑答案 – 2013-01-16 05:31:46