I need to understand how IPS are manage in entire AWS

0

In a local network, almost all IPs are available, and each device receives a private IP managed by the (ISP) box. Only the box has a private IP AND a public IP to transfer the request to the Internet and receive the response, before transferring the response to the client device's private IP. This is a simple implementation of the network; AWS is a little more complex.

When I create my account, a vpc is created for my account, I understand that a vpc is linked to a region and can depend on one or more ZAs. But the ip of my vpc is 172.31.0.0/16, I can use from 172.31.0.0 to 172.31.255.255 for my resources. This means that aws, in my region, could assign the other IPs ( from 0.0.0.0 to 172.30.0.0 and from 172.32.0.0 to 255.255.0.0) to the other accounts created in my region, so 255*255 -1 (my account) =65024 other accounts in my region. This seems to be very small, so I guess I didn't understand how the ip from the vpc works. I also don't understand why I can create 2 vpc with the same cidr.

I can't find anything on the internet that really explains how ip works on aws.

질문됨 일 년 전251회 조회
2개 답변
3

Here you can find information about how IPs works in AWS: IP addressing documentation.

Is important to differentiate between the Private IPs and the Public IPs:

  • Private IPs: are not reachable over the internet, and can be used for communication between the instances in your VPC. This are the ones that appears in your VPC, as these are just for internal use there is no overlapping issues with another accounts private IPs.
  • Public IPs: These are the ones that give you access to the internet. So these are the ones that have to be unique.

Usually most of the resources in your VPC will have just private IPs and you will just a few Public IPs to provide access to the elements in your VPC to the internet.

profile pictureAWS
답변함 일 년 전
2
수락된 답변

I hope below explanation will give you an idea, how IPs are managed in AWS.

We create VPC in AWS with Private CIDR range.

Private IP can only allow certain values: • 10.0.0.0 – 10.255.255.255 (10.0.0.0/8) • 172.16.0.0 – 172.31.255.255 (172.16.0.0/12) <= default VPC included in this range. Most of the time default AWS VPC gets created in this range. • 192.168.0.0 – 192.168.255.255 (192.168.0.0/16)

All the rest of the IP on the internet are public IP.

Yes other accounts can create VPC with same CIDR range but that is private to their network. Well you cannot join those two VPCs/network/accounts because those are having overlapping CIDR and obviously creates conflicts.

AWS assigns private ip to resources from the CIDR range which is used to create VPC. You can choose specific private IP from CIDR range if you want.

And CIDR range 172.31.0.0/16, is quite big, it provides 65534 IP addresses.

Best Regards, Vikas

profile picture
Vikas
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠