Soru

Zorluk: OrtaIPv4 Addressing and Subnetting

A network engineer is configuring a default gateway for a VoIP phone subnet that has been allocated the IPv4 address block 172.20.48.0/20172.20.48.0/20. Which of the following IP addresses represents the last usable host address available for assignment within this subnet?

  1. 172.20.63.254172.20.63.254Cevap
  2. B
    172.20.63.255172.20.63.255
  3. C
    172.20.64.254172.20.64.254
  4. D
    172.20.55.254172.20.55.254

Cevap

172.20.63.254172.20.63.254
A /20/20 prefix (255.255.240.0255.255.240.0) provides a block size of 16 in the third octet. For the subnet starting at 172.20.48.0172.20.48.0, the full block extends up to 172.20.63.255172.20.63.255. Subtracting the network address (172.20.48.0172.20.48.0) and the broadcast address (172.20.63.255172.20.63.255) leaves usable host addresses ranging from 172.20.48.1172.20.48.1 to 172.20.63.254172.20.63.254. Thus, the address ending in .63.254.63.254 is the last usable host IP.

Adım Adım Çözüm

1
Determine the subnet mask and block size for a /20/20 prefix.
A /20/20 prefix corresponds to a subnet mask of 255.255.240.0255.255.240.0. The block size in the third octet is 256240=16256 - 240 = 16.
The prefix length determines how many bits are allocated to the network portion.
2
Calculate the network address boundaries.
Starting at 172.20.48.0172.20.48.0, adding the third-octet block size of 16 yields the next subnet address, which is 172.20.64.0172.20.64.0.
Finding the next network boundary defines the upper limit of the current subnet.
3
Determine the broadcast address and last usable host IP.
The broadcast address is one position below the next network ID (172.20.63.255172.20.63.255). The last usable host address is one below the broadcast address (172.20.63.254172.20.63.254).
The network address (first) and broadcast address (last) are reserved and cannot be assigned to hosts.

Anahtar Kavram

IPv4 Subnet Boundaries and Host Address Allocation
Bu soruyu puanla