Quick and Dirty Subnetting
MCSE, CISSP, Security+, Network+, A+ Certification Practice Exams, Study Guides and Vouchers Sign Up | Login   
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
Unlimited Access Practice Exams Audio Training Exam Vouchers Video Training Free White Papers
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE CCNA  A+ CERTIFICATION NETWORK+ ETHICAL HACKER SECURITY+   CISSP   CCNP MORE...
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
NEWS

Quick and Dirty Subnetting

Email this ArticleEmail this Article  Print this ArticlePrint this Article

• Relates to: MCSE 2000 | MCSE 2003 | MCSA 2000 | CCNA | CCDA | CCNP | CCDP | CCIP | MCSA 2003

We can’t emphasize enough the importance of being able to calculate subnets on the fly when working with Windows 2000, particularly for designing your Active Directory site structure (also something you will get hammered on in MS exam 70-216 and 70-221).

If you know the principles and theory behind subnetting and can convert binary numbers to decimal and decimal to binary, you may find this very short summary of how to perform subnetting useful. If you are not at the stage where you are comfortable with either binary numbers or the principles behind subnetting, you might want to read over our two-part series, Learn to Subnet (URLs at bottom of page).

For people who work with IP addressing and routing as part of their jobs, subnetting or supernetting becomes second nature. For them, it is a fairly easy thing to calculate subnets. A lot of people who are new to networking or relatively inexperienced with TCP/IP often and wrongly think that performing subnetting is a mysterious and difficult task. I remember the frustration I felt many years ago when, as an inexperienced network admin, I could not get anyone to give me a good explanation of subnetting. Some of the more experienced network administrators, in fact, refused to explain it to me. I don't know if they were protecting their jobs or what, but it did seem to me at the time that they were going out of their way to create a false aura of mystery and difficulty concerning subnetting.

The truth is this: calculating subnets is fairly easy and doesn't require that you memorize anything except a few general principles and know how to work with binary numbers. The purpose of this short explanation is to provide you with the minimum amount of information you have to carry around in your head in order to calculate subnet (or supernet) masks in any situation, an exam, your job, etc.

Some rules to remember:
1) The network portion of the IP address described by the extended subnet mask cannot be expressed as all 0s or all 1s. (The validity of this rule depends on a number of factors such as the type of hardware and the routing protocol in use.) So, for example, let's assume we have extended a Class B network by borrowing two bits from the host portion of the address thus: 172.16.0.0/18. The subnet mask is 255.255.192.0 or 11111111.11111111.11000000.00000000.

Any combination of 0s and 1s in the 3rd octet could possibly comprise a network ID. However, following our rule of not allowing all 1s or all 0s in the positions covered by the extended subnet mask, we get the following valid network IDs in the 3rd octet:

00000000 = 0 Not a valid network ID (all 0s)
01000000 = 64 Valid network ID (172.16.64.0)
10000000 = 128 Valid network ID (172.16.128.0)
11000000 = 192 Not a valid network ID (all 1s)


2) The host portion of the IP address cannot be expressed as all 0s or all 1's. All 0s in the host portion of the address indicates the Network ID. All 1's in the host portion of the address indicates the address for the broadcast on the subnet. Therefore, using our example above, here are the valid host IDs for our two valid subnets 172.16.64.0/18 and 172.16.128.0/18:

172.16.64.1/18 – 172.16.127.254/18
172.16.128.1/18 – 172.16.191.254/18

To understand the rule more clearly, convert the host addresses to binary:

          64       1              127     254 
   x.y.01000000.00000001 – x.y.01111111.11111110 
 
          128      1              191      254 
   x.y.10000000.00000001 – x.y.10111111.11111110 
 


3) To calculate the number of hosts or the number of networks for a given subnet mask, use the following formula:

2^(number of bits used) – 2 = number of networks/hosts (The '^' means 'raised to the power of'.)

So, given the fact that we have borrowed 2 bits to extend our network, we have 2^2 – 2 = 2 networks (remember, we are excluding the all 1 and all 0 networks).

We have 14 bits left to describe the hosts on each network; therefore we have 2^14 – 2 = 16,382 hosts per network (remember we are excluding host addresses with all 0s or all 1s).

4) The value of the lowest order bit in the subnet mask tells you two things: a) it tells you the first network ID for the subnets created by the extended subnet mask, b) it tells you the value that you can add to one network ID to arrive at the next possible network ID.

Let's take our example extended subnet mask of 255.255.192.0. The 3rd octet expressed in binary with the decimal equivalents is

   128 64  32  16  8   4   2   1  
   1   1...

You must be logged in to view this entire article.
Click Here to Finish Reading this Article


 Subscribe to our Free Must Know News Newsletter
 Name:     Email:  
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification

KEYWORD
 
What is this?
Microsoft, CompTIA, Cisco Realistic Practice Exams
Microsoft, CompTIA, Cisco Realistic Practice Exams
Microsoft, CompTIA, Cisco Realistic Practice Exams
FREE STUDY GUIDES
FREE RESOURCES
FREE QUESTIONS >>
HOME
CERTIFICATIONS
VIDEO TRAINING
PRACTICE EXAMS
AUDIO TRAINING
EXAM VOUCHERS
FREE IT MAGAZINES
CERT COMPARISON
EXAM COMPARISON
SALARY SURVEY
CAREER TRACKS
ARTICLE DIRECTORY
WHITE PAPERS
QUESTION OF THE DAY
NEWSLETTER
ADVERTISE
Industry Updates &
Special Offers
Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
Picks for October
Untitled Document > Persistent Group Chat: An Approach for More Profitable Team Communications : Unlike email, instant messages (IMs) do not allow group communication; nor do they persist -- you can't hold on to them for as long as you wish. Persistent group chat, however, allows businesses to organize persistent dialogue around business-critical topics, and keep them for easy retrieval later.

> Recent White Papers
> NetworkWorld - FREE Subscription Center

> Never Open a Book Again! LearnSmart Video Training for A+, CCNA, Network+ and more.

> Pass Guaranteed: Hundreds of practice exam questions and the most authentic exam simulation.

> Lecture Series audio: Learn at home, on your iPod or while driving to work.

> PMP: Learn everything for the Project Management Professional (PMP) certification

> Quiz Me Series Audio: Rapid-fire question and answer session training

Marketplace

IT Certifications may waive some degree requirements for an online degree. Free catalog!
For several of the IT degrees at WGU, if you hold a relevant IT certification (such as MCSE), you automatically clear a significant portion of the degree requirements. Don't hold an IT certification yet? Don't worry. Not every WGU degree program requires an IT certification in advance. You can earn both at the same time. Lower tuition too!

Earn an online bachelor's degree in Information Technology plus eight IT certifications
Including CompTIA, MySQL Core, and Sun Certified Programmer for the Java Platform. Your prior college and IT certifications may waive some degree requirements; however, you do not have to hold a major certification to enroll.


Earn an affordable, online bachelor's degree in Information Technology—Security Emphasis
plus nine IT certifications including Sun Certified Programmer for the Java Platform, MySQL Core, and Security+. Your prior college and IT certifications may waive some degree requirements

FREE subscription to Network World.
Your complimentary subscription will include 50 weekly issues jam packed with news analysis, expert industry opinion and management/career advice, all of which is packaged with your business needs in mind. We want to help you connect the technology dots and help you advance your company's business goals




Sponsored Link

MCSE, CCNA, CCNP, Security+, Network+, A+ Certification
Free Certification Training Free Certification Training Free Study Guides
   © 1999 - 2008 CramSession. All Rights Reserved. Home   Advertise   Corporate Info   Opportunities   Help