官术网_书友最值得收藏!

How it works...

Resources inside the subnet only understand the private IP (internal) assigned to them from the CIDR range of that subnet. The default VPC has an IG attached to it and the subnet's route is associated with the IG. The IG works as a Network Address Translation (NAT) for instances that have public IP/Elastic IP attached to them. When outside instances send requests to the AWS resources with a public IP/Elastic IP, the IG translates the address and sends the request to the internal IP of the resource. Similarly, when resources inside a subnet send requests to services outside the VPC, the reply address is set by the IG as public/Elastic IP of that resource. Thus, if a subnet route has an IG attached to it, the resources hosted inside it are accessible from the internet. This type of subnet is called a public subnet. All default subnets are public subnets. If no IG is attached to the subnet route, the resources hosted inside it can't be accessed from the internet and is hence called a private subnet.

主站蜘蛛池模板: 东城区| 噶尔县| 木兰县| 沙田区| 河津市| 自治县| 柘荣县| 左贡县| 驻马店市| 襄汾县| 滁州市| 长白| 郑州市| 萨迦县| 新营市| 明水县| 荆门市| 柯坪县| 南靖县| 东乌| 湄潭县| 清水河县| 明溪县| 仙居县| 英德市| 安平县| 绥芬河市| 青岛市| 江北区| 普定县| 永吉县| 岚皋县| 上蔡县| 敦化市| 鸡泽县| 蒙城县| 新安县| 喀喇| 台安县| 武山县| 启东市|