MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Networks
Cidr
Q
Determine the number of valid host IPs in each subnet for the given IP 172.16.0.0/25 using the CIDR value.
AA. 7
BB. Total number of bits in an ip address = 32 let n be the number of bits in the host portion of the given ip address n = total number of bits in an ip address ? cidr value n = 32 ? 25 n = 7 number of hosts = 2n ? 2 = 27 ? 2 number of hosts = 128 -2 n
CC. 126
DD. 16
Correct Answer:
C. C. 126
Explanation:
Given, CIDR value = 25 IP address = 172.16.0.0 (Class B) Total number of bits in an IP address = 32 Let n be the number of bits in the host portion of the given IP address n = Total number of bits in an IP address – CIDR value n = 32 – 25 n = 7 Number of Hosts = 2n – 2 = 27 – 2 Number of Hosts = 128 -2 Number of Hosts = 126 Since Network IP and Broadcast IP cannot be assigned to any host we remove those 2 IPs.