Monday, July 15, 2013

Types Of IP Address

There are 2 types of IP Adress


1.  Public  IP Address
2.  Private IP Address


i) Public IP Address are routble Address
i) Private IP Address are non routble Address

ii) Public  IP Address are registered Address
ii) Private IP Address are Unregistered Address

iii)public   IP Address are Unique Address.
iii)Private  IP Address  Can be used Repeatedly.


Private IP ADDRESS are reserved IP Address


Class A

10.0.0.0  -  10.255.255.255


Class B
172.16.0.0 -  172.31.255.255

Class C
192.168.0.0  - 192.168.255.255


128 |  1 0 0 0 0 0 0 0
192 |  1 1 0 0 0 0 0 0
224 |  1 1 1 0 0 0 0 0
240 |  1 1 1 1 0 0 0 0
248 |  1 1 1 1 1 0 0 0
252 |  1 1 1 1 1 1 0 0
254 |  1 1 1 1 1 1 1 0
255 |  1 1 1 1 1 1 1 1

SOME QUERY

1.  192.168.0.1     (IP ADDRESS)
    255.255.255.128  (Subnet Mask)
    (IP address is the Class C Address) We have to see the Host that is 128

ON Bits(1) is 1 AND  OFF Bits (0) is the 7 see in the Table

So
Network = 2^1  ==>2
Host    =2^7-2 ==>128-2 ==> 126

 So the Network is 2 and Host is 126


Now we have to allocate the IP Address



Network no. 1


192.168.0.0(Network ID)
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.4
192.168.0.5
192.168.0.6
192.168.0.7
192.168.0.8
192.168.0.9
192.168.0.10
.
.
.
.
.
.
.
.
192.168.0.123
192.168.0.124
192.168.0.125
192.168.0.126
192.168.0.127(Broadcast ID)

We have 126 Host and 1 host is used for Network ID and 1 host is used for Broadcast ID (Total is 128 Host)

Network No. 2


192.168.0.128 ( Network ID)
192.168.0.129
192.168.0.130
192.168.0.131
192.168.0.132
192.168.0.133
.
.
.
.
.
.
.
192.168.0.250
192.168.0.251
192.168.0.252
192.168.0.253
192.168.0.254
192.168.0.255(BroadCast ID)
We have 126 Host and 1 host is used for Network ID and 1 host is used for Broadcast ID (Total is 128 Host)