100-150 Question 73
Select 2You are troubleshooting connectivity issues on a small office network. A client device is assigned the IP address 192.168.10.15 with a subnet mask of 255.255.255.0. Which of the following IP addresses belong to the same subnet as this client device?
- A
192.168.10.50
- B
192.168.11.15
- C
192.168.10.1
- D
192.168.9.255
Show answer and explanation
Correct answers: A, C
Explanation
To determine if two IP addresses are in the same subnet, perform a bitwise AND operation between the IP address and the subnet mask, then compare the results. For the subnet mask 255.255.255.0, only the first three octets of the IP address are used to determine the subnet. Therefore, addresses with the same first three octets (192.168.10) belong to the same subnet.
- A. Correct.
192.168.10.50 is in the same subnet because the first three octets (192.168.10) match when using the subnet mask 255.255.255.0.
- B. Incorrect.
192.168.11.15 is not in the same subnet because the third octet (11) does not match 10 in the client's IP address when using the subnet mask 255.255.255.0.
- C. Correct.
192.168.10.1 is in the same subnet because the first three octets (192.168.10) match when using the subnet mask 255.255.255.0.
- D. Incorrect.
192.168.9.255 is not in the same subnet because the third octet (9) does not match 10 in the client's IP address when using the subnet mask 255.255.255.0.