SlideShare a Scribd company logo
1 of 10
SUBNET CALCULATION
TUTORIAL
-BY RITU RANJAN SHRIVASTWA
UNDERSTANDING SUBNETTING
• First let us take a short view at what are the subnets of classes
A, B, and C
• Class A subnet: 255.0.0.0 /8
which means 11111111.00000000.00000000.00000000
• Class B subnet: 255.255.0.0 /16
which means 11111111.11111111.00000000.00000000
• Class C subnet: 255.255.255.0 /24
which means 11111111.11111111.11111111.00000000
Whenever an IP is given (generally), it belongs to either of the three
i.e., Class A, B or C
But we need to attach multiple networks within the same IP range.
Thus we need to create subnets under the given IP.
CLASSLESS AND CLASSFUL
• In the previous slide you have seen that there are
three different subnet masks for Class A, B and C.
These masks are called Classful because they belong
to either class.
• A classless subnet mask can be created using subnet
of any class but a classless subnet does not belong to
any ‘Class’ (hence classless).
• A classless subnet exists only inside a private
network e.g., inside an office network or a college
network, etc.
CLASSLESS SUBNET MASK
• As mentioned previously, a classless subnet mask
is used to create a series of ‘subnets’ using one
network
Subnet 1

INTERNET

CLASS C IP RANGE
192.168.0.5/24
(/24 = 255.255.255.0)

Subnet 2

Subnet N

N subnets
EXAMPLE PROBLEM WITH SOLUTION
• Now with an example problem I will Illustrate the subnetting
process.

Problem
Given IP range: 172.168.0.2 /16
There are 14 departments in the office.
Create a network for each department and
determine how many PCs can be attached in
each department network
EXAMPLE PROBLEM WITH SOLUTION
From the given problem, there need to be 14 subnets.
The subnet mask is 255.255.0.0 (8+8=16 /16)
Which means the last two octets are usable.
(1 octet = 8bits
=> usable bits = 32-16 = 16 i.e., 2 octets)
Thus we need to create 14 subnets.
To create subnets the formula for number of bits used is = 2n-2 (where
n is the number of bits required)
Here the scenario is,
=> (2^n) – 2 = 14
=> n = log2(14+2) = 4 bits
EXAMPLE PROBLEM WITH SOLUTION
Thus, we need 4 bits to create 14 subnets.
These 4 bits will be the first 4 bits of the 1st usable Octet.
To create the Classless subnet mask, now we need to convert the first
4 bits of the 3rd Octet into 1’s. Hence the new Subnet (classless) will
look as follows: Network bits
Host bits
11111111.11111111.11110000.00000000
Which makes it 255.255.240.0 from 255.255.0.0 (/16)
i.e., prefix = /(8+8+4) = /20
From now on, subnet ID will be denoted with the 4 red bits only
Please note that the first and the last network are unusable as per
norms i.e., subnet 0000 and subnet 1111
Thus we are left with 0001 to 1110 usable networks i.e., 14 subnets
EXAMPLE PROBLEM WITH SOLUTION
Now we need to determine how many hosts can be attached to each subnet. This is very easy
and the formula remains the same.
From the last two octets we see that there are 4 network bits and (4+8) host bits.
Host bits = 12
No of hosts attachable = 2^12 – 2 = 4096 – 2

No. of hosts = 4094
The first and the last addresses are Network address and Broadcast address respectively.
Thus, first subnet will have the following:
subnet id = 0001
subnet mask
= 255.255.240.0
network address
= 172.168.16.0
broadcast address
= 172.168.31.255
first host
= 172.168.16.1
last host
= 172.168.31.254

[(00010000)b = (16)d]
[(00011111)b = (31)d]
EXAMPLE PROBLEM WITH SOLUTION
subnet id = 0010
subnet mask
network address
broadcast address
first host
last host

= 255.255.240.0
= 172.168.32.0
= 172.168.47.255
= 172.168.32.1
= 172.168.47.254

subnet id = 0011
subnet mask
network address
broadcast address
first host
last host

= 255.255.240.0
= 172.168.48.0
= 172.168.63.255
= 172.168.48.1
= 172.168.63.254

[(00010000)b = (16)d]
[(00011111)b = (31)d]

[(00010000)b = (16)d]
[(00011111)b = (31)d]

and so on…
THANK YOU

More Related Content

What's hot

Subnet questions with ans(networking)
Subnet questions with ans(networking)Subnet questions with ans(networking)
Subnet questions with ans(networking)
welcometofacebook
 
CCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationCCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch Configuration
Dsunte Wilson
 

What's hot (20)

IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
Subnet questions with ans(networking)
Subnet questions with ans(networking)Subnet questions with ans(networking)
Subnet questions with ans(networking)
 
Subnetting
SubnettingSubnetting
Subnetting
 
Vlsm
VlsmVlsm
Vlsm
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
Sub Netting
Sub NettingSub Netting
Sub Netting
 
Subnet Mask
Subnet MaskSubnet Mask
Subnet Mask
 
Subnetting made simple
Subnetting made simpleSubnetting made simple
Subnetting made simple
 
IPv6 Addressing
IPv6 AddressingIPv6 Addressing
IPv6 Addressing
 
Basics of IP Addressing
Basics of IP AddressingBasics of IP Addressing
Basics of IP Addressing
 
Subnetting
SubnettingSubnetting
Subnetting
 
CCNA training 101
CCNA training 101CCNA training 101
CCNA training 101
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
What is soho network
What is soho networkWhat is soho network
What is soho network
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Packet tracer
Packet tracerPacket tracer
Packet tracer
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)
 
CCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationCCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch Configuration
 

Viewers also liked

Subnetting
SubnettingSubnetting
Subnetting
swascher
 
The site architecture you can edit
The site architecture you can editThe site architecture you can edit
The site architecture you can edit
Open Stack
 
ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...
ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...
ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...
Amazon Web Services
 
Subnetting Principles Worksheet
Subnetting Principles WorksheetSubnetting Principles Worksheet
Subnetting Principles Worksheet
swascher
 
Routing protocol on wireless sensor network
Routing protocol on wireless sensor networkRouting protocol on wireless sensor network
Routing protocol on wireless sensor network
shashankcsnits
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
Kashif Latif
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
Dsunte Wilson
 

Viewers also liked (20)

Subnetting Basics Tutorial
Subnetting Basics TutorialSubnetting Basics Tutorial
Subnetting Basics Tutorial
 
Day 5.5 subnetting
Day 5.5 subnettingDay 5.5 subnetting
Day 5.5 subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
IP Addressing and Subnetting Basics
IP Addressing and Subnetting BasicsIP Addressing and Subnetting Basics
IP Addressing and Subnetting Basics
 
The site architecture you can edit
The site architecture you can editThe site architecture you can edit
The site architecture you can edit
 
Routing protocol commands list
Routing protocol commands listRouting protocol commands list
Routing protocol commands list
 
ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...
ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...
ARC206 Extend your Existing Data Center to the cloud with Amazon VPC - AWS re...
 
VPC Hands-on
VPC Hands-onVPC Hands-on
VPC Hands-on
 
DNS(Domain Name System)
DNS(Domain Name System)DNS(Domain Name System)
DNS(Domain Name System)
 
Subnetting Principles Worksheet
Subnetting Principles WorksheetSubnetting Principles Worksheet
Subnetting Principles Worksheet
 
Interaksi manusia dan komputer
Interaksi manusia dan komputerInteraksi manusia dan komputer
Interaksi manusia dan komputer
 
CNIT 40: 2: DNS Protocol and Architecture
CNIT 40: 2: DNS Protocol and ArchitectureCNIT 40: 2: DNS Protocol and Architecture
CNIT 40: 2: DNS Protocol and Architecture
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Minor Project (Rohit Sharma)
Minor Project (Rohit Sharma)Minor Project (Rohit Sharma)
Minor Project (Rohit Sharma)
 
Leaky bucket algorithm
Leaky bucket algorithmLeaky bucket algorithm
Leaky bucket algorithm
 
Routing protocol on wireless sensor network
Routing protocol on wireless sensor networkRouting protocol on wireless sensor network
Routing protocol on wireless sensor network
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocol
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
 

Similar to Subnet calculation Tutorial

Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
adpeer
 
Ipaddress presentationdemoclass
Ipaddress presentationdemoclassIpaddress presentationdemoclass
Ipaddress presentationdemoclass
askme
 
IP Concept in LTE
IP Concept in LTEIP Concept in LTE
IP Concept in LTE
Sofian .
 
4a logical laddressing
4a logical laddressing4a logical laddressing
4a logical laddressing
kavish dani
 

Similar to Subnet calculation Tutorial (20)

Fixed Length Subnetting about ip address.pptx
Fixed Length Subnetting about ip address.pptxFixed Length Subnetting about ip address.pptx
Fixed Length Subnetting about ip address.pptx
 
Subnet (1)
Subnet (1)Subnet (1)
Subnet (1)
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
IP-address trial.ppt
IP-address trial.pptIP-address trial.ppt
IP-address trial.ppt
 
Lecture W5 CN IP Subnetting P2.pptx
Lecture W5 CN IP Subnetting P2.pptxLecture W5 CN IP Subnetting P2.pptx
Lecture W5 CN IP Subnetting P2.pptx
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer Numericals
 
Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
TCP/IP suite presentation slides and data.pptx
TCP/IP suite presentation slides and data.pptxTCP/IP suite presentation slides and data.pptx
TCP/IP suite presentation slides and data.pptx
 
Subnetting
SubnettingSubnetting
Subnetting
 
IP Addressing
IP AddressingIP Addressing
IP Addressing
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Ipaddress presentationdemoclass
Ipaddress presentationdemoclassIpaddress presentationdemoclass
Ipaddress presentationdemoclass
 
Lecture 06
Lecture 06Lecture 06
Lecture 06
 
Subnetting
SubnettingSubnetting
Subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
Subnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesSubnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examples
 
IP Concept in LTE
IP Concept in LTEIP Concept in LTE
IP Concept in LTE
 
4a logical laddressing
4a logical laddressing4a logical laddressing
4a logical laddressing
 
I Paddress
I PaddressI Paddress
I Paddress
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & Subnetting
 

Recently uploaded

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 

Recently uploaded (20)

MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdf
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 

Subnet calculation Tutorial

  • 2. UNDERSTANDING SUBNETTING • First let us take a short view at what are the subnets of classes A, B, and C • Class A subnet: 255.0.0.0 /8 which means 11111111.00000000.00000000.00000000 • Class B subnet: 255.255.0.0 /16 which means 11111111.11111111.00000000.00000000 • Class C subnet: 255.255.255.0 /24 which means 11111111.11111111.11111111.00000000 Whenever an IP is given (generally), it belongs to either of the three i.e., Class A, B or C But we need to attach multiple networks within the same IP range. Thus we need to create subnets under the given IP.
  • 3. CLASSLESS AND CLASSFUL • In the previous slide you have seen that there are three different subnet masks for Class A, B and C. These masks are called Classful because they belong to either class. • A classless subnet mask can be created using subnet of any class but a classless subnet does not belong to any ‘Class’ (hence classless). • A classless subnet exists only inside a private network e.g., inside an office network or a college network, etc.
  • 4. CLASSLESS SUBNET MASK • As mentioned previously, a classless subnet mask is used to create a series of ‘subnets’ using one network Subnet 1 INTERNET CLASS C IP RANGE 192.168.0.5/24 (/24 = 255.255.255.0) Subnet 2 Subnet N N subnets
  • 5. EXAMPLE PROBLEM WITH SOLUTION • Now with an example problem I will Illustrate the subnetting process. Problem Given IP range: 172.168.0.2 /16 There are 14 departments in the office. Create a network for each department and determine how many PCs can be attached in each department network
  • 6. EXAMPLE PROBLEM WITH SOLUTION From the given problem, there need to be 14 subnets. The subnet mask is 255.255.0.0 (8+8=16 /16) Which means the last two octets are usable. (1 octet = 8bits => usable bits = 32-16 = 16 i.e., 2 octets) Thus we need to create 14 subnets. To create subnets the formula for number of bits used is = 2n-2 (where n is the number of bits required) Here the scenario is, => (2^n) – 2 = 14 => n = log2(14+2) = 4 bits
  • 7. EXAMPLE PROBLEM WITH SOLUTION Thus, we need 4 bits to create 14 subnets. These 4 bits will be the first 4 bits of the 1st usable Octet. To create the Classless subnet mask, now we need to convert the first 4 bits of the 3rd Octet into 1’s. Hence the new Subnet (classless) will look as follows: Network bits Host bits 11111111.11111111.11110000.00000000 Which makes it 255.255.240.0 from 255.255.0.0 (/16) i.e., prefix = /(8+8+4) = /20 From now on, subnet ID will be denoted with the 4 red bits only Please note that the first and the last network are unusable as per norms i.e., subnet 0000 and subnet 1111 Thus we are left with 0001 to 1110 usable networks i.e., 14 subnets
  • 8. EXAMPLE PROBLEM WITH SOLUTION Now we need to determine how many hosts can be attached to each subnet. This is very easy and the formula remains the same. From the last two octets we see that there are 4 network bits and (4+8) host bits. Host bits = 12 No of hosts attachable = 2^12 – 2 = 4096 – 2 No. of hosts = 4094 The first and the last addresses are Network address and Broadcast address respectively. Thus, first subnet will have the following: subnet id = 0001 subnet mask = 255.255.240.0 network address = 172.168.16.0 broadcast address = 172.168.31.255 first host = 172.168.16.1 last host = 172.168.31.254 [(00010000)b = (16)d] [(00011111)b = (31)d]
  • 9. EXAMPLE PROBLEM WITH SOLUTION subnet id = 0010 subnet mask network address broadcast address first host last host = 255.255.240.0 = 172.168.32.0 = 172.168.47.255 = 172.168.32.1 = 172.168.47.254 subnet id = 0011 subnet mask network address broadcast address first host last host = 255.255.240.0 = 172.168.48.0 = 172.168.63.255 = 172.168.48.1 = 172.168.63.254 [(00010000)b = (16)d] [(00011111)b = (31)d] [(00010000)b = (16)d] [(00011111)b = (31)d] and so on…