Chapter Five
Chapter Five
Networking
Amoud University
Department of BIT/BSE/BCS
Chapter 5
Introduction to IP-Addressing
In this chapter, you will learn to:
CLASS Start - End Default Bit for the Bits for Hosting
subnet network the host
mask
A 1 - 126 255.0.0.0 /8 bits 24 bits 16.777.214
network (224-2 )
B 128 - 191 255.255.0.0 /16 bits 16 bits 65.534 (216-2)
network
C 192 - 223 255.255.255.0 /24 bits 8 bits 254 (28-2)
network
D 224 - 239 Class D is used for multicasting purpose
CLASS Start - End Default subnet Bit for the Bits for the Private IP Private IP address
mask network host Address End
starting
A 1 - 126 255.0.0.0 /8 bits 24 bits 10.0.0.0 10.255.255.255
network
B 128 - 191 255.255.0.0 /16 bits 16 bits 172.16.0.0 172.16.255.255
network 172.17.0.0 172.17.255.255
172.18.0.0 172.18.255.255
172.19.0.0 up 172.19.255.255
to 172.31.255.255
172.31.0.0
255 0 0 0
255 255 0 0
Class C Subnet Mask Network Network Network Host
Bit Position 8 7 6 5 4 3 2 1
In Binary 1 1 1 1 1 1 1 1
Examples of IP address in decimal notation are following:-
a) 172.168.1.1
b) 192.168.1.1
c) 10101100.10101000.00000001.00000001
d) 11000000.10101000.00000001.00000001
Examples of subnet mask in decimal notation are following:
-
a) 255.0.0.0
b) 255.255.0.0
c) 255.255.255.0
d) 11111111.00000000.00000000.00000000
e) 11111111.11111111.00000000.00000000
f) 11111111.11111111.11111111.00000000
Decimal to Binary
Example 1
10101100
00001010 00001000 11111111
Binary to Decimal
Example 3
11000000.10101000.00000001.00000001
Example 4