CIDR Blocks (private / rfc1918)

MD
R
Markdown

CIDR block provides you with a private IPv4 address range === Recommended CIDR Blocks http://www.faqs.org/rfcs/rfc1918.html https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html

1RFC 1918 range	Example CIDR block
210.0.0.0 - 10.255.255.255 (10/8 prefix)	                       Your VPC must be /16 or smaller, for example, 10.0.0.0/16.
3172.16.0.0 - 172.31.255.255 (172.16/12 prefix)	       Your VPC must be /16 or smaller, for example, 172.31.0.0/16.
4192.168.0.0 - 192.168.255.255 (192.168/16 prefix)       Your VPC can be smaller, for example 192.168.0.0/20.
5
6
7Reserved (5 IP Addresses):
810.0.0.0: Network address
910.0.0.1: Reserved by AWS for the VPC router.
1010.0.0.2: Reserved by AWS. The IP address of the DNS server is the base of the VPC network range plus two. For VPCs with multiple CIDR blocks, the IP address of the DNS server is located in the primary CIDR. We also reserve the base of each subnet range plus two for all CIDR blocks in the VPC. For more information, see Amazon DNS server.
1110.0.0.3: Reserved by AWS for future use.
1210.0.0.255: Network broadcast address. We do not support broadcast in a VPC, therefore we reserve this address.
13
14## Workload 1 (2 Lambda Functions, 1 EC2) 1024 IP Addresses
15VPC CIDR block: 172.16.0.0/22 (This will provide a range of 172.16.0.0 to 172.16.3.255 and a total of 1024 IP addresses)
16Subnets:
17Public Subnet: 172.16.0.0/28
18Private Subnet 1: 172.16.1.0/28
19Private Subnet 2: 172.16.2.0/28
20
21## Workload Examples (CIDR blocks)
22VPC1 0.1.0.0/16
23VPC2 10.0.0.0/16	
24VPC3 172.31.0.0/16	
25VPC4 192.168.0.0/16	
26VPC5: 10.2.0.0/16 (10.2.0.0 to 10.2.255.255)
2710.1.0.0/16
28172.16.0.0/12
2910.2.0.0/16
3010.3.0.0/16
31172.17.0.0/16
32172.18.0.0/16
33
34Note: 10.x.x.x and 172.x.x.x ranges are reserved for private networks as defined by RFC 1918. These ranges are never routable on the public internet, which makes them safe for internal use in private networks such as those in a VPC (Virtual Private Cloud).

Created on 11/12/2020