2,152 views
4 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 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 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

Position:
Show:

Related questions

1 1 vote
1 1 answer
1.1k
1.1k views
0 0 votes
1 1 answer
4.0k
4.0k views
Hirak asked May 30, 2019
4,033 views
Which of the following is a public IP?10.15.14.12192.168.52.62173.32.1.1None
2 2 votes
0 0 answers
1.1k
1.1k views
Sambhrant Maurya asked Sep 16, 2018
1,135 views
A host in a subnet has the IP address 130.83.126.10. How many hosts can be addressed in the network?
2 2 votes
0 0 answers
2.2k
2.2k views
Ahsanul Hoque asked Mar 31, 2018
2,158 views
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: $245.248.128.0/20$. The ISP wants to give half of this chunk of a...