SlideShare a Scribd company logo
How to determine the number of subnets and the
                number of hosts per subnet
Two formulas can provide this basic information:

       Number of subnets = 2 s           (Second subnet formula: Number of subnets = 2s - 2)

       Number of hosts per subnet = 2 h - 2

Both formulas calculate the number of hosts or subnets based on the number of binary bits
used. For example if you borrow three bits from the host portion of the address use the
number of subnets formula to determine the total number of subnets gained by borrowing the
three bits. This would be 23 or 2 x 2 x 2 = 8 subnets

To determine the number of hosts per subnet you would take the number of binary bits used in
the host portion and apply this to the number of hosts per subnet formula If five bits are in the
host portion of the address this would be 2 5 or 2 x 2 x 2 x 2 x 2 = 32 hosts.

When dealing with the number of hosts per subnet you have to subtract two addresses from
the range. The first address in every range is the subnet number. The last address in every
range is the broadcast address. These two addresses cannot be assigned to any device in
the network which is why you have to subtract two addresses to find the number of usable
addresses in each range.

For example if two bits are borrowed for the network portion of the address you can easily
determine the number of subnets and hosts per subnets using the two formulas.

    195. 223 . 50 . 0                    0   0     0    0    0     0     0

              The number of subnets                The number of hosts created by
              created by borrowing 2               leaving 6 bits is 26 - 2 or
              bits is 2 2 or 2 x 2 = 4             2 x 2 x 2 x 2 x 2 x 2 = 64 - 2 = 62
              subnets.                             usable hosts per subnet.


What about that second subnet formula:
                                 s
       Number of subnets = 2 - 2

In some instances the first and last subnet range of addresses are reserved. This is similar to
the first and last host addresses in each range of addreses.

The first range of addresses is the zero subnet. The subnet number for the zero subnet is
also the subnet number for the classful subnet address.

The last range of addresses is the broadcast subnet. The broadcast address for the last
subnet in the broadcast subnet is the same as the classful broadcast address.
10
Class C Address unsubnetted:

195. 223 . 50 . 0

195.223.50.0                to   195.223.50.255
                                                                    Notice that the subnet and
                                                                    broadcast addresses match.
Class C Address subnetted (2 bits borrowed):

 195. 223 . 50 . 0                 0    0    0     0       0   0     0

 (Invalid range) (0) 195.223.50.0                              to     195.223.50.63
                 (1) 195.223.50.64                             to     195.223.50.127
                 (2) 195.223.50.128                            to     195.223.50.191
 (Invalid range) (3) 195.223.50.192                            to     195.223.50.255


The primary reason the the zero and broadcast subnets were not used had to do pirmarily with
the broadcast addresses. If you send a broadcast to 195.223.255 are you sending it to all 255
addresses in the classful C address or just the 62 usable addresses in the broadcast range?

The CCNA and CCENT certification exams may have questions which will require you to
determine which formula to use, and whehter or not you can use the first and last subnets. Use
the chart below to help decide.


    When to use which formula to determine the number of subnets
           s                                               s
 Use the 2 - 2 formula and don’t use the        Use the 2 formula and use the zero and
 zero and broadcast ranges if...                broadcast ranges if...

 Classful routing is used                       Classless routing or VLSM is used

 RIP version 1 is used                          RIP version 2, EIGRP, or OSPF is used

 The no ip subnet zero command is               The ip subnet zero command is
 configured on your router                      configured on your router (default setting)

                                                No other clues are given


Bottom line for the CCNA exams; if a question does not give you any clues as to whether or not
to allow these two subnets, assume you can use them.
                                                       s
This workbook has you use the number of subnets = 2 formula.


                                                                                              11
ANDING With
                                    Custom subnet masks

When you take a single network such as 192.100.10.0 and divide it into five smaller networks
(192.100.10.16, 192.100.10.32, 192.100.10.48, 192.100.10.64, 192.100.10.80) the outside
world still sees the network as 192.100.10.0, but the internal computers and routers see five
smaller subnetworks. Each independent of the other. This can only be accomplished by using
a custom subnet mask. A custom subnet mask borrows bits from the host portion of the
address to create a subnetwork address between the network and host portions of an IP
address. In this example each range has 14 usable addresses in it. The computer must still
AND the IP address against the custom subnet mask to see what the network portion is and
which subnetwork it belongs to.

        IP Address:                     192 . 100 . 10 . 0
        Custom Subnet Mask:             255.255.255.240

        Address Ranges:         192.10.10.0 to 192.100.10.15
                                192.100.10.16 to 192.100.10.31
                                192.100.10.32 to 192.100.10.47 (Range in the sample below)
                                192.100.10.48 to 192.100.10.63
                                192.100.10.64 to 192.100.10.79
                                192.100.10.80 to 192.100.10.95
                                192.100.10.96 to 192.100.10.111
                                192.100.10.112 to 192.100.10.127
                                192.100.10.128 to 192.100.10.143
                                192.100.10.144 to 192.100.10.159
                                192.100.10.160 to 192.100.10.175
                                192.100.10.176 to 192.100.10.191
                                192.100.10.192 to 192.100.10.207
                                192.100.10.208 to 192.100.10.223
                                192.100.10.224 to 192.100.10.239
                                192.100.10.240 to 192.100.10.255

                                                                              Sub
                                             Network                        Network Host
       IP Address: 1 1 0 0 0 0 0 0 . 0 1 1 0 0 1 0 0 . 0 0 0 0 1 0 1 0 . 0 0 1 0 0 0 0 1 (192 . 100 . 10 . 33)
Custom Subnet Mask: 1 1 1 1 1 1 1 1 . 0 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 0 0 0 0 (255 . 255 . 255 . 240)
              AND: 1 1 0 0 0 0 0 0 . 0 1 1 0 0 1 0 0 . 0 0 0 0 1 0 1 0 . 0 0 1 0 0 0 0 0 (192 . 100 . 10 . 32)

                                     Four bits borrowed from the host
                                     portion of the address for the
                                     custom subnet mask.
                                                         The ANDING process of the four borrowed bits
                                                         shows which range of IP addresses this
                                                         particular address will fall into.


In the next set of problems you will determine the necessary information to determine the
correct subnet mask for a variety of IP addresses.
                                                                                                         9
Produced by: Robb Jones
jonesr@careertech.net
Frederick County Career & Technology Center
Cisco Networking Academy
Frederick County Public Schools
Frederick, Maryland, USA

More Related Content

What's hot

Logu montāža. Kas jāzina pasūtītājam?
 Logu montāža. Kas jāzina pasūtītājam? Logu montāža. Kas jāzina pasūtītājam?
Logu montāža. Kas jāzina pasūtītājam?
Ekonomikas ministrija/ Dzīvo siltāk
 
Patologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predio
Patologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predioPatologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predio
Patologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predio
Renan Jacó
 
禮儀師第3單元 -part2親等關係與孝服種類
禮儀師第3單元 -part2親等關係與孝服種類禮儀師第3單元 -part2親等關係與孝服種類
禮儀師第3單元 -part2親等關係與孝服種類TTeacherlearn
 
Informe institucional epp 54
Informe institucional epp 54Informe institucional epp 54
Informe institucional epp 54
Patricia Barrionuevo
 
D link-dir-615-manual
D link-dir-615-manualD link-dir-615-manual
D link-dir-615-manual40044
 
Telhas de fibra de vidro
Telhas de fibra de vidroTelhas de fibra de vidro
Telhas de fibra de vidro
Ana Anicio
 
Curso de redes de computador Parte 4
Curso de redes de computador Parte 4 Curso de redes de computador Parte 4
Curso de redes de computador Parte 4
Djayllton Moraes
 

What's hot (7)

Logu montāža. Kas jāzina pasūtītājam?
 Logu montāža. Kas jāzina pasūtītājam? Logu montāža. Kas jāzina pasūtītājam?
Logu montāža. Kas jāzina pasūtītājam?
 
Patologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predio
Patologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predioPatologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predio
Patologia em edificacoes_tcc_ varios tipos de fissuras_recuperaç. predio
 
禮儀師第3單元 -part2親等關係與孝服種類
禮儀師第3單元 -part2親等關係與孝服種類禮儀師第3單元 -part2親等關係與孝服種類
禮儀師第3單元 -part2親等關係與孝服種類
 
Informe institucional epp 54
Informe institucional epp 54Informe institucional epp 54
Informe institucional epp 54
 
D link-dir-615-manual
D link-dir-615-manualD link-dir-615-manual
D link-dir-615-manual
 
Telhas de fibra de vidro
Telhas de fibra de vidroTelhas de fibra de vidro
Telhas de fibra de vidro
 
Curso de redes de computador Parte 4
Curso de redes de computador Parte 4 Curso de redes de computador Parte 4
Curso de redes de computador Parte 4
 

Viewers also liked

Subnetting Principles Worksheet
Subnetting Principles WorksheetSubnetting Principles Worksheet
Subnetting Principles Worksheetswascher
 
IP Addressing Principles
IP Addressing PrinciplesIP Addressing Principles
IP Addressing Principlesswascher
 
Ip addressing and subnetting workbook
Ip addressing and subnetting workbookIp addressing and subnetting workbook
Ip addressing and subnetting workbookLuiz Souza
 
IP Addressing Subnetting Workbook
IP Addressing Subnetting WorkbookIP Addressing Subnetting Workbook
IP Addressing Subnetting Workbook
Víctor Cantú Pérez
 
Subnetting A Network
Subnetting A NetworkSubnetting A Network
Subnetting A Networkswascher
 
Ip addressing and subnetting instructors workbook
Ip addressing and subnetting   instructors workbookIp addressing and subnetting   instructors workbook
Ip addressing and subnetting instructors workbookSwapnil Kapate
 
Osi model vs TCP/IP
Osi model vs TCP/IPOsi model vs TCP/IP
Osi model vs TCP/IPMannu Khani
 

Viewers also liked (7)

Subnetting Principles Worksheet
Subnetting Principles WorksheetSubnetting Principles Worksheet
Subnetting Principles Worksheet
 
IP Addressing Principles
IP Addressing PrinciplesIP Addressing Principles
IP Addressing Principles
 
Ip addressing and subnetting workbook
Ip addressing and subnetting workbookIp addressing and subnetting workbook
Ip addressing and subnetting workbook
 
IP Addressing Subnetting Workbook
IP Addressing Subnetting WorkbookIP Addressing Subnetting Workbook
IP Addressing Subnetting Workbook
 
Subnetting A Network
Subnetting A NetworkSubnetting A Network
Subnetting A Network
 
Ip addressing and subnetting instructors workbook
Ip addressing and subnetting   instructors workbookIp addressing and subnetting   instructors workbook
Ip addressing and subnetting instructors workbook
 
Osi model vs TCP/IP
Osi model vs TCP/IPOsi model vs TCP/IP
Osi model vs TCP/IP
 

Similar to Subnetting Principles

Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
Mahmmoud Mahdi
 
Subnetting
SubnettingSubnetting
Subnetting
Netwax Lab
 
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
Shaqib3
 
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docxLab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
DIPESH30
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccnarobertoxe
 
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
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting PresentationTouhidul Fahim
 
Subnetting
SubnettingSubnetting
Subnetting
Kishore Kumar
 
08 - IP Subnetting.ppt
08 - IP Subnetting.ppt08 - IP Subnetting.ppt
08 - IP Subnetting.ppt
ssuserf7cd2b
 
IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
Shahzad Rashid
 
Network Layer
Network LayerNetwork Layer
Network Layer
Kamal Acharya
 
Day03
Day03 Day03
Day03
avinashbolla
 
CCNP Routing
CCNP Routing CCNP Routing
CCNP Routing
Networkershome
 
CCNP Routing Workbook
CCNP Routing WorkbookCCNP Routing Workbook
CCNP Routing Workbook
Networkershome
 
Vlsm
VlsmVlsm
Ip addressing subnetting workbook
Ip addressing subnetting workbookIp addressing subnetting workbook
Ip addressing subnetting workbook
Vijay Shukla
 
Ip addressing subnetting workbook
Ip addressing   subnetting workbookIp addressing   subnetting workbook
Ip addressing subnetting workbookRoberto Loera
 
Assignment subnetting part1 - solutions
Assignment subnetting part1 - solutionsAssignment subnetting part1 - solutions
Assignment subnetting part1 - solutions
AnhMai173354
 

Similar to Subnetting Principles (20)

Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
 
Subnetting
SubnettingSubnetting
Subnetting
 
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
 
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docxLab 18 Answer TemplateProblem 1IP address  192.168.10.0 27 (giv.docx
Lab 18 Answer TemplateProblem 1IP address 192.168.10.0 27 (giv.docx
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
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
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
Subnetting
SubnettingSubnetting
Subnetting
 
08 - IP Subnetting.ppt
08 - IP Subnetting.ppt08 - IP Subnetting.ppt
08 - IP Subnetting.ppt
 
IP Subnetting
IP SubnettingIP Subnetting
IP Subnetting
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Day03
Day03 Day03
Day03
 
CCNP Routing
CCNP Routing CCNP Routing
CCNP Routing
 
CCNP Routing Workbook
CCNP Routing WorkbookCCNP Routing Workbook
CCNP Routing Workbook
 
Ceyccna3
Ceyccna3Ceyccna3
Ceyccna3
 
Vlsm
VlsmVlsm
Vlsm
 
Ip addressing subnetting workbook
Ip addressing subnetting workbookIp addressing subnetting workbook
Ip addressing subnetting workbook
 
Ip addressing subnetting workbook
Ip addressing   subnetting workbookIp addressing   subnetting workbook
Ip addressing subnetting workbook
 
Assignment subnetting part1 - solutions
Assignment subnetting part1 - solutionsAssignment subnetting part1 - solutions
Assignment subnetting part1 - solutions
 

More from swascher

Resume interview tips
Resume interview tipsResume interview tips
Resume interview tipsswascher
 
RVC DOL TAACCCT Grant Presentation
RVC DOL TAACCCT Grant PresentationRVC DOL TAACCCT Grant Presentation
RVC DOL TAACCCT Grant Presentation
swascher
 
Elevator speeches
Elevator speechesElevator speeches
Elevator speechesswascher
 
Cis142fall2011
Cis142fall2011Cis142fall2011
Cis142fall2011
swascher
 
Strategic plan 2.9.11
Strategic plan 2.9.11Strategic plan 2.9.11
Strategic plan 2.9.11swascher
 
Newspaper January 2010
Newspaper January 2010Newspaper January 2010
Newspaper January 2010swascher
 
Rti Booklet
Rti BookletRti Booklet
Rti Bookletswascher
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressingswascher
 
Subnetting
SubnettingSubnetting
Subnettingswascher
 
Subnet Masks
Subnet MasksSubnet Masks
Subnet Masksswascher
 
Binary Review
Binary ReviewBinary Review
Binary Reviewswascher
 
Subnetting Introduction
Subnetting IntroductionSubnetting Introduction
Subnetting Introductionswascher
 
Ip Addressing Worksheets
Ip Addressing WorksheetsIp Addressing Worksheets
Ip Addressing Worksheetsswascher
 

More from swascher (14)

Resume interview tips
Resume interview tipsResume interview tips
Resume interview tips
 
RVC DOL TAACCCT Grant Presentation
RVC DOL TAACCCT Grant PresentationRVC DOL TAACCCT Grant Presentation
RVC DOL TAACCCT Grant Presentation
 
Elevator speeches
Elevator speechesElevator speeches
Elevator speeches
 
Feb23
Feb23Feb23
Feb23
 
Cis142fall2011
Cis142fall2011Cis142fall2011
Cis142fall2011
 
Strategic plan 2.9.11
Strategic plan 2.9.11Strategic plan 2.9.11
Strategic plan 2.9.11
 
Newspaper January 2010
Newspaper January 2010Newspaper January 2010
Newspaper January 2010
 
Rti Booklet
Rti BookletRti Booklet
Rti Booklet
 
Ip Addressing
Ip AddressingIp Addressing
Ip Addressing
 
Subnetting
SubnettingSubnetting
Subnetting
 
Subnet Masks
Subnet MasksSubnet Masks
Subnet Masks
 
Binary Review
Binary ReviewBinary Review
Binary Review
 
Subnetting Introduction
Subnetting IntroductionSubnetting Introduction
Subnetting Introduction
 
Ip Addressing Worksheets
Ip Addressing WorksheetsIp Addressing Worksheets
Ip Addressing Worksheets
 

Recently uploaded

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 

Subnetting Principles

  • 1. How to determine the number of subnets and the number of hosts per subnet Two formulas can provide this basic information: Number of subnets = 2 s (Second subnet formula: Number of subnets = 2s - 2) Number of hosts per subnet = 2 h - 2 Both formulas calculate the number of hosts or subnets based on the number of binary bits used. For example if you borrow three bits from the host portion of the address use the number of subnets formula to determine the total number of subnets gained by borrowing the three bits. This would be 23 or 2 x 2 x 2 = 8 subnets To determine the number of hosts per subnet you would take the number of binary bits used in the host portion and apply this to the number of hosts per subnet formula If five bits are in the host portion of the address this would be 2 5 or 2 x 2 x 2 x 2 x 2 = 32 hosts. When dealing with the number of hosts per subnet you have to subtract two addresses from the range. The first address in every range is the subnet number. The last address in every range is the broadcast address. These two addresses cannot be assigned to any device in the network which is why you have to subtract two addresses to find the number of usable addresses in each range. For example if two bits are borrowed for the network portion of the address you can easily determine the number of subnets and hosts per subnets using the two formulas. 195. 223 . 50 . 0 0 0 0 0 0 0 0 The number of subnets The number of hosts created by created by borrowing 2 leaving 6 bits is 26 - 2 or bits is 2 2 or 2 x 2 = 4 2 x 2 x 2 x 2 x 2 x 2 = 64 - 2 = 62 subnets. usable hosts per subnet. What about that second subnet formula: s Number of subnets = 2 - 2 In some instances the first and last subnet range of addresses are reserved. This is similar to the first and last host addresses in each range of addreses. The first range of addresses is the zero subnet. The subnet number for the zero subnet is also the subnet number for the classful subnet address. The last range of addresses is the broadcast subnet. The broadcast address for the last subnet in the broadcast subnet is the same as the classful broadcast address. 10
  • 2. Class C Address unsubnetted: 195. 223 . 50 . 0 195.223.50.0 to 195.223.50.255 Notice that the subnet and broadcast addresses match. Class C Address subnetted (2 bits borrowed): 195. 223 . 50 . 0 0 0 0 0 0 0 0 (Invalid range) (0) 195.223.50.0 to 195.223.50.63 (1) 195.223.50.64 to 195.223.50.127 (2) 195.223.50.128 to 195.223.50.191 (Invalid range) (3) 195.223.50.192 to 195.223.50.255 The primary reason the the zero and broadcast subnets were not used had to do pirmarily with the broadcast addresses. If you send a broadcast to 195.223.255 are you sending it to all 255 addresses in the classful C address or just the 62 usable addresses in the broadcast range? The CCNA and CCENT certification exams may have questions which will require you to determine which formula to use, and whehter or not you can use the first and last subnets. Use the chart below to help decide. When to use which formula to determine the number of subnets s s Use the 2 - 2 formula and don’t use the Use the 2 formula and use the zero and zero and broadcast ranges if... broadcast ranges if... Classful routing is used Classless routing or VLSM is used RIP version 1 is used RIP version 2, EIGRP, or OSPF is used The no ip subnet zero command is The ip subnet zero command is configured on your router configured on your router (default setting) No other clues are given Bottom line for the CCNA exams; if a question does not give you any clues as to whether or not to allow these two subnets, assume you can use them. s This workbook has you use the number of subnets = 2 formula. 11
  • 3. ANDING With Custom subnet masks When you take a single network such as 192.100.10.0 and divide it into five smaller networks (192.100.10.16, 192.100.10.32, 192.100.10.48, 192.100.10.64, 192.100.10.80) the outside world still sees the network as 192.100.10.0, but the internal computers and routers see five smaller subnetworks. Each independent of the other. This can only be accomplished by using a custom subnet mask. A custom subnet mask borrows bits from the host portion of the address to create a subnetwork address between the network and host portions of an IP address. In this example each range has 14 usable addresses in it. The computer must still AND the IP address against the custom subnet mask to see what the network portion is and which subnetwork it belongs to. IP Address: 192 . 100 . 10 . 0 Custom Subnet Mask: 255.255.255.240 Address Ranges: 192.10.10.0 to 192.100.10.15 192.100.10.16 to 192.100.10.31 192.100.10.32 to 192.100.10.47 (Range in the sample below) 192.100.10.48 to 192.100.10.63 192.100.10.64 to 192.100.10.79 192.100.10.80 to 192.100.10.95 192.100.10.96 to 192.100.10.111 192.100.10.112 to 192.100.10.127 192.100.10.128 to 192.100.10.143 192.100.10.144 to 192.100.10.159 192.100.10.160 to 192.100.10.175 192.100.10.176 to 192.100.10.191 192.100.10.192 to 192.100.10.207 192.100.10.208 to 192.100.10.223 192.100.10.224 to 192.100.10.239 192.100.10.240 to 192.100.10.255 Sub Network Network Host IP Address: 1 1 0 0 0 0 0 0 . 0 1 1 0 0 1 0 0 . 0 0 0 0 1 0 1 0 . 0 0 1 0 0 0 0 1 (192 . 100 . 10 . 33) Custom Subnet Mask: 1 1 1 1 1 1 1 1 . 0 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 0 0 0 0 (255 . 255 . 255 . 240) AND: 1 1 0 0 0 0 0 0 . 0 1 1 0 0 1 0 0 . 0 0 0 0 1 0 1 0 . 0 0 1 0 0 0 0 0 (192 . 100 . 10 . 32) Four bits borrowed from the host portion of the address for the custom subnet mask. The ANDING process of the four borrowed bits shows which range of IP addresses this particular address will fall into. In the next set of problems you will determine the necessary information to determine the correct subnet mask for a variety of IP addresses. 9
  • 4. Produced by: Robb Jones jonesr@careertech.net Frederick County Career & Technology Center Cisco Networking Academy Frederick County Public Schools Frederick, Maryland, USA