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 Subnetting: Practical Subnet Design and Address Determination Example

Previous Topic/Section
IP Subnetting Step #3: Determining The Custom Subnet Mask
Previous Page
Pages in Current Topic/Section
12
3
45
Next Page
IP Subnetting Step #5: Determining Host Addresses For Each Subnet
Next Topic/Section

IP Subnetting Step #4: Determining Subnet Identifiers and Subnet Addresses
(Page 3 of 5)

Class B Subnet ID and Address Determination Example

Let's look at our other example now, Class B network 166.113.0.0. In binary this is:

0100110 01110001 00000000 00000000

We are using 5 bits for the subnet ID, leaving 11 host ID bits. The network address with the subnet ID bits highlighted is:

0100110 01110001 00000000 00000000

Here, only the third octet will ever change for the different subnets. The first two will always be “166.113” and the last octet will always be zero. There are 32 possible subnets; I'll list the first few so you can see the pattern (refer to Figure 79 as well):

0. Subnet #0 has a subnet ID of 00000. This means the address will be 166.113.0.0, the network address, as we would expect.

  1. Subnet #1 has a subnet ID of 00001. The address becomes:
10100110 01110001 00001000 00000000
This is 116.113.8.0 in decimal.
  1. Subnet #2 has a subnet ID of 00010, giving an address of 116.113.00010000.0 or 116.113.16.0.

  2. Subnet #3 has a subnet ID of 00011 and a subnet address of 116.113.24.0.

    Figure 79: Determining Subnet Addresses For A Class B Network

    This is the same as Figure 78, but for a Class B network with 5 subnet ID bits (I have not shown all 32 subnets, for obvious reasons!)

     


Again, the pattern here is obvious: you add 8 to the third octet to get successive addresses. The last subnet here is #31, which has a subnet address of 116.113.248.0, which has the same third and fourth octets as our subnet mask of 255.255.248.0.


Previous Topic/Section
IP Subnetting Step #3: Determining The Custom Subnet Mask
Previous Page
Pages in Current Topic/Section
12
3
45
Next Page
IP Subnetting Step #5: Determining Host Addresses For Each Subnet
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.