Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ipv4 Addressing

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 9

WHAT IS NETWORK ?

WHAT IS LAN NETWORK ?

WHAT IS WAN NETWORK ?

128 64 32 16 8 4 2 1
0_ 1 _ _ _ _ _ _ _

0 to 127

8 Bits 8 Bits 8 Bits 8 Bits

_____________._______________.______________._____________

Class Full Adress System

Network Host Host


Host
Class A
_____________._______________.______________._____________

Network Network Host


Host
Class B
_____________._______________.______________._____________
Network Network Network
Host
Class c
_____________._______________.______________._____________

192.168.1.0

EXAMPLE CLASS C 192.168.1.0


N N N H

192.168.1.00000000 TO
192.168.1.11111111
192.168.1.0 TO
192.168.1.255
TOTAL 256-2= 254
192.168.1.1 to

FIRST IP ADDRESS IN ANY NETWORK REPRESENTS NETWORK


NETWORK ID
LAST ADDRESS IN ANY NETWORK USED FOR BROADCAST

NETWORK SHOULD HAVE


IDENDITY NETWORK ID 192.168.1.0
BROADCAST ADDRESS
BROADCAST ID 192.168.1.255

RANGE 192.168.1.1 TO
192.168.1.254

Network ID: 192.168.1.0 Broadcast ID:


192.168.1.255
Range: 192.168.1.1 to 192.168.2.254
Subnet Mask: 255.255.255.0

192.168.1.0 to 192.168.1.255 (256-2) = 254


192.168.1.25
255.255.255.0
192.168.1.0

AND GATE 0 A = 0 1 A = A

192.168.1.25
255.255.255.0
192.168.1.0
gateway:192.168.1.1

10.10.10.10
255.0.0.0
10.0.0.0 10.0.0.0 to 10.255.255.255
10.0.0.1 to 10.255.255.254

100.100.100.100

100.0.0.0 to 100.255.255.255
FIXED LENGTH SUBNET MASK

192.168.1.0/24

128 64 32 16 8 4 2 1
192.168.1. ___ ___ ___ ___ ___ ___ ___ ___

192.168.1.0 to .63
192.168.1.64 .127
192.168.1.128 .191
192.168.1.192 .255

subnet 255.255.255.192

192.168.1.0 to 192.168.1.127 nid 192.168.1.0


bid 192.168.1.127 range 192.168.1.1 to 192.168.1.126

192.168.1.128 to 192.168.1.255 nid 192.168.1.128


bid 192.168.1.255 range 192.168.1.129 to 192.168.1.254

255.255.255.128

192.168.1.50 192.168.1.150
255.255.255.128 255.255.255.128
192.168.1.0 192.168.1.128
1BIT 2 TO THE POWER 1 = 2 networks

192.168.1.55 192.168.1.140
255.255.255.192 255.255.255.192

TWO NETWORKS WHAT DETAILS ARE ABOUT THIS TWO NETWORKS

EACH NET WORK 1. NETWORK ID 2. BROAD CAST 3. RANGE

1 NETWORK : 192.168.1.0 TO 192.168.1.127 = 128 NETWORK ID = 192.168.1.0 B


ID = 192.168.1.127 RANGE 192.168.1.1 TO 192.168.1.126

2 NETWORK : 192.168.1.128 TO 192.168.1.255 = 128 NETWORK ID = 192.168.1.128


B ID 192.168.1.255 RANGE 192.168.1.129 TO 192.168.1.254

SUBNET MASK 255.255.255.128

Exercise: 1. Divide above network into (a) 2 (b) 4 (c) 8


find network Id, Broadcast Id, Number of Hosts in each
network and subnet mask?

(a) First Sub Net : 192.168.1.0 to 192.168.1.127 Network ID: 192.168.1.0


Broad cast Id : 192.168.1.127
Range : 192.168.1.1 to 192.168.1.126 Subnet
Mask: 255.255.255.128

Second Sub Net : 192.168.1.128 to 192.168.1.255 Network ID:


192.168.1.128 Broad cast Id : 192.168.1.255
Range : 192.168.1.129 to 192.168.1.254 Subnet
Mask: 255.255.255.128

192.168.1.50 192.168.1.150
255.255.255.128 255.255.255.128
192.168.1.0 192.168.1.128

192.168.1.0 192.168.1.64 192.168.1.128


192.168.1.192
192.168.1.63 192.168.1.127 192.168.1.191
192.168.1.255
255.255.255.192

Variable Length Subnet Mask

VLSM Example
•One Organization is allotted with an IP address 201.45.222.0 / 24.
•They wanted to have subnets as follows:
–First subnet having Maximum 100 hosts.
–Second subnet having 60 hosts.
–Third subnet is having 28 hosts.
–Fourth and fifth sub net having 10 hosts

100 60 28 10 2

Solution:
128 64 32 16 8 4 2 1
201.45.222. ___ ___ ___ ___ ___ ___ ___ ___

201.45.222.0 to 201.45.222.127 .1 to .126


255.255.255.128
201.45.222.128 to 201.45.222.191 .129 to 190
255.255.255.192
201.45.222.192 to 201.45.222.223 .193 to .222
255.255.255.224
201.45.222.224 to 201.45.222.239 .225 to .238
255.255.255.240

201.45.222.240 to 201.45.222.243 .241 to .242


255.255.255.252

201.45.222.244 to 201.45.222.255

201.45.222.240 to 201.45.222.255 .241 to .254


255.255.255.240

(1) First Sub Net: 201.45.222.0 to 201.45.222.127

Network Id: 201.45.222.0 Broadcast Id: 201.45.222.127 Hosts:


201.45.222.1 to 201.45.222.126 (126)
Subnet Mask: 255.255.255.128

(2) Second Sub Net: 201.45.222.128 to 201.45.222.191

Network Id: 201.45.222.128 Broadcast Id: 201.45.222.191 Hosts:


201.45.222.129 to 201.45.222.190 (62)
Subnet Mask: 255.255.255.192
40

(3) Third Sub Net: 201.45.222.192 to 201.45.222.223

Network Id: 201.45.222.192 Broadcast Id: 201.45.222.223 Hosts:


201.45.222.193 to 201.45.222.222 (30)
Subnet Mask: 255.255.255.224

(4) Fourth Sub Net: 201.45.222.224 to 201.45.222.239

Network Id: 201.45.222.224 Broadcast Id: 201.45.222.239 Hosts:


201.45.222.225 to 201.45.222.238 (14)
Subnet Mask: 255.255.255.240

201.45.222.240 TO 201.45.222.243 201.45.222.241


TO 201.45.222.242
255.255.255.252

201.45.222.244 TO 201.45.222.255 LEFT OVER ADDRESSESS

(5) Fifth Sub Net: 201.45.222.240 to 201.45.222.255

Network Id: 201.45.222.240 Broadcast Id: 201.45.222.255 Hosts:


201.45.222.241 to 201.45.222.254 (14)
Subnet Mask: 255.255.255.240

EXAMPLE OF POINT TO POINT

(6) 201.45.222.240 to 201.45.222.243


NID 201.45.222.240 BID 201.45.222.243 hosts:
201.45.222.241 to 201.45.222.242
SUBNET MASK 255.255.255.252

left over addresses 201.45.222.244 to 201.45.222.255

You might also like