Activity 01 - Creating A VPC:: The Remaining 5 IP's Are Used For Below Purposes
Activity 01 - Creating A VPC:: The Remaining 5 IP's Are Used For Below Purposes
Why is the available number of IPs showing as 251, where are the rest 5 IPs used?
10.0.0.2: Reserved by AWS. The IP address of the DNS server is always the base of the VPC network
range plus two; however, we also reserve the base of each subnet range plus two. For VPCs with
multiple CIDR blocks, the IP address of the DNS server is located in the primary CIDR. For more
information, see Amazon DNS Server.
10.0.0.255: Network broadcast address. We do not support broadcast in a VPC, therefore we reserve
this address.
Why have we created two private and public in different subnets? Should we not create both Public
subnets in one AZ and both Private in another AZ?
As we want High Availability of the resources we have created subnets in different AZ’s.
You would see that all four subnets that you created are associated with the main route table, why?
Initially when we create the subnets these will be associated with Main route table.we can route the
route table to the subnet based on the requirement.
Did you notice that your MyAppServer has got a public IP and public DNS while MyDBServer has not,
why?
We have created MyAppServer in Public subnet and MyDBServer in Private subnet, due to this
MyAppserver is having Public IP and MYDBServer is not having Public IP.
As we have created both the servers in Subnet01, these servers are running in same AZ.
Connecting to MyAppServer:
Connecting to MyDBServer:
Connection to MyDBServer: