Soru

Zorluk: OrtaIPv4 Addressing and Subnetting

A network administrator is designing an IPv4 addressing plan for a new office department. The department requires static host IP assignments for 61 client workstations, 1 default gateway router interface, and 1 network printer, requiring a total of 63 active host IP addresses. Which subnet mask provides the most efficient address space utilization while satisfying all required host addresses?

  1. 255.255.255.128255.255.255.128Cevap
  2. B
    255.255.255.192255.255.255.192
  3. C
    255.255.255.224255.255.255.224
  4. D
    255.255.255.0255.255.255.0

Cevap

The subnet mask 255.255.255.128255.255.255.128 (corresponding to a /25/25 prefix) is the most efficient subnet mask that accommodates 63 host IP addresses.
To support 63 active host interfaces, the subnet must provide at least 63 usable IPv4 addresses. Using 6 host bits yields 262=622^6 - 2 = 62 usable addresses, which falls 1 short. Therefore, 7 host bits are required (272=1262^7 - 2 = 126 usable addresses). A subnet with 7 host bits leaves 25 prefix bits (327=2532 - 7 = 25), corresponding to the dotted-decimal subnet mask 255.255.255.128255.255.255.128. This is the smallest subnet that satisfies the requirement without wasting excessive IP addresses.

Adım Adım Çözüm

1
Determine total required host IP addresses
61 workstations+1 gateway+1 printer=63 usable host IP addresses61 \text{ workstations} + 1 \text{ gateway} + 1 \text{ printer} = 63 \text{ usable host IP addresses}
Every device and gateway interface requiring an IP address counts toward the total host capacity.
2
Calculate required host bits using the usable host capacity formula 2H2632^H - 2 \ge 63
For H=6H = 6: 262=622^6 - 2 = 62 usable addresses (insufficient). For H=7H = 7: 272=1262^7 - 2 = 126 usable addresses (sufficient).
Two IP addresses in every subnet are reserved for the network ID and broadcast address.
3
Derive prefix length and dotted-decimal subnet mask
Prefix length =327=/25= 32 - 7 = /25, which converts to 255.255.255.128255.255.255.128
Subtracting 7 host bits from 32 total IPv4 bits leaves 25 network bits.

Anahtar Kavram

Usable IPv4 Host Address Calculation (2H22^H - 2) and Subnet Mask Derivation
Bu soruyu puanla