Speed Subnetting for Success in the CCENT and CCNA Exams

Subnetting is an absolutely critical component for CCNA success. In this article, we are first going to review how subnetting works, ensure you master the “longhand” method and understand the mathematics behind this networking principle. Once this is done, we are going to look at some shortcuts that can be used in the exam to ensure that we can solve the many subnetting challenges quickly and accurately.

Subnetting is an absolutely critical component for CCNA success. The skill must be demonstrated in the CCENT (ICND1) and CCNA (ICND2) exams. Should you take the composite CCNA exam option, you need to be even better and faster at subnetting in order to achieve success.

In this article, we are first going to review how subnetting works and ensure you master the “longhand” method and understand the mathematics behind this networking principle. Then we will look at some shortcuts that can be used in the exam to ensure that we can solve the many subnetting challenges quickly and accurately. I believe it is critical that students understand the how’s and why’s behind this topic. It is unacceptable, in my opinion, to master subnetting if you only know the shortcuts. We need to fully understand why we are doing something in the network, and how it truly works before we can start seeking exam shortcuts.

Why Subnetting?

Why do we even need this concept of subnetting? Well, we need to break up our networks into smaller networks all of the time. Breaking the network up allows the network to be more efficient and more secure and more easily managed.

When you look at a Class B private address like 172.16.0.0/16 (255.255.0.0), you can calculate the number of hosts that can live in this network. You take the number of bits used for host addressing (16), and you raise 2 to this power and then subtract 2. So the formula is 2^h-2 where h is the number of host bits. We need a calculator for this one because the number is so big! It turns out that 65,534 can live in this network. That’s great, that’s amazing, and...it also turns out that this is impossible! In a typical TCP/IP network of today, you are going to have big problems if you start placing 500 or more systems in the same network (subnet), never mind 65,000 or more!

Number of Subnets and Number of Hosts

So if we want to use the 172.16.0.0 private address space, we need to “subnetwork” this address space in order create more network addresses that can each accommodate an appropriate number of host systems. When we subnetwork, we play a balancing act. As we “borrow” bits for subnetting from the host bits, we can create more subnets, but we do so at the cost of being able to support fewer and fewer host systems per network. The formula for how many hosts you can have always remains the same— it is 2^h-2. The formula for how many networks we can create is very similar. It is 2^n where n is the number of bits we borrow from the host bits.

Let us study an example. If we have 172.16.0.0/16 and we decide to borrow 8 bits for subnetting, we can create 2^8 or 256 different subnetworks. How many hosts can each of these subnetworks accommodate? Well, there are now 8 bits left for host addressing. 2^8-2 gives us 254 hosts per subnetwork.

A Sample Subnetting Scenario

Let us stick with the example where we begin with the private IP address space of a Class B address of 172.16.0.0. We examine our networking needs and realize that we need to accommodate 100 different subnetworks in our organization. From the previous information in this article, we know that in order to create 100 subnets, we need to borrow 7 bits (2^7 = 128). This is perfect; we have the number of subnetworks that we need, plus a few extra that we can call upon when the network inevitably grows.

What will the subnet mask be in this scenario? This mask will be the one that is used by all of the hosts in all of the different subnetworks. It is critical that we calculate this number correctly, of course.

Notice that our Class B address originally had 16 bits that made up the network ID portion. In this sample scenario we are going to borrow 7 bits. Now we have a network ID that is made up of 23 (16+7). We can write out the 23 bits of the subnet mask now:

11111111.11111111.11111110.00000000

So converting to our convenient dotted decimal notation, we can see our mask:

255.255.254.0

A cooler way to write the mask is just /23 after the IP address. This is called prefix notation.

So what would the first subnetwork network ID be? Well, we know it will start 172.16, but what will the value be in that third octet where we have some bits (7) representing the subnet and one bit representing the host portion.

To answer this in the longhand method, we write out the mask and the address from that octet in binary and do some analysis.

IP: 00000000

Notice the first subnetwork will be 172.16.0.0. We can use all zeros in the first 7 bit positions of the third octet, and we have a zero in the last bit position which is used to identify hosts.

What would the first host address be in this network? Let’s write those last two octets out longhand:

00000000.00000001

The first host address on the 172.16.0.0 network would be:

172.16.0.1

What would the broadcast address be for that network? To get this you fill all the host bits with a 1:

00000001.111111111

172.16.1.255

How about the last usable host address on this subnetwork? Easy. We will turn all the host bits to 1, except for the last one.

00000001.11111110

172.16.1.254

What is the next subnetwork in this scheme? Well, let us turn one of those subnetwork bits on. We will start with the least significant (rightmost):

IP: 00000010

Ahh, so the next network is 172.16.2.0/23.

Exam Shortcuts

It is wonderful to see how all of this works longhand, but in the lab exam environment, we are VERY pressed for time. We need powerful shortcuts. Here we will walk through my preferred shortcuts against the backdrop of sample exam questions.

SampleQuestion 1:

What is the last usable address in the subnet of a host with the address 192.168.1.136 and a subnet mask of 255.255.255.240?

Step 1 Upon arriving at my first subnetting question in the exam environment, I build a Powers of Two reference chart on the scratch paper Cisco provides.

2^7=128 | 2^6=64 | 2^5=32 | 2^4=16 | 2^3=8 | 2^2-=4 | 2 ^1=2 | 2^0=1

Step 2 How many bits of subnetting are used in the fourth octet here? My Powers of Two chart tells me. 1 bit = 128; 2 bits = 192; 3 bits = 224; 4 bits = 240. Yes, the forth octet of the subnet mask looks like this in binary—11110000.

Step 3 Now the magic of the shortcut—we go four bits deep (from left to right) in the Powers of Two chart. This tells us the value that the subnets increment on. In our example it is 16:

So our subnets are:

• 192.168.1.0
• 192.168.1.16
• 192.168.1.32
• 192.168.1.48
• 192.168.1.64
• 192.168.1.80
• 192.168.1.96
• 192.168.1.112
• 192.168.1.128
• 192.168.1.144

Step 4 This host, with the address of 192.168.1.136 must live on the 192.168.1.128 subnet. The broadcast address for this subnet is one less than the next subnet of 144, so that is 143. The last usable address is 142. We have arrived at our answer—192.168.1.142.

Sample Question 2

Step 1 Here I begin by referencing the Powers of Two chart I created on my scratch paper. Adding 128 + 64 + 32, I get the 224 value used in the fourth octet of the subnet mask. Therefore, I can see that there are 3 bits used for subnetting in that octet. This leaves 5 bits for host addressing.

2^7=128 | 2^6=64 | 2^5=32 | 2^4=16 | 2^3=8 | 2^2-=4 | 2 ^1=2 | 2^0=1

Step 2 As we discussed earlier, the equation for the number of hosts per subnet is 2^h – 2 where h is the number of host bits. From the chart I see that 2^5 = 32. 32-2 = 30 hosts per subnet.

Conclusion

Initially, the subnetting related questions strike fear in the hearts of CCNA candidates. Sure enough, with study and practice, and the many shortcut methods that exist, these questions become the favorites in the Certification Exam environment. They can be solved easily and quickly, and candidates know they solved them correctly. Thanks to the power of mathematics, there are certainly no “grey” areas in questions like these.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview

Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security

Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children

This site is not directed to children under the age of 13.

Marketing

Pearson may send or direct marketing communications to users, provided that

• Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
• Such marketing is consistent with applicable law and Pearson's legal obligations.
• Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
• Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out

Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

• As required by law.
• With the consent of the individual (or their parent, if the individual is a minor)
• In response to a subpoena, court order or legal process, to the extent permitted or required by law
• To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
• In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
• To investigate or address actual or suspected fraud or other illegal activities
• To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
• To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
• To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.