IP Addressing Subnetting1
IP Addressing Subnetting1
Subnetting
By Hellen Nantege
IP ADDRESSING
IP Addressing
Every host or router on the Internet is identified
by a unique IP address
The role of an IP address can be defined as "A
name indicates what we seek. An address
indicates where it is. A route indicates how to get
there.” (from Internet Protocol – DARPA Internet
Program Protocol Specification (September
1981))
A Computer can have more than one IP address
There are two common versions IPv4 and IPv6
Types / ways of Ips
An IP address can be a single recipient or a group of
recipients
Three ways:
The binary number 1111 1111 converts into the decimal number:
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
Converting to Decimal
(Cont.)
Therefore, the largest decimal
number that can be stored in an IP
address octet is 255.
The significance of this should
become evident later in this
presentation.
IP Address Classes
IP addresses are divided into 5
classes, each of which is designated
with the alphabetic letters A to E.
Class D addresses are used for
multicasting.
Class E addresses are reserved for
testing & some mysterious future
use.
IP Address Classes (Cont.)
The 5 IP classes are split up based
on the value in the 1st octet:
IP Address Classes (Cont.)
Using the ranges, you can
determine the class of an address
from its 1st octet value.
An address beginning with 120 is a
Class A address, 155 is a Class B
address & 220 is a Class C
address.
Are You the Host or the
Network?
The 32 bits of the IP address are divided into
Network & Host portions, with the octets
assigned as a part of one or the other.
Class A - 0nnnnnnn.hhhhhhhh.hhhhhhhh.hhhhhhhh
Initial byte = 0-127 (7 bits)
1.0.0.0 – 127.255.255.255
Class B - 10nnnnnn.nnnnnnnn.hhhhhhhh.hhhhhhhh
Initial byte = 128-191 (14 bits)
128.0.0.0 – 191.255.255.255
Class C - 100nnnnn.nnnnnnnn.nnnnnnnn.hhhhhhhh
Initial byte = 192-223 (21 bits)
192.0.0.0 – 223.255.255.255
Class D – Used in multicasting.
Class E – Reserved for Future Use.
n = network address h = host address
Class A Addresses
Class A IP addresses use the 1st 8 bits
(1st Octet) to designate the Network
address.
The 1st bit which is always a 0, is used
to indicate the address as a Class A
address & the remaining 7 bits are used
to designate the Network.
The other 3 octets contain the Host
address.
Class A Addresses (Cont.)
There are 128 Class A Network
Addresses, but because addresses
with all zeros aren’t used &
address 127 is a special purpose
address, 126 Class A Networks are
available.
Class A Addresses (Cont.)
There are 16,777,214 Host addresses
available in a Class A address.
Rather than remembering this number
Class A -
0nnnnnnn.hhhhhhhh.hhhhhhhh.hhhhhhhh
Subnet Mask = 255.0.0.0 IP Address /8
Class B -
10nnnnnn.nnnnnnnn.hhhhhhhh.hhhhhhhh
Subnet Mask = 255.255.0.0 IP Address /16
Class C -
100nnnnn.nnnnnnnn.nnnnnnnn.hhhhhhhh
Subnet Mask = 255.255.255.0 IP Address /24
SUBNETTING
Definition
Class C:
11111111.11111111.11111111.10000000(255.255.2
55.128)
CIDR IP address /25
This would allow 126 hosts per subnet
1 and 0 = 0
0 and 1 = 0
0 and 0 = 0
Default Standard Subnet
Masks
There are default standard subnet
masks for Class A, B and C addresses:
A Trial Separation
Subnet masks apply only to Class
A, B or C IP addresses.
The subnet mask is like a filter that
is applied to a message’s
destination IP address.
Its objective is to determine if the
local network is the destination
network.
A Trial Separation (Cont.)
The subnet mask goes like this:
1. If a destination IP address is
206.175.162.21, we know that it
is a Class C address & that its
binary equivalent is:
11001110.10101111.10100010.00
010101
A Trial Separation (Cont.)