Soru

Zorluk: KolayCreate and Configure Virtual Networks and Subnets

You are configuring a virtual network named `vnet-dev` for a testing environment. Within `vnet-dev`, you create a subnet named `subnet-test` and assign it the address prefix 10.10.5.0/2810.10.5.0/28. What is the maximum number of virtual machines that can be successfully deployed and receive IP addresses in `subnet-test`?

  1. A
    14
  2. 11Cevap
  3. C
    16
  4. D
    8

Cevap

11
A subnet configured with a /28/28 prefix has 1616 total IP addresses (23228=162^{32-28} = 16). Azure reserves the first four IP addresses and the last IP address of the subnet range, totaling 55 reserved IPs. Subtracting these 55 reserved IPs from the 1616 total IPs results in 1111 usable IP addresses available for virtual machines.

Adım Adım Çözüm

1
Determine the total number of IP addresses in the subnet's CIDR block.
A /28/28 subnet prefix has a total of 23228=24=162^{32-28} = 2^4 = 16 IP addresses.
The CIDR prefix determines the host bits and total address pool.
2
Apply Azure-specific subnet reservations.
Azure reserves the first four IP addresses (10.10.5.010.10.5.0, 10.10.5.110.10.5.1, 10.10.5.210.10.5.2, 10.10.5.310.10.5.3) and the last IP address (10.10.5.1510.10.5.15) in the subnet range, which is 55 addresses in total.
Azure virtual networks always reserve five IP addresses in every subnet for protocol and service operations.
3
Calculate the usable IP addresses for host virtual machines.
16 total addresses5 reserved addresses=1116 \text{ total addresses} - 5 \text{ reserved addresses} = 11 usable IP addresses.
Only non-reserved IP addresses in a subnet can be assigned to virtual machines.

Anahtar Kavram

Azure Subnet IP Address Reservation
Bu soruyu puanla