How to connect to outside world from amazon vpc?

后端 未结 11 1176
甜味超标
甜味超标 2020-12-22 15:38

I have amazon VPC set through wizard as \"public only network\", so all my instances are in public subnet.

Instances within VPC that have Elastic IP assigned connect

11条回答
  •  Happy的楠姐
    2020-12-22 16:30

    It appears that the only way to get outside from instances that don't have Elastic IP is:

    • add a NAT (Launch an extra m1.small instance from ami-vpc-nat-beta) and assign EIP to it
    • Create an extra subnet which will be "private"
    • Move non-EIP-instances to that private subnet
    • Modify route tables: 0.0.0.0/0 from the private subnet should go to NAT

    So, just adding NAT is not enough. Instances should be stopped and moved to another IP from another subnet.

提交回复
热议问题