Professional Documents
Culture Documents
02 Ip Address
02 Ip Address
IP Address
Naveen Patel
IP version 4
Naveen Patel
IP version 6
• It is represented in Hex notation
FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
• Format of IPv6 address:
x : x : x : x : x : x : x : x where x is 16 bits
(4 Hex digits)
• Not case sensitive for A,B,C,D,E,F
• Leading zeros in a field are Optional.
• Successive Fields of 0 can be represented as “::”
but only once.
Eg: 2031:0000:0000:130f:0000:0000:09c4:1300
The above example can be rewritten as below:
2031::130f:0:0:9c4:1300
Naveen Patel
IPv4 address range
Taking Example for First Octet :
Total 8 bits, Value will be 0’s and 1’s
i.e. 28 = 256 combination
27 26 25 24 23 22 21 20
0 0 0 0 0 0 0 0 = 0
0 0 0 0 0 0 0 1 = 1
0 0 0 0 0 0 1 0 = 2 Total IP Address Range
0 0 0 0 0 0 1 1 = 3 0.0.0.0
0 0 0 0 0 1 0 0 = 4 to
255.255.255.255
1 1 1 1 1 1 1 1 = 255
Naveen Patel
IP Address Classification
• CLASS A
• CLASS C
Naveen Patel
Parity Bit
Naveen Patel
CLASS A Range
In Class A : First bit of the first octet
is reserved as priority bit, bit value is zero.
0 1 1 1 1 1 1 1 = 127
Naveen Patel
CLASS B Range
In Class B : First two bits of the first
octet are reserved as priority bits, bit value as 10.
1 0 1 1 1 1 1 1 = 191
Naveen Patel
CLASS C Range
For Class C range : First Three bits of the first
octet are reserved as priority bits, bit value as 110.
1 1 0 1 1 1 1 1 = 223
Naveen Patel
CLASS D Range
For Class D range : First four bits of the first
octet are reserved as priority bits, bit value as 1110.
1110xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 26 25 24 23 22 21 20
1 1 1 0 0 0 0 0 = 224
1 1 1 0 0 0 0 1 = 225
Class D Range
1 1 1 0 0 0 1 0 = 226
1 1 1 0 0 0 1 1 = 227 224. 0 . 0 . 0
1 1 1 0 0 1 0 0 = 228 to
239.255.255.255
1 1 1 0 1 1 1 1 = 239
Naveen Patel
CLASS E Range
For Class E range : First four bits of the first
octet are reserved as priority bits, bit value as 1111.
1111xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 26 25 24 23 22 21 20
1 1 1 1 0 0 0 0 = 240
1 1 1 1 0 0 0 1 = 241
1 1 1 1 0 0 1 0 = 242 Class E Range
1 1 1 1 0 0 1 1 = 243 240. 0 . 0 . 0
1 1 1 1 0 1 0 0 = 244 to
255.255.255.255
1 1 1 1 1 1 1 1 = 255
Naveen Patel
Octet Format
Naveen Patel
CLASS A – No. Networks & Hosts
• Class A Octet Format is N.H.H.H
Network bits : 8 Host bits : 24
No. of Networks
= 2no of network bits– Priority bit
= 28-1 (-1 is Priority Bit for Class A)
= 27
= 128 – 2 (-2 is for 0 & 127 Network)
= 126 Networks CLASS A
126 Networks
&
No. of Host 16777214 Hosts per
= 2 no of host bits
-2 Network
= 224 – 2 (-2 is for Network ID & Broadcast ID)
= 16777216 - 2
= 16777214 Hosts/Network
Naveen Patel
CLASS B – No. Networks & Hosts
• Class B Octet Format is N.N.H.H
Network bits : 16 Host bits : 16
No. of Networks
Network address: IP address with all bits as ZERO in the host portion.
Broadcast address: IP address with all bits as ONES in the host portion.
Valid IP Addresses lie between the Network Address and the Broadcast
Address.
Naveen Patel
Example - Class A
Class A : N.H.H.H
Network Address :
0xxxxxxx.00000000.00000000.00000000
Broadcast Address :
0xxxxxxx.11111111.11111111.11111111
Class A
10.0.0.0 Network Address
10.0.0.1
10.0.0.2
10.0.0.3
Valid IP Addresses
10.255.255.254
10.255.255.255 Broadcast Address
Naveen Patel
Example - Class B
Class B : N.N.H.H
Network Address :
10xxxxxx.xxxxxxxx.00000000.00000000
Broadcast Address :
10xxxxxx.xxxxxxxx.11111111.11111111
Class B
172.16.0.0 Network Address
172.16.0.1
172.16.0.2
172.16.0.3
Valid IP Addresses
172.16.255.254
172.16.255.255 Broadcast Address
Naveen Patel
Example - Class C
Class C : N.N.N.H
Network Address :
110xxxxx.xxxxxxxx.xxxxxxxx.00000000
Broadcast Address :
110xxxxx.xxxxxxxx.xxxxxxxx.11111111
Class C
192.168.1.0 Network Address
192.168.1.1
192.168.1.2
192.168.1.3
Valid IP Addresses
192.168.1.254
192.168.1.255 Broadcast Address
Naveen Patel
Private IP Address
Class A
10.0.0.0 to 10.255.255.255
Class B
172.16.0.0 to 172.31.255.255
Class C
192.168.0.0 to 192.168.255.255
Naveen Patel
Subnet Mask
Naveen Patel
Subnet Mask - Examples
Class A : N.H.H.H
11111111.00000000.00000000.00000000
Default Subnet Mask for Class A is 255.0.0.0
Class B : N.N.H.H
11111111.11111111.00000000.00000000
Default Subnet Mask for Class B is 255.255.0.0
Class C : N.N.N.H
11111111.11111111.11111111.00000000
Default Subnet Mask for Class C is 255.255.255.0
Naveen Patel
How Subnet Mask Works ?
IP Address : 192.168.1.1
Subnet Mask : 255.255.255.0
ANDING PROCESS :
Requirement of Networks ?
Requirement of Hosts ?
Naveen Patel
Scenario for Subnetting
– MCSE 192.168.1.1 to
– CISCO 192.168.1.20
192.168.1.21 to 192.168.1.40
– Hardware 192.168.1.41 to 192.168.1.60
– Linux 192.168.1.61 to 192.168.1.80
– Exchange 192.168.1.81 to 192.168.1.100
Naveen Patel
Scenario (…continued)
• Administrator’s Requirement :
Inter-department communication should not be
possible ?
Solution.
Allocate a different Network to each Department
i.e.
– MCSE 192.168.1.1 to 192.168.1.20
– CISCO 192.168.2.1 to 192.168.2.20
– Hardware 192.168.3.1 to 192.168.3.20
– Linux 192.168.4.1 to 192.168.4.20
– Exchange 192.168.5.1 to 192.168.5.20
Naveen Patel
Main Aim of Subnetting
Naveen Patel
Power table
POWER TABLE
1 128 10000000
2 192 11000000
3 224 11100000
4 240 11110000
5 248 11111000
6 252 11111100
7 254 11111110
8 255 11111111
Naveen Patel
Requirement of Networks is 5 ?
Example – 1
Class C : N.N.N.H
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
Class C : 192.168.1.0
• No. of Subnet
= 2n – 2 Req. of Subnet
= 23 – 2 5 (-2 is for First & Last Subnet Range)
= 8–2
= 6 Subnet
• No. of Host
= 2h – 2 (-2 is for Network ID & Broadcast ID)
= 25 – 2
= 32 – 2
= 30 Hosts/Subnet
• Customized
If you Subnet
convertMask
3 Host= Bits to Network Bits
255. 6255.
Subnet & 255. 224
30 Hosts/Subnet
11111111 11111111 11111111 11100000
. Customized
. Subnet
. Mask
8
4
2
2
6
3
1
255.255.255.224
• Range of Networks
Network ID Broadcast ID
Subnet Range
192.168.1.0 192.168.1.31 x
192.168.1.32 to 192.168.1.63 MCSE .
192.168.1.32 192.168.1.63
192.168.1.64 to 192.168.1.95 CISCO .
192.168.1.64 192.168.1.95
192.168.1.96 to 192.168.1.127 FIREWALL
192.168.1.96 192.168.1.127
192.168.1.128 to 192.168.1.159 SOLARIS
Valid Subnets
192.168.1.128 192.168.1.159
192.168.1.160 to 192.168.1.191 TRAINING
192.168.1.160 192.168.1.191
192.168.1.192 to 192.168.1.223 Future Use
192.168.1.192 192.168.1.223
192.168.1.224 192.168.1.255 x
Naveen Patel
Requirement of Networks is 14 ?
Example – 2
Class C : N.N.N.H
110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx
Class C : 192.168.1.0
• No. of Subnet
= 2n – 2 Req. of Subnet
= 24 – 2 14 (-2 is for First & Last Subnet Range)
= 16 – 2
= 14 Subnet
• No. of Host
= 2h – 2 (-2 is for Network ID & Broadcast ID)
= 24 – 2
= 16 - 2
= 14 Hosts/Subnet
• Customized
If you Subnet
convertMask = Bits to Network Bits
4 Host
255. 14255.
Subnet &255. 240
14 Hosts/Subnet
11111111 11111111 11111111 11110000
. Customized
. Subnet
. Mask
8
4
2
16
2
6
3
1
255.255.255.240
• Range of Networks
Network ID Broadcast ID
Subnet Range
192.168.1.0 – 192.168.1.15x
192.168.1.16 to 192.168.1.31
192.168.1.16 – 192.168.1.31
192.168.1.32 to 192.168.1.47
192.168.1.32 – 192.168.1.47
192.168.1.48 to 192.168.1.63
192.168.1.48 – 192.168.1.63
192.168.1.64 to 192.168.1.80Valid Subnets
192.168.1.224 – 192.168.1.239
192.168.1.224 to 192.168.1.239
192.168.1.240 – x
192.168.1.255
Naveen Patel
Naveen Patel