7 October University

th

Faculty Of Information Technology
IP Addressing & Subnetting
prepared by: 1.Ahmed Abdu.alrrahman. 2.Ahmed Algobbi. 3.Abdulfattah Hadeed. Supervised by: Mr. Ali Erfaida.

6-jan-2009

1

IP Address Classes

IP addresses are divided into 5 classes, each of which is designated with the alphabetic letters A to E. Class D addresses are used for multicasting. Class E addresses are reserved for testing & some mysterious future use.

6-jan-2009

2

...(IP

Address Classes

(Cont

The 5 IP classes are split up based on the value in the 1st octet:

6-jan-2009

3

...(IP

Address Classes

(Cont

Using the ranges, you can determine the class of an address from its 1st octet value.  For example to first octet: 1. 120 is a Class A address. 2. 155 is a Class B address. 3. 220 is a Class C address.
6-jan-2009 4

...(IP

Address Classes

(Cont

The 32 bits of the IP address are divided into Network & Host portions, such as:
Network & Host Representation By IP Address Class
Class
Class A Class B Class C

Octet1
Network Network Network

Octet2
Host Network Network

Octet3
Host Host Network

Octet4
Host Host Host

6-jan-2009

5

Class A Addresses

Class A

(126.37.88.202)

0NNNNNNN.HHHHHHHH.HHHHHHHH.HHHHHHHH

0 in the first bit of the first octet indicates a Class A IP address. Class A contain of 126 network addresses (from1 to127) Using our formula, (27 – 2), there can be 126 Class A Networks. Number of hosts: 224 -2 = 16,777,214

6-jan-2009

6

Class B IP Addresses

Class B

(189.199.6.38)

10 NNNNNN.NNNNNNNN.HHHHHHHH.HHHHHHHH

10 in the first two bits of the first octet indicates a Class B IP address. Class B contain of 16,382 network addresses (from128 to191).

Using our formula, (214 – 2), there can be 16,382 Class B Networks.
Number of hosts: 216 - 2 = 65,534

6-jan-2009

7

Class C IP Addresses

Class C

(192.153.186.26)

110NNNNN.NNNNNNNN.NNNNNNNN.HHHHHHHH.

110 in the first three bits of the first octet indicates a Class C IP address. Class C contain of 2,097,150 network addresses (from192 to223).

Using our formula, (221 – 2), there can be 2,097,150 Class C Networks. Number of hosts: 28 - 2 = 254
6-jan-2009 8

Addresses classes
class

1thOctet
D a Rn e eciml a g

1thOctetHigh
O erB rd its

Network/host ID (N=Network .H=Host

Default Subnet Mask

Number Of Networks

Hosts Per Network (Usable (Addresses 22)=16.777.214 (2- 4
=65.534

A B C

126 – 1

0

N.H.H.H

255.0.0.0

(2- 27)=126

191 - 128

10

N.N.H.H

255.255.0.0

=16.382

(2- 214 )
223 - 192 110 N.N.N.H 255.255.255.0 =2.097.150

(2- 216 )
=254

(2- 221 )

(2- 28)

6-jan-2009

9