IP range calculation??????

Status
Not open for further replies.

taken

Journeyman
HI,
can anyone tell me on how to know the total no of IP that can be used given a IP and a mask.

say: 10.202.18.8... this last octact i.e. 8 is a bit confusing. can be 9/10...
Mask 255.255.255.240

is there any program to get this done???

regs
ken
 

it_waaznt_me

Coming back to life ..
10.202.18.8 is a Class A address and the mask 255.255.255.240 or /28 or 4 bits borrowed.
Now Class A address have 8 bits for network portion and 24 bits for host portion. Now number of subnets created with this config is :
2^4 = 16 total subnets
and 2^4 - 2 = 14 usable hosts per subnet.

You can use Semsim for these calculations.
 

ninad_mhatre85

Journeyman
hii taken there are 5 types of ip add A, B ,C, D ,E. we dont use D & E
ip add contains network & host part .
so to identify host part from total ip machine use subnet mask so subnet mask by default is
A === N:N:N:H(total ip) mask == 255.255.255.000
B === N:N:H:H(total ip) mask == 255.255.000.000
C === N:H:H:H(total ip) mask == 255.000.000.000
wher N>network, H> host

i dont know whether u know abt binary AND operation this mask is ANDed with ur ip find out host

if u know binary system u can identify ip class just convert ip into binary
eg. 64.64.64.12 >>> 01000000.01000000.01000000.00001100
and check for first(s) digits
A== 0
B== 10
C== 110
D== 1110
E== 1111 just check with ur add
for ur case ur ip is 10.202.18.8> 00001010. 11001010.00010010.00001000
so first bit is"0" hence its class A
 
Last edited:
Status
Not open for further replies.
Top Bottom