Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

The whole site in one document for easy reference!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Internet Layer (OSI Network Layer) Protocols
           9  Internet Protocol (IP/IPv4, IPng/IPv6) and IP-Related Protocols (IP NAT, IPSec, Mobile IP)
                9  Internet Protocol Version 4 (IP, IPv4)
                     9  IP Addressing
                          9  IP Subnet Addressing ("Subnetting") Concepts

Previous Topic/Section
IP Subnet Identifiers, Subnet Addresses and Host Addresses
Previous Page
Pages in Current Topic/Section
1
234
Next Page
IP Variable Length Subnet Masking (VLSM)
Next Topic/Section

IP Subnetting Summary Tables For Class A, Class B and Class C Networks
(Page 1 of 4)

Since there are only a few options for how to subnet each of Class A, Class B and Class C networks, I have listed the options for each class in three summary tables below: Table 52, Table 53 and Table 54. These tables can help you quickly decide how many bits to use for subnet ID and host ID, and then what the subnet mask is for their selection. They also summarize nicely what we've discussed in this section.

Each row of each table shows one possible subnetting option for that class, including the number of bits for each of the subnet ID and host ID, and the number of subnets and hosts based on the number of bits. I then show the subnet mask in binary and decimal form, as well as in CIDR notation. Finally, I include the formula for calculating the addresses for each subnet under each of the options.

Notes on the Three Subnetting Summary Tables

A few additional explanatory notes are in order regarding these tables:

  • The values for the number of subnets per network assume that the all-zeroes and all-ones subnets are allowed. If not, you must subtract 2 from those figures; this also means that the option using only one bit for the subnet ID becomes invalid, and the subnet address formulas no longer work as shown.

  • The number of hosts per subnet does exclude the all-zeroes and all-ones cases, so it is two to the power of the number of host ID bits, less two.

  • The first row of each table shows the “default” case where the number of subnet bits is zero, and thus the subnet mask is the default subnet mask for the class.

  • In the subnet mask for all options but the default, I have highlighted the portion of the subnet mask corresponding to the subnet ID, for clarity. This has been done for each individual bit of the binary mask, and for each octet in the dotted decimal representation of the mask where part of the subnet ID is found.

  • You will see that not all of the divisions make a great deal of sense in the real world… though you might be surprised. For example, at first glance it seems silly to think that we might want to assign 14 bits of a Class B host ID to the subnet ID and leave 2 bits for the host ID—what sort of real network has 16,384 subnets with 2 hosts on each? Yet some larger Internet service companies may indeed require thousands of tiny subnets when setting up connections between routers, or between their core network and their customers.

  • The subnet address formulas in the last column of each table show the address for subnet #N (numbering from zero up to one less than the maximum number of subnets).See the end of step #4 in the step-by-step subnetting section for a full explanation of how these formulas work.

Previous Topic/Section
IP Subnet Identifiers, Subnet Addresses and Host Addresses
Previous Page
Pages in Current Topic/Section
1
234
Next Page
IP Variable Length Subnet Masking (VLSM)
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.