1 to 15 = 16 ipaddresses u have 8 bit numbers in the ip address 0.0.0.0 2^8 = 255 so from 0 - 255 is what u have actually which makes ur mask something like 255.255.x.x or 255.255.255.x
0 to 255 makes it 256 as we count 0 also as an IP address. now since u have 16 ip addresses 256 - 16 = 240 this should be ur netmask. 255.255.255.240 Arvind ----- Original Message ----- From: "Rohan Almeida" <[EMAIL PROTECTED]> To: "linux-india-help" <[EMAIL PROTECTED]> Sent: Thursday, April 11, 2002 6:12 PM Subject: [LIH] ip and netmask > > Hi List, > > I have a block of ip addresses. > From that block, i have decided to have the lowest as the > network id and the highest as the broadcast. > > for eg. > for block 203.100.100.1 to 203.100.100.15 > network - 203.100.100.1 > broadcast - 203.100.100.15 > > Now how do i get the netmask for any ip > in range of 203.100.100.2 - 203.100.100.14 > > The normal ipcalc tool helps to get the network > and broadcast given the ip and netmask. > But i have the network and broadcast, > how do i get the netmask? > > And no, i am not starting an ISP :) > > -- > arc_of_descent > > > _______________________________________________ > linux-india-help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/linux-india-help _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
