in Computer Networks
1,065 views
4 votes
4 votes
IP : 199. 166.15.119

SubNet Mask: 255. 255. 255. 240

Then Find the

(i) SubNet ID ?

(ii) SubNet No. ?

(iii) First host of the SubNet ?

(iv) Last host of the SubNet?

(v) third host of the first SubNet?

I found ambiguity in ans person to person .
in Computer Networks
1.1k views

4 Comments

@Ashwin Kulkarni 

Last usable host of the first subnet = 199.166.15.0000 1111 = 199.168.15.15

if we are talking about Last usable host of the first subnet then it should be 199.166.15.0000 1110 = 199.168.15.14

Please check once.

1
1
What is meant here by SubnetNo. ? - Is it no of possible subnets or something else (means 8 th subnet..)?
0
0
I think the question seems to be incomplete. It didn’t mention how many subnet bits should be there or number of bits of network ID. Without that we cannot have clear idea of number of subnets as there can be multiple.
0
0

2 Answers

3 votes
3 votes
IP : 199. 166.15.119 (0111 0111)

SubNet Mask: 255. 255. 255. 240 (1111 0000)

Subnet Id: ANDing of IP and Subnet Mask 199.166.15.119 AND 255.255.255.240 is 199.166.15.112

No. of Subnet = 199 (this is class C network) so number of 1's in fourth octect will give no of subnet that is 2^4 =16

(iii) First host of the SubNet

    199.166.15.0111 0001 tha is 199.166.15.113

(iv) Last host of the SubNet

199.166.15.0111 1110    (not 01110 1111) because it is for broadcasting

So ,  199.166.15.126 is answer .

(v) third host of the first SubNet

 199.166.15.0000 0011 here 0000 considered as first subnet and 0011 is considered as 3rd host as 4 bits are for host id and 4 bits are for network id.

So 199.166.15.3 will be the answer
by
0 votes
0 votes

This is "Ctrl + C & V" version of @Ashwin Kulkarni Answer.

I feel there should be a correction. (find as marked blue)

Subnet ID = 199.166.15.112.

4 bits are used for subnetting, hence 0000,0001,0010...1111 are the subnets

First usable host of the first subnet = 199.166.15.0000 0001 = 199.166.15.1

Last usable host of the first subnet = 199.166.15.0000 1111 = 199.168.15.15 should be 199.166.15.0000 1110 = 199.168.15.14

Last usable host of the whole subnet = 199.168.15.1111 1110 = 199.168.15.254

Third host of the 1st subnet = 199.168.15.0000 0011 = 199.166.15.3

Related questions

1 vote
1 vote
1 answer
1