Soru

Zorluk: OrtaIPv4 Addressing and Subnetting

A network engineer is allocated the IPv4 address block 172.30.128.0/20172.30.128.0/20 for an enterprise campus expansion project. The engineer needs to divide this block into smaller, equal-sized subnetworks using a prefix mask of /25/25. What is the total number of subnets that can be created from this original /20/20 block?

Cevap: 32 subnets

Cevap

The total number of subnets that can be created is 32.
Moving from a /20/20 prefix to a /25/25 prefix borrows 5 host bits (2520=525 - 20 = 5). Calculating 252^5 gives 32 distinct subnets.

Adım Adım Çözüm

1
Calculate the number of borrowed subnet bits
5 bits borrowed (2520=525 - 20 = 5)
The difference between the target prefix length and the starting prefix length represents the network bits borrowed from the host portion.
2
Calculate the total subnet count
32 subnets (25=322^5 = 32)
Each borrowed bit doubles the number of created subnets (2n2^n, where nn is the number of borrowed bits).

Anahtar Kavram

Subnet counting using CIDR prefix borrowing
Bu soruyu puanla