Internet gateway and Natgateway for AWS

Source: Internet
Author: User
Tags elastic load balancer
How does an instance (instance) in a VPC access the Internet after a VPC is created on the Amazon cloud? There are usually two ways of doing this:

  1. Assigning a public IP address directly
    • Associating a VPC to an Internet gateway
    • This way, the subnet where the instance resides, belongs to the public subnet

2. Via Nat Gateway or NAT instance

  • In the routing table for each subnet, set the default route to Nat Gateway or NAT instance
  • This way, the subnet where the instance resides, belongs to the private subnet

Different ways to access public and private subnets from internent using Elb (elastic load balancer)
For Elb that are accessible to the Internet, you can only associate to the public subnet, which is the default route to Internet gateway.
If you want to access Elb from internent and then access the private subnet, you need to add a layer of public subnets to the middle.

Internet gateway and Natgateway for AWS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.