If the IP is 18.104.22.168 and Subnet Mask is 255.255.255.240. How many numbers of subnets and hosts possible in each subnet are:
Thank you @Kabir5454
I’ve found This explanation from chegg.com and RBR solution, where number of subnet is subtracted by 2. Results to 16- 2 = 14 subnets
Could you please clarify that the solution given by them is wrong?
Why should we subtract 2 from number of subnet ? Did they provide any clearance on that ?For No of host there is a reason why we subtract $2$ from them but i don’t know any reason for number of subnets.As per me the solution provide by them is wrong.
See this question : GATE CSE 2007 | Question: 67, ISRO2016-72 - GATE Overflow for GATE CSE
Read each and every discussion hope that helps.
Since 22.214.171.124 is a class C address and in class c address bits used for Network ID are 24 bits
The given subnet mask is 255.255.255.240 = 11111111.11111111.11111111.11110000
Number of bits used for subnetting are 4
So Number of subnets = 2 Power ( Bits used for Subneting) = 16
Last 4 bits 0000 are used fir host
Number of hosts per subnet= 2 Pow( Bits used for Hosts ) - 2
= 16 – 2 = 14