Subnetting - Calculate Subnet Masks & More - Pluralsight
Subnetting - Calculate Subnet Masks & More - Pluralsight
50% off
Standard and Premium plans
Save now
If you're new to this field, I would suggest adding both Part 1 and Part 2: IP
Routing Process to your reading list, since it provides some additional
information that can be useful in getting a firm grasp of the subnetting
concept.
I'll use a few examples to clearly present the steps of subnetting and help
you master this topic. And although at first this may seem difficult, don't give
up! All it takes is some time and practice!
What Is Subnetting?
Subnetting is the process of stealing bits from the HOST part of an IP
address in order to divide the larger network into smaller sub-networks
called subnets. After subnetting, we end up with NETWORK SUBNET HOST
fields. We always reserve an IP address to identify the subnet and another
one to identify the broadcast subnet address.
In the following sections you will find out how all this is possible.
2. Reduced network traffic: The smaller networks that created the smaller
broadcast domains are formed, hence less broadcast traffic on network
boundaries.
If we take all these addresses and divide them equally into 8 different
subnets we still keep the total number of original addresses, but we have
now split them into 8 subnets with 32 addresses in each. Each new subnet
needs to dedicate 2 addresses for the subnet and broadcast address within
the subnet.
Now that we have subnet mask explained, I'll now use a couple of examples
to help explain how an IP address subnet mask can be calculated as clearly
as possible, but first, here is a quick explanation of “What is a subnet mask?”
An IP subnet mask is a number used for defining a range of IP addresses that
are available within a network.
1. Convert to binary.
4. Calculate the total number of subsets and the hosts per subnet.
We will use a Class C address, which takes 5 bits from the Host field for
subnetting and leaves 3 bits for defining hosts as shown in figure 1 below.
Having 5 bits available for defining subnets means that we can have up to 32
(2^5) different subnets.
It should be noted that in the past using subnet zero (00000—) and all-
ones subnet (11111—) was not allowed. This is not true nowadays. Since Cisco
IOS Software Release 12.0 the entire address space including all possible
subnets is explicitly allowed.
We know already that for subnetting this Class C address we have borrowed
5 bits from the Host field. These 5 bits are used to identify the subnets. The
remaining 3 bits are used for defining hosts within a particular subnet.
The Subnet address is identified by all 0 bits in the Host part of the address.
The first host within the subnet is identified by all 0s and a 1. The last host is
identified by all 1s and a 0. The broadcast address is the all 1s. Now, we move
to the next subnet and the process is repeated the same way.
Knowing the number of Subnet and Host bits we can now calculate the total
number of possible subnets and the total number of hosts per subnet. We
assume in our calculations that all-zeros and all-ones subnets can be used.
The following diagram illustrates the calculation steps.
How to Subset a Class C Address Using the Fast
Way
Now let's see how to subnet the same Class C address using a faster
method. Let's again use the IP address 192.168.10.44 with subnet mask
255.255.255.248 (/29).
2. Hosts per subnet: 3 bits are left to identify the host therefore the total
number of hosts per subnet is 2 to the power of 3 minus 2 (1 address for
subnet address and another one for the broadcast address)(2^3-2)
which equals to 6 hosts per subnet.
3. Subnets, hosts and broadcast addresses per subnet: To find the valid
subnets for this specific subnet mask you have to subtract 248 from the
value 256 (256-248=8), which is the first available subnet address.
Actually the first available one is the subnet-zero which we explicitly
note. Next subnet address is 8+8=16, next one is 16+8=24 and this goes
on until we reach value 248.
The following table provides all the subnet cal information. Note that our IP
address (192.168.10.44) lies in subnet 192.168.10.40.
Start with testing your knowledge of subnets and make sure you feel
confident about this before you move on to designing your own subnets. But
remember, if you're on the Cisco Networking track you will have to deal with
subnetting sooner or later, so grab this opportunity and start testing yourself.
If you find you’d benefit from more guidance and hands-on training while
learning how to subnet, Pluralsight offers resources that will get you well on
your way. Read about some Cool Subnetting Tricks with Variable Length
Subnet Mask or sign up for subnetting courses through Pluralsight!
Updated 10/9/2019
Contributor
sa Stelios Antoniou
Stelios Antoniou holds a BSc in Electronic Engineering and an MSc in
Communication Networks. He has over three years of experience in
teaching MS Office applications, networking courses and GCE courses
in Information Technology. Stelios is currently working as a VoIP
Engineer in a Telecom company, where he uses his knowledge in
practice. He has successfully completed training on CCNP topics,
Linux and IMS. His enthusiasm, ambition and knowledge motivate him
to offer his best. Stelios has written many articles covering Cisco
CCENT, CCNA, and CCNP.
Support Community
Contact Guides
Help Center Teach
IP Allowlist Partner with Pluralsight
Site Map Affiliate Partners
Download Pluralsight Pluralsight One
Skills Plans Authors
Flow Plans
Company Industries
About Us Public Sector
Careers Non-Profit
Newsroom
Resources
Newsletter
Sign up with your email to join our mailing list.
Loading form…
If this message remains, it may be due to cookies being disabled or to an ad
blocker.