3,297 views
0 votes
0 votes
An organization has a class C network and wants to form a subnet for four departments with hosts as follows:

A:72

B:35

C:20

D:18

what is the possible arrangements?

options:

a) for A: 255.255.255.128 for B: 255.255.255.192 for C & D: 255.255.255.223

b)for A 255.255.255.223 for B: 255.255.255.223 for C & D : 255.255.255.128

My approach for solution:

I just eliminated the rest options and i did it as follows,

for option a) 128=10000000 , so there is $2^{7} = 128$ hosts possible, so it can be for A , again 192= 1100000 so there are $2^{6} = 64 hosts possible , but in 223 = 10110111 means only 4 hosts are possible.

so option A is not possible. But answer given is option A.

I know i am lacking some concept here , please care to correct :)

1 Answer

2 votes
2 votes

The correct answer will be A: 255.255.255.128 for B: 255.255.255.192 for C & D: 255.255.255.224

Organization class given as C i.e. the network bits are 24 and rest are host bits, and the subnet bits are borrowed from the host portion. Lets see for all four cases one by one.

A. 72 = 2^7-2 => 126     (as 2^6 will be less)
Therefore, Network bits = 24, Subnet bits = 1 and host bits will be 7.
We can write it as 11111111 11111111 11111111 10000000, the decimal equivalent of this is 255.255.255.128

B. 35 = 2^6-2 => 62       (as 2^5-2 will be less)
Therefore, Network bits = 24, Subnet bits = 2 and host bits will be 6.
We can write it as 11111111 11111111 11111111 11000000, the decimal equivalent of this is 255.255.255.192

C. 20 = 2^5-2 => 30     (as 2^4-2 will be less)
Therefore, Network bits = 24, Subnet bits = 3 and host bits will be 5.
We can write it as 11111111 11111111 11111111 11100000, the decimal equivalent of this is 255.255.255.224

D. 18 = 2^5-2 => 30     (as 2^4-2 will be less)
Therefore, Network bits = 24, Subnet bits = 3 and host bits will be 5.
We can write it as 11111111 11111111 11111111 11100000, the decimal equivalent of this is 255.255.255.224

edited by

Related questions

1 votes
1 votes
0 answers
1
rahul sharma 5 asked Aug 13, 2017
299 views
Message digest provides only message authentication or can it provide user authentication also?MDC is a digest for message authentication.Can i also say MAC is also a dig...
1 votes
1 votes
1 answer
2
*p asked Feb 17, 2019
16,736 views
In a LAN network every system is identified by(a) Name(b) MAC Address(c) IP Address(d) Serial number given by manufacturerthe answer is given as IP address but according ...