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 (20)

Ip addressing
Ip addressingIp addressing
Ip addressing
 
Sub Netting
Sub NettingSub Netting
Sub Netting
 
IPv4 Addressing
 IPv4 Addressing   IPv4 Addressing
IPv4 Addressing
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
IP addressing and Subnetting PPT
IP addressing and Subnetting PPTIP addressing and Subnetting PPT
IP addressing and Subnetting PPT
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
Subentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentationSubentting, Supernetting and VLSM presentation
Subentting, Supernetting and VLSM presentation
 
VLSM & SUPERNETTING
VLSM & SUPERNETTINGVLSM & SUPERNETTING
VLSM & SUPERNETTING
 
Cisco Router Basic Configuration
Cisco Router Basic ConfigurationCisco Router Basic Configuration
Cisco Router Basic Configuration
 
Dhcp
DhcpDhcp
Dhcp
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
 
Ip address
Ip addressIp address
Ip address
 
IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
Subnetting
SubnettingSubnetting
Subnetting
 
Ipv4 ppt
Ipv4 pptIpv4 ppt
Ipv4 ppt
 
Subnet Mask
Subnet MaskSubnet Mask
Subnet Mask
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 

Viewers also liked

Subnetting Basics Tutorial
Subnetting Basics TutorialSubnetting Basics Tutorial
Subnetting Basics Tutorialmikem801
 
Subnetting
SubnettingSubnetting
Subnettingswascher
 
IP Addressing and Subnetting Basics
IP Addressing and Subnetting BasicsIP Addressing and Subnetting Basics
IP Addressing and Subnetting BasicsRowell Dionicio
 
The site architecture you can edit
The site architecture you can editThe site architecture you can edit
The site architecture you can editOpen Stack
 
Routing protocol commands list
Routing protocol commands listRouting protocol commands list
Routing protocol commands listactsupport .com
 
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
 
DNS(Domain Name System)
DNS(Domain Name System)DNS(Domain Name System)
DNS(Domain Name System)Vishal Mittal
 
Subnetting Principles Worksheet
Subnetting Principles WorksheetSubnetting Principles Worksheet
Subnetting Principles Worksheetswascher
 
Interaksi manusia dan komputer
Interaksi manusia dan komputerInteraksi manusia dan komputer
Interaksi manusia dan komputerMiftahul Khair N
 
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 ArchitectureSam Bowne
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolMiftahul Khair N
 
Leaky bucket algorithm
Leaky bucket algorithmLeaky bucket algorithm
Leaky bucket algorithmUmesh Gupta
 
Routing protocol on wireless sensor network
Routing protocol on wireless sensor networkRouting protocol on wireless sensor network
Routing protocol on wireless sensor networkshashankcsnits
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocolselvakumar_b1985
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolKashif Latif
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNSAkshay Tiwari
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsDsunte 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

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.pptxShaqib3
 
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 9eadpeer
 
IP-address trial.ppt
IP-address trial.pptIP-address trial.ppt
IP-address trial.pptsol zem
 
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.pptxssuserc1e786
 
Network Layer Numericals
Network Layer NumericalsNetwork Layer Numericals
Network Layer NumericalsManisha Keim
 
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.pptxSalmanButt80
 
Subnet questions with ans(networking)
Subnet questions with ans(networking)Subnet questions with ans(networking)
Subnet questions with ans(networking)welcometofacebook
 
Ipaddress presentationdemoclass
Ipaddress presentationdemoclassIpaddress presentationdemoclass
Ipaddress presentationdemoclassaskme
 
IP Concept in LTE
IP Concept in LTEIP Concept in LTE
IP Concept in LTESofian .
 
4a logical laddressing
4a logical laddressing4a logical laddressing
4a logical laddressingkavish dani
 
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 & SubnettingVivek chan
 

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
 
Subnet questions with ans(networking)
Subnet questions with ans(networking)Subnet questions with ans(networking)
Subnet questions with ans(networking)
 
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
 
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

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 

Recently uploaded (20)

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

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…