Doug has created a VPC with CIDR 10.201.0.0/16 in his AWS account. In this VPC he has
created a public subnet with CIDR block 10.201.31.0/24.
While launching a new EC2 from the console, he is not able to assign the private IP address
10.201.31.6 to this instance.
Which is the most likely reason for this issue?
A.
Private address IP 10.201.31.6 is currently assigned to another interface.
B.
Private IP address 10.201.31.6 is reserved by Amazon for IP networking purposes.
C.
Private IP address 10.201.31.6 is blocked via ACLs in Amazon infrastructure as a part of platform
security.
D.
Private IP address 10.201.31.6 is not part of the associated subnet’s IP address range.
Explanation:
In Amazon VPC, you can assign any Private IP address to your instance as long as it is:
Part of the associated subnet’s IP address range
Not reserved by Amazon for IP networking purposes
Not currently assigned to another interface
http://aws.amazon.com/vpc/faqs/
Answer is D.
Pulbic subnet is 10.201.31.0/24. so Private IP 10.201.31.6 must be Public IP.
It says “public subnet” that doesn’t mean all IPs assigned to EC2 instances within the public subnet are public IPs.
It says “public subnet” that doesn’t mean all IPs assigned to EC2 instances within the public subnet are public IPs.