Documente Academic
Documente Profesional
Documente Cultură
Subnetting
Syed Mushhad Gilani
An IP Address
An IP address is a unique identifier,
or address for a computer or host
connection on a network.
• IPs are 32 bit binary numbers
represented in 4 parts of 8. Each part is
separated by a decimal point (.) and is
referred to as an octet. This is known
as a dotted decimal notation
Example: 140.179.220.200
In Binary:
10001100.10110011.11011100.11001000
Parts of An IP
Every IP consist of two parts
• One part identifying the network
• One part identifying the node
The Class of the address and the
subnet mask determines which part
belongs to the network address and
which part belongs to the node
address
Address Classes
Class A
• Addresses begin with 0xxx, or 1 to 126
decimal
• Class A addresses would have the following
format:
NNNNNNNN.nnnnnnnn.nnnnnnnn.nnnnnnnn
There is one octet which defines the
network address, and three which defines
the node address
Used for networks with more than 65,536
hosts (up to 16777214 hosts)
Addresses beginning with:
01111111, or 127 decimal, are
reserved for internal, or local
machine use. For example if you ping
using 127.0.0.1, it should point to
yourself.
Class B
Addresses begin with 10xx, or 128 to
191
Format
• NNNNNNNN.NNNNNNNN.nnnnnnnn.nnnnnnnn
There are two octets which define the network
address and two which define the node address
Used for networks that have between 256 and
65,534 hosts
Class C Addressing
Addresses begin with 110x, or 192 to
223
Format
• NNNNNNNN.NNNNNNNN.NNNNNNNN.nnnnnnnn
decimal
Class E Addresses
Special category of IPs, which are
often reserved for future use. They
are usually not be used for host
addresses
Begin with 1111, or 240 to 254
Private subnets
There are three network addresses
reserved for private networks
• 10.0.0.0
• 172.16.0.0
• 192.168.0.0
Internet Classes
================================
255.255.255.22411111111.11111111.11111111.11100000
Subnetted
0r
This means there are 3 (23 – 2) new hosts available.
Technically this would create eight IPs, but two are
reserved for broadcast and network purposes, which leaves
6.
23 – 2 = 6
Performing the AND (combination to get
network addresses)
• 3 bits have been borrowed to create the
subnets. Therefore, there are 8 possible
combinations as follows:
000 – 0 (This is reserved and not used)
001 – 32
010 – 64
011 – 96
100 – 128
101 – 160
110 – 192
111 – 224 (This is reserved and not used)
The old network address was:
• 204.15.5.0
The Four new network addresses would be
• 204.15.5.32
• 204.15.5.64
• 204.15.5.96
• 204.15.5.128
• The two remaining network addresses
(204.15.5.160 and 204.15.5.192) can be kept
for future use if more new networks are
needed.
IP Addressing and
Subnetting
Quick Techniques
A Few Ways The Exam Will Test
Your IP Addressing Knowledge
1. Given an IP address and mask, what
is the network/subnet number?
2. Given an IP address and mask, what
is the network/subnet broadcast
address?
3. Given an IP address and mask, what
are the assignable IP addresses in that
network/subnet?
Given an IP address and
mask, what is the
network/subnet number?
Decimal Algorithm for Deriving the
Network Number, No Subnetting in Use
Step 1 – Write down the IP address
in decimal.
Step 2 – Copy below the IP address