10,011 views
4 4 votes
For a class C network if IP address of a computer is 200.99.39.112 and subnet mask is 255.255.255.224 the decimal value of last octet of last host of sixth subnet is ?

shouldn't it be 190 but the answer given is 222? anyone help

8 Answers

Best answer
6 6 votes

class C default NetWork mask : 255.255.255.0 ..But subnet mask is 255.255.255.224

224 = 11100000 = 128 + 64 + 32

so, 3 1's have been borrowed from host bits which will now become subnet bit.  

for subnets there are 8 subnets ( 23 = 8 ) possible like 000, 001, 010 , 011 and so on .....  the first subnet is 000, second subnet 001, third 010 and fourth 011, fifth 100 , sixth 101 , seventh 110 , eight subnet 111 .

Hence subnet no of 6th subnet = 101 , 

The address with all 1s ( 111 11111 ) in host part is broadcast address and can't be assigned to a host. So the maximum possible last octal in a host IP is 111 11110 , 

here it asked 6th subnet so last octet of last host will be 101 11110 .

The decimal value of last octet of last host of sixth subnet is 101 11110 = 128+32+16+8+4+2 =190.

• edited by
3 3 votes
last address of sixth subnet will be 209.99.39.11011110   last octet 222
3 3 votes

If we divide according to decimal value then 110 part subnet otherwise 101 so according to 110 - 222(ans), 101 - 190(ans).

1 1 vote
As the given IP belongs to network of class C we know that out of 32 bits the first 24 bits are reserved for the nid . The subnet mask given to us is 255.255.255.224.

The last octet in this gives us the information about the subnet id bits i.e 3 as 224=11100000

So they are asking for the decimal value of the last octet of the last host of the 6th subnet ... So SID =110 As it is the last host rest all bits are 11110(last bit is not one because if it was 1 then it becomes directed broadcast address)

So we get 1101 1110=128+64+16+8+4+2=222.

Note: They are referring to subnet with id =6 if 6th subnet would be there then id would be 101 and ans will be 190 as

000- 1st subnet 001=2nd subnet 010- 3rd subnet 011-4th subnet 100-5th subnet 101-6th subnet 110-7th subnet 111-8thsubnet
1 1 vote
The question is about the sixth subnet not the one with subnet id 6.

6th subnet is actually the one with subnet id 5 (101)

The last host id in subnet 5 is

                                = subnet id of 6 - 2

                                = (1100 0000) - 2

                                = 192 - 2

                                = 190 //
1 1 vote
Answer given is correct cause first subnet starts with001 not with 000 cause the first subnet id and network id will be same so in subnet we don't consider the 2 subnet like here 000 and 111 cause later one will clash with DBA of network and DBA of last subnet .
Answer:
Position:
Show:

Related questions

3 3 votes
2 2 answers
2.5k
2.5k views
radha gogia asked Apr 6, 2018
2,485 views
Interface $A - 255.255.255.128$Interface $B -255.255.255.192$Interface $C -255.255.255.224$ 1) which one of the following IP addresses belong to interface $B$ ?$200.200.2...
3 3 votes
2 2 answers
1.1k
1.1k views
Na462 asked Nov 11, 2017
1,072 views
For class $B$ network, all even bit positions are selected for subnet mask bits. What is the possible subnet mask?$(A) 255.25.170.170$$(B) 255.255.85.85$$(C) 255.255.255....
1 1 vote
4 4 answers
4.5k
4.5k views
Na462 asked Dec 4, 2018
4,515 views
A class B network address 130.50.0.0 is submitted as follows. The last 10 bits of the host id are allotted for host number and the remaining 6 bits are reserved for subne...
1 1 vote
1 1 answer
2.4k
2.4k views
Na462 asked Sep 20, 2018
2,350 views