1,042 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 .

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
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 votes
1 votes
1 answer
1
0 votes
0 votes
1 answer
2
Hirak asked May 30, 2019
3,014 views
Which of the following is a public IP?10.15.14.12192.168.52.62173.32.1.1None
2 votes
2 votes
0 answers
3
Sambhrant Maurya asked Sep 16, 2018
718 views
A host in a subnet has the IP address 130.83.126.10. How many hosts can be addressed in the network?