IP Addressing
IP Addressing
Networking
IP Address
• An Internet Protocol address (IP address) is a
numerical label assigned to each device connected to
a computer network that uses the Internet Protocol
for communication.
• (IPv4) defines an IP address as a 32-bit number.
11001100110011001100011110101010
32bits
GUSTO University
Private IP Address
GUSTO University
Public IP Address
Class
Public IP Range
1.0.0.0 ~ 9.255.255.255
A
11.0.0.0 ~ 126.255.255.255
128.0.0.0 ~ 172.15.255.255
B
172.32.0.0 ~ 191.255.255.255
192.0.0.0 ~ 192.167.255.255
C
192.169.0.0 ~ 223.255.255.255
GUSTO University
IP Addresses - Class A
Ø0~127 (1~126)
Øall 0 reserved
Ø01111111 (127) reserved for loopback
ØFirst octet also included in network address
ØNumber of Network address=2n =27 =128 -2=126
ØNumber of Host address= 2n-2=16,777,214
ØPrefix length= /8
ØSubnet mask=255.0.0.0
Ørange 1.0.0.1 to 126.255.255.254
GUSTO University
IP Addresses - Class B
Ø128~191
Øsecond octet also included in network address
ØNumber of Network address=2n =214 =16384
ØNumber of Host address= 2n-2=65,524
ØPrefix length= /16
ØSubnet mask=255.255.0.0
Ørange 128.0.0.1-192.255.255.254
GUSTO University
IP Addresses - Class C
Ø192~223
Øthird octet also included in network address
ØNumber of Network address=2n =221 =2,097,154
ØNumber of Host address= 2n-2=254
ØPrefix length= /24
ØSubnet mask=255.255.255.0
Ørange 192.0.0.1-223.255.255.254
GUSTO University
Subnet mask
Class Subnet Mask Bit Pattern Subnet Mask
Types of IP address
• Static address
• Dynamic address
GUSTO University
Static IP address
Manually input by network administrator
ü Manageable for small networks
ü Requires careful checks to avoid duplication
GUSTO University
Dynamic IP address
Examples - BOOTP, DHCP
ü Assigned by server when host boots
ü Derived automatically from a range of addresses
ü Duration of ‘lease’ negotiated, then address released back to server
GUSTO University
Routing Protocols
According to the type of area in which protocol is used there are again two types of
protocol: -
(1) Interior Routing Protocol
(2) Exterior Routing Protocol
Interior Routing Exterior Routing
RIP BGP
IGRP
EIGRP
OSPF
ISIS
GUSTO University
End of Session
GUSTO University
Classless IP Address
Subnetting
GUSTO University
Subnetting IP Networks
ü Designing, implementing and managing an effective
IP addressing plan ensures that networks can operate
effectively and efficiently.
üIn a small network, with a limited number of devices,
a flat network design is not problematic.
üThe process of segmenting a network, by dividing it
into multiple smaller network spaces, is called
subnetting.
üThese sub-networks are called subnets.
üSubnetting can reduce overall network traffic and
improve network performance.
GUSTO University
Subnetting IP Networks
Address Mask
192 168 1 0 0 0 0 0 0 0 0
Subnetting IP Networks
GUSTO University
Subnetting
Class A= 11111111.00000000.00000000.00000000 = 255.0.0.0 /8
Class B= 11111111.11111111.00000000.00000000 = 255.255.0.0 /16
Class C= 11111111.11111111.11111111.00000000 = 255.255.255.0 /24
Classless IP Address
/5 = 11111000.00000000.00000000.00000000 = 248.0.0.0
/20 = 11111111.11111111.11110000.00000000 = 255.255.240.0
/25 = 11111111.11111111.11111111.10000000 = 255.255.255.128
GUSTO University
• Valid Hosts
-2^ ……> # of hosts bits - 2
GUSTO University
192.168.10.0
255.255.255.240 (/28)
11111111.11111111.11111111.11110000
Network address =
First IP Address =
Last IP Address =
Broadcast Address =
GUSTO University
Subnet mask
128 64 32 16 8 4 2 1
GUSTO University
172.10.85.60 /28
Network ID 172 10
Broadcast ID 172 10
Subnet mask
128 64 32 16 8 4 2 1
GUSTO University
172.20.60.16 /29
Network ID 172 20 60
Broadcast ID 172 20 60
Subnet mask
128 64 32 16 8 4 2 1
GUSTO University
150.150.0.0 /27
Network ID 150 150 0
Subnet mask
128 64 32 16 8 4 2 1
GUSTO University
References:
• Unit 2Choice&36-Computer-Networks---A-Tanenbaum---5th-
edition.pdf
• Networking Basic2.pdf
• Principles_of_Network_and_System_Administration_(2ed).pdf
• ip_addressing_and_subnetting_workbook-student-v2.0.pdf
• VLSM Workbook Instructors Edition - v2_0.pdf
• Images From Internet Source