1838661 Members
10231 Online
110128 Solutions
New Discussion

Address Classes

 
Tri_1
Occasional Contributor

Address Classes

I'm reading the "HP-UX 10.X SYSTEM ADMINISTRATION "HOW TO" BOOK written by Marty Poniatowski.On page 117, Figure 2-4 shown the Network Supported by class C is 2097157, I could not figure out how this number derived from. If anyone has the answer please help. Thank you!
tri
3 REPLIES 3
Ken Scharpell
Valued Contributor

Re: Address Classes

He has the same number in his HPUX11 Admin book, but he deails how its calculated - do you have access to ths HPUX11 version of his book ?

Basically, Class C is from 192.0.0.1 to 224.255.254.254 which means the number above is derived as;

(224-192) * 256 * 256 = 2097152 (which is pretty close! dont ask me why)
The whole world is a simple perl script
Rita C Workman
Honored Contributor

Re: Address Classes

Basically that's how many IP's you could assign......this slicing up (subnetting) is covered in the Network Portion of the Administrator classes (at least that's where I got the information...) Here's a couple tidbits- - -

000.000.000.000
the first 2 sets of octets = network portion
the second 2 sets of octets= hosts portions

Class A=0-127 # of nets would be=127 & # of hosts=16,777,214
Class B=128-191 # of nets would be=16,383 & # of hosts=65,534
Class C=192-223 # of nets woudl be=2,097,151 $ # of hosts=254

Simple ...
...Well at least I made it through the class...even if I never get to use this stuff..(we have a guy just for networking..)
Regards,
federico_3
Honored Contributor

Re: Address Classes

The structure of an IP address contains 2 parts:
-> network part
-> host part

The network portion identifies the logical network to which the host belongs.
IP address are represented by 4 8-bits fields.
Three classes of network address are available 8 (A-> large networks with more than 65000 nodes, B -> medium networks with nodes between 128 and 65000, C-> small networks with less than 128 nodes)
CLASS A -> network bits=8, host bits=24 ( number of nets 127 (range 1-127)
CLASS B -> network bits=16, host bits=16( number of nets 16383(range 128-191)
CLASS C -> network bits=24, host bits=8( number of nets 2097151(range 192-224).

Regards,

federico