Soru

Zorluk: KolayIPv4 Addressing and Subnetting

A network technician is configuring a new subnet to accommodate a cluster of 4040 usable host interfaces. What is the minimum IPv4 prefix length (in CIDR notation, e.g., 2424 for /24/24) required to support this number of hosts?

Cevap: 26

Cevap

The minimum IPv4 prefix length required is 26.
To support 4040 usable hosts, a subnet requires 66 host bits because 262=622^6 - 2 = 62 usable IP addresses (252=302^5 - 2 = 30 is too small). Subtracting 66 host bits from 3232 total IPv4 bits results in a prefix length of 2626 (or /26/26).

Adım Adım Çözüm

1
Determine host capacity requirement
Need a subnet that provides at least 4040 usable host IP addresses.
Each subnet reserves two IP addresses: one for the network ID and one for the broadcast address.
2
Find host bits needed
66 host bits are required (262=622^6 - 2 = 62 usable hosts).
55 host bits only yield 3030 usable addresses, which fails the requirement of 4040 hosts.
3
Compute CIDR prefix length
326=2632 - 6 = 26.
An IPv4 address consists of 3232 total bits; subtracting the host bits gives the network prefix bits.

Anahtar Kavram

Host capacity formula and CIDR prefix length calculation
Bu soruyu puanla