SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Ip addressing
Ip addressingIp addressing
Ip addressingOnline
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING AYESHA JAVED
 
Subnet Masks
Subnet MasksSubnet Masks
Subnet Masksswascher
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategyMustafa Salam
 
IP Addressing and subnetting
IP Addressing and subnettingIP Addressing and subnetting
IP Addressing and subnettingAli Nezhad
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressingvssnsarma
 
Ip address presentation
Ip address presentationIp address presentation
Ip address presentationmuhammad amir
 
IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6Adeel Rasheed
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basicsMahmmoud Mahdi
 
IP Configuration
IP ConfigurationIP Configuration
IP ConfigurationStephen Raj
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnettingShashank Asthana
 
Ip addressing
Ip addressingIp addressing
Ip addressingsid1322
 
IP Addressing and Subnetting
IP Addressing and SubnettingIP Addressing and Subnetting
IP Addressing and Subnettingcbtvid
 
IP addressing seminar ppt
IP addressing seminar pptIP addressing seminar ppt
IP addressing seminar pptSmriti Rastogi
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basicstmavroidis
 

La actualidad más candente (20)

Ip addressing
Ip addressingIp addressing
Ip addressing
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING
 
Subnetting made simple
Subnetting made simpleSubnetting made simple
Subnetting made simple
 
Subnet Masks
Subnet MasksSubnet Masks
Subnet Masks
 
Subnetting
SubnettingSubnetting
Subnetting
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
IP Addressing and subnetting
IP Addressing and subnettingIP Addressing and subnetting
IP Addressing and subnetting
 
IPv4 Addressing
 IPv4 Addressing   IPv4 Addressing
IPv4 Addressing
 
CCNA IP Addressing
CCNA IP AddressingCCNA IP Addressing
CCNA IP Addressing
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressing
 
Ip address presentation
Ip address presentationIp address presentation
Ip address presentation
 
IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
 
IP Configuration
IP ConfigurationIP Configuration
IP Configuration
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnetting
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
IP Addressing and Subnetting
IP Addressing and SubnettingIP Addressing and Subnetting
IP Addressing and Subnetting
 
IP addressing seminar ppt
IP addressing seminar pptIP addressing seminar ppt
IP addressing seminar ppt
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 

Destacado

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
 

Destacado (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 a 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
 
Subnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesSubnetting (FLSM & VLSM) with examples
Subnetting (FLSM & VLSM) with examplesKrishna Mohan
 
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
 

Similar a 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
 
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
 

Último

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
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 khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 

Último (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
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 khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.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…