Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-07-2006, 02:27 PM   #1 (permalink)
Broken In
 
Join Date: Apr 2005
Posts: 152
Default IP range calculation??????


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
taken is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-07-2006, 10:46 AM   #2 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default Re: IP range calculation??????

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.
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 13-07-2006, 11:18 AM   #3 (permalink)
Broken In
 
ninad_mhatre85's Avatar
 
Join Date: Feb 2006
Posts: 116
Default Re: IP range calculation??????

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 by ninad_mhatre85; 13-07-2006 at 11:22 AM.
ninad_mhatre85 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by ico
- by Tenida
- by gohan89
- by clinton

Advertisement




All times are GMT +5.5. The time now is 10:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2