ISP grants block of addresses starting with 190.100.0.0/16. It needs to distribute IP's to customer as:-
a)First group has 64 customers, each with 256 addresses.
b)Second group has 128 customers, each with 128 addresses.
c)Third group has 128 customers, each with 64 addresses.
What are the address ranges for each group ?
The solution says that for 1st group we allocate IP addresses from 190.100.0.0/24 (1st customer) to 190.100.63.255/24(last or 64th customer).
My doubt is how is network id 24? 190.100.0.0 can be written as 190.100.00000000.00000000 . I think that the bold part acts as a subnet ID which is given to each group by the ISP and the remaining (32-(16+2))=14 should be the host ID.
So if we consider 1st group then starting address will be 190.100.00000000.00000000/18 and ending address should be 190.100.00111111.11111111/18 which is the same address range as given in the solution except for the number of bits in the network ID part which I think should be 18 (16+2).
Also, for the 2nd group we can have subnet ID as 01 and have address range as 190.100.01000000.00000000/18 to 190.100.01111111.11111111/18 but here the solution says netid part should have 25 bits.
Where am I going wrong?
PS:- This is not an homework question. It is a solved example in forouzan book which I am trying to understand.
Take a look at this tutorial:
[https://networkengineering.stackexchange.com/questions/7106/how-do-you-calculate-the-prefix-network-subnet-and-host-numbers](https://networkengineering.stackexchange.com/questions/7106/how-do-you-calculate-the-prefix-network-subnet-and-host-numbers) – mushr00mer1990 Oct 11 '17 at 09:21