A network administrator is configuring a subnet dedicated to security IP cameras in a warehouse facility. The subnet must support at least host devices, with each camera assigned a static IPv4 address. To minimize wasted IP address space, what is the minimum CIDR prefix length (represented as an integer for ) that should be assigned to this subnet?
Cevap: 26
Cevap
The minimum CIDR prefix length required to support at least 58 usable host addresses is 26.
To support 58 static host devices, the subnet must contain at least 58 usable host IP addresses. The formula for usable host addresses is , where is the number of host bits. Setting gives usable addresses (insufficient). Setting gives usable addresses (sufficient). Subtracting 6 host bits from the 32 total bits in an IPv4 address yields . Thus, the minimum CIDR prefix length is 26.
Adım Adım Çözüm
Anahtar Kavram
Calculating minimum CIDR prefix length from host capacity requirements