Question

Difficulty: MediumCreate and Configure Virtual Networks and Subnets

You have an Azure subscription that contains a resource group named RG1. Inside RG1, you create a virtual network named VNet1. VNet1 has a subnet named Subnet1 with an address space of 10.0.1.0/2810.0.1.0/28. You need to deploy a resource in Subnet1 and configure it with a static IP address of 10.0.1.310.0.1.3. Is the statement true that you can assign the IP address 10.0.1.310.0.1.3 to the resource?

Answer: Answer

Answer

False
In any Azure subnet, the first four IP addresses and the last IP address are reserved by Azure for internal routing, DNS, and broadcast functions. For the subnet address space 10.0.1.0/2810.0.1.0/28, the reserved IPs are 10.0.1.010.0.1.0, 10.0.1.110.0.1.1, 10.0.1.210.0.1.2, 10.0.1.310.0.1.3, and 10.0.1.1510.0.1.15. Because 10.0.1.310.0.1.3 is one of the reserved addresses, the statement is false.

Step-by-Step Solution

1
Calculate the IP range for the subnet based on its CIDR notation.
The subnet range for 10.0.1.0/2810.0.1.0/28 spans from 10.0.1.010.0.1.0 to 10.0.1.1510.0.1.15, representing 16 total IP addresses.
Before analyzing availability, the total boundaries of the subnet must be established.
2
Identify the specific IP addresses reserved by Azure within the subnet.
Azure reserves the first four IP addresses (10.0.1.010.0.1.0, 10.0.1.110.0.1.1, 10.0.1.210.0.1.2, 10.0.1.310.0.1.3) and the last IP address (10.0.1.1510.0.1.15) of the subnet.
Azure enforces specific IP reservation rules for network control, gateway routing, DNS mapping, and broadcast functions.
3
Check if the desired IP address falls into the reserved IP range.
The IP address 10.0.1.310.0.1.3 matches the fourth reserved IP address in the subnet.
Since the IP address is reserved by Azure, it cannot be dynamically or statically assigned to user workloads.

Key Concept

Azure Subnet Reserved IP Addresses
Rate this question