Soru

Zorluk: OrtaIPv4 Addressing and Subnetting

A network technician is provisioning a new subnet for an office department that requires static IPv4 addresses for 5050 workstation computers and 44 network printers. Which of the following CIDR prefix lengths represents the smallest subnet mask that will accommodate all required devices while conserving address space?

  1. A
    /27/27
  2. /26/26Cevap
  3. C
    /25/25
  4. D
    /28/28

Cevap

The prefix length /26/26 is the smallest subnet mask that provides enough usable host addresses (6262) for the 5454 required devices.
The correct answer specifying /26/26 allocates 66 bits for the host portion of the address space (3226=632 - 26 = 6). This creates 26=642^6 = 64 total IP addresses. Subtracting 22 addresses for the network ID and broadcast address results in 6262 usable IP addresses, which efficiently accommodates the required 5454 devices (5050 workstations + 44 printers) with minimal waste.

Adım Adım Çözüm

1
Calculate total required host addresses
50 workstations+4 printers=54 host addresses50 \text{ workstations} + 4 \text{ printers} = 54 \text{ host addresses}
Both workstations and printers require individual usable host IP addresses on the network.
2
Determine the required number of host bits (hh)
For h=6h = 6 host bits, total addresses = 26=642^6 = 64. Usable addresses = 642=6264 - 2 = 62. Since 625462 \ge 54, 66 host bits are required.
The formula for usable hosts is 2h22^h - 2, reserving one address for the network ID and one for the broadcast address.
3
Calculate the CIDR prefix length
Prefix length = 326=2632 - 6 = 26, denoted as /26/26.
IPv4 addresses consist of 32 total bits. Subtracting the host bits from 32 gives the network prefix length.

Anahtar Kavram

Calculating host requirements and CIDR prefix masks for IPv4 subnets
Tahmini Süre:1m 30s
Bu soruyu puanla