371 views
5 5 votes

Two hosts, $X$ and $Y$, have IP addresses $192.168.10.150$ and $192.168.10.175$, respectively. They are on a network that uses a single subnet mask $M$. For $X$ and $Y$ to be on the same subnet, which of the following values for M is/are invalid?

  1. $255,255,255,192$
     
  2. $255.255 .255 .224$
     
  3. $255.255 .255 .128$
     
  4. $255.255 .255 .240$

4 Answers

0 0 votes
Valid is A,  C

Explanation:- 150 = 1001 0110

                        175 = 1010 1111

So till 2nd bit we can take subnet mask M , i.e 128 or 192
0 0 votes

Answer is b,d 

  • Both x and y are from class c.
  • So now to keep them in the same subnet we need the bits which are same in both x and y ip addresses host part so that we can differentiate the subnet part and host part. 
  • Look only the host part of both x and y  i,e. 150 and 175 we can have common upto first 2 bits msb (01).
  • So now to keep them in the same subetwork we can subnet masks as option A, C which are valid.
  • But in the last part of the question they asked for invalid M. So options B,D are correct.
0 0 votes
  • A. 255.255.255.192 (/26): Block size = 64 → subnet range 128–191. Both 192.168.10.150 and 192.168.10.175 belong to this subnet, so this mask is valid.
  • B. 255.255.255.224 (/27): Block size = 32 → subnets 128–159, 160–191, ... Here, 150 belongs to 128–159 while 175 belongs to 160–191. Hence, they are in different subnets, making this mask invalid.

  • C. 255.255.255.128 (/25): Block size = 128 → subnet range 128–255. Both IP addresses lie in the same subnet, so this mask is valid.

  • D. 255.255.255.240 (/28): Block size = 16 → subnets 144–159, 160–175, ... Here, 150 belongs to 144–159 and 175 belongs to 160–175, so they are in different subnets. Hence, this mask is invalid.

Therefore, the invalid subnet masks are B and D.
 

Silly mistake from my side 😅. The question asks for the invalid subnet masks, but while solving I identified the valid ones instead.

Answer:
Position:
Show:

Related questions

5 5 votes
2 2 answers
356
356 views
GO Classes asked Oct 24, 2025
356 views
An Internet Service Provider (ISP) holds a large block of CIDR-based IP addresses: $150.100.0.0/18$. The ISP decides to allocate one-fourth of this block to Organization ...
4 4 votes
2 2 answers
543
543 views
GO Classes asked Oct 24, 2025
543 views
A university department is setting up a new network that uses the CSMA/CD protocol for media access. The network operates at a bandwidth of $100$ Mbps. The design specifi...
4 4 votes
1 1 answer
361
361 views
GO Classes asked Oct 24, 2025
361 views
A network link uses the Stop-and-Wait ARQ protocol to transmit data frames. The size of a data frame is $1500$ bytes. The transmission rate from the sender to the receive...
4 4 votes
2 2 answers
352
352 views
GO Classes asked Oct 24, 2025
352 views
A client and server establish a TCP connection. The connection has the following characteristics: the round trip time (RTT) is $10$ ms , the slow-start threshold is initi...