Suppose computers and have addresses and respectively and they both use same netmask . Which of the values of given below should not be used if and should belong to the same network?
View worked solution
Answer: D
For two IP addresses to belong to the same network, their network IDs (obtained by performing a bitwise AND operation between the IP address and the netmask) must be identical.
The first three octets of both IP addresses ( and ) are identical (). Thus, we only need to compare the fourth octet of the IP addresses with the fourth octet of the netmask ().
Convert the fourth octets of the IP addresses to binary:
Now, let's test the given netmask options for the fourth octet ():
- Option A ():
(Equal, same network) - Option B ():
(Equal, same network) - Option C ():
(Equal, same network) - Option D ():
(Not equal, different networks)
Therefore, the netmask should not be used.
Free practice · Your answers on this page are not saved.
