Which one of the following prefixes exactly represents the range of addresses to ?
View worked solution
Answer: A
To find the CIDR prefix that exactly represents the range of IP addresses from to , we can analyze the binary representation of the addresses.
Step 1: Calculate the total number of addresses
- The range spans from to .
- This includes all addresses in ( addresses) and all addresses in ( addresses).
- Total addresses = addresses.
Step 2: Determine the prefix length
Since the total number of addresses is , the number of host bits is .
Step 3: Find the network address
Let's write the first address of the block, , focusing on the third octet in binary:
- (8 bits)
- (8 bits)
- (First 7 bits are part of the prefix)
Combining the first bits of the first two octets and the first bits of the third octet gives a prefix length of bits. The remaining bits (the last bit of the third octet and all bits of the fourth octet) are set to for the network address:
Evaluating the Options:
- Option A (): Correct. It represents exactly the range to .
- Option B (): Represents only to ( addresses).
- Option C (): Represents the range to ( addresses).
- Option D (): Invalid CIDR notation because the host portion is not all zeros for a prefix.
Free practice · Your answers on this page are not saved.
