in Computer Networks retagged by
760 views
8 votes
8 votes

Consider two hosts $A$ and $B$, connected to router $R$, creating two subnets: Subnet $1$ and Subnet $2,$ as shown in the figure. The interface IPs of Subnet $1$ are also depicted in the given diagram.

Assume that, for every subnet, the all-zeros address is reserved for the network name, and the all-ones address is reserved for broadcast. The network administrator wants to establish a subnet mask for Subnet $1$ so that the network prefix has maximal length.

What should be the maximal length subnet mask for Subnet $1?$

  1. $125.126 .11 .0 / 26$
  2. $125.126 .11 .16 / 27$
  3. $125.126 .11 .16 / 28$
  4. $125.126 .11 .28 / 30$
in Computer Networks retagged by
760 views

1 comment

$ \large{\colorbox{yellow}{Detailed video solution of this question with direct time stamp}}$
All India Mock Test 2 - Solutions Part 2

0
0

1 Answer

5 votes
5 votes

Options start with $125.126.11$ but the figure has $135.126.11$ so might be a misprint.

Other than that,

We could do the following (125.126.11.000111 as mask) BUT

125.126.11.31 = 125.126.11.00011111

125.126.11.28 = 125.126.11.00011100

All $0’s$ and all $1’s$ are reserved for broadcast and network name and here we have $11$ and $00$ in the host id.

So we cannot use the above mask as host ID of A and B clash with broadcast and network id respectively.

So we have to do (125.126.11.00 as mask )

125.126.11.31 = 125.126.11.00011111

125.126.11.28 = 125.126.11.00011100

This is the longest subnet mask for which both the host id’s don’t have all $0’s$ or all $1’s$.

So, Subnet 1’s mask that has maximal network prefix length can be, $125.126.11.0/26$

 

edited by
Answer:

Related questions