Exams › GATE › Technical
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?
- M, N, and P all belong to the same subnet
- Only M and N belong to the same subnet
- Only N and P belong to the same subnet
- M, N, and P belong to three different subnets
Correct answer: Only N and P belong to the same subnet
Solution
With mask 255.255.255.252 (/30) the network is the address with its last two bits cleared. .2 gives network .0, while .5 and .6 both give network .4. So M is alone in subnet .0 and N and P share subnet .4: only N and P belong to the same subnet (index 2).
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →