IPv4 Addressing
IPv4 Addressing
IPv4 Addressing
IPv4 Address
• An Internet protocol address is a protocol used to
communicate packet of data across a network.
• IPv4 is controlled by IANA.
• Unique address.
• 32-bit logical address.
• IP address have four segment.
• Represented in decimal form.
• Each octet have 8 bit.
• Each octet have a range in between 0-255.
• E.g. 192.168.10.5.
• Each octet is separated with dot operator(Dotted decimal).
IPv4 Structure
class 1st octet Decimal Network ID(N)/ Default Subnet
range Host ID(H) mask
A 1-126 N.H.H.H 255.0.0.0
B 128-191 N.N.H.H 255.255.0.0
C 192-223 N.N.N.H 255.255.255.0
D 224-239 Reserved for multicast
E 240-254 Reserved for Broadcast
Decimal to Binary Conversion
The Simplest method of converting between decimal and binary is to remember
the following table.
128 64 32 16 8 4 2 1
Example
128+32+8+4=172
128 64 32 16 8 4 2 1
1 0 1 0 1 1 0 0
128 64 32 16 8 4 2 1
1 1 1 1 0 0 0 1
128+64+32+16+1=241
Static and Dynamic IP address
Static IP address:
Dynamic Address:
Private IP Range:
Class A 10.0.0.0 – 10.255.255.255
Start->Run->cmd->ping 127.0.0.1
Class A - /8
Class B - /16
Class C - /24
SUBNETTING
Making subnets from a parent network is called subnetting.
Avoid IP wastage.
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0
1 1 128
2 1 1 192
3 1 1 1 224
4 1 1 1 1 240
5 1 1 1 1 1 248
6 1 1 1 1 1 1 252
7 1 1 1 1 1 1 1 254
8 1 1 1 1 1 1 1 1 255
Class-c Subnetting(1-bit)
N N N H
10000000 00000000 00000000 00000000
STEP-1
STEP-2
STEP-3
STEP-4
• 255.255.255.128
STEP-5
192.168.1.0/25 192.168.1.127
192.168.1.128/25 192.168.1.255/25
IPv6 OVERVIEW
Enhanced Security.
IPv6 ADDRESS FORMATE
An IPv6 Address is 128 bits long.
Example:-
2340:0023:AABA:0A01:0055:5054:9BAC:DDCE
IPv6 ADDRESSING SHORTENING
There are two conversions that can help to shorten IPv6
Address.
Example:-
2340:0023:AABA:0A01:0055:5054:9BAC:DDCA
Example
1454:0045:0000:0000:4140:0141:0055:ABBB
1454::4140:141:55:AABB
IPV6 COMMUNICATION TYPES
UNICAST:
Types:-
MULTI-CAST:
ANY CAST:
Invalid IP-0000:0000:0000:0000:0000:0000:0000:0000 or ::