Question

Subnetting

Asked by: MCSA2003

I am really struggling on learning how to subnet. This is no joke, I have been beating this stuff in my head for 2 days straight and I am no closer now than I was when I first started this chapter. Here is one example if someone could spoon feed me the answer I would appreciate it. I have an IP address of 138.43.39.152/29. I am trying to find the Network ID, the broadcast ID, the first usable host and the last usable host. Here is what I have done and I realize it is wrong, but this is where I am stuck.

                                  138.43.39.15
                                  255.255.255.240

  The subnet in binary form breks down to:
11111111 11111111 11111111 11111000

so I take the 0 bits and come up with 2 to the 3rd -2 which is 6 hosts per subnet. so I have the ip ranges as follows:

138.43.39.0 - 138.43.39.5
138.43.39.6 - 138.43.39.11

I keep doing this all the way to the 138.43.39.150 - 138.43.39.155 range as the original IP of 138.43.39.152 falls into this range. So I come up with the following:

138.43.39.150 as the network ID
138.43.39.155 as the Broadcast
138.43.39.151 - 138.43.39.154 as the available ip range This leaves me with 4 addresses to use + the 2 ip's for the network and broadcast which gives me the 6 hosts in that range.

Please explain to me where I am going wrong!!!!!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-13 at 20:26:12ID24810081
Tags

CCNA

,

Subnetting

Topics

Miscellaneous Networking

,

TCP/IP

,

Network Routers

Participating Experts
4
Points
500
Comments
11

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. IP subnetting
    Are there any best practises when it comes to IP subnetting in Enterprise environments?
  2. subnetting a subnet id into various subnets
    You have a class B network ID 131.108.0.0. You have been giving the task of subnetting this id into the following subnets. You require a) one subnet that can accomodate 32,000 hosts. b) 8 subnets that can accomodate 2000 hosts per each subnet c) 15 subnets that can accomodat...
  3. Subnetting Question
    im having trouble understanding subnetting. i hope u can help me i have a host of 211.10.16.85 and subnet mask of 255.255.255.240 i want to know how many valid subnets and hosts are availabe on this subnetted network and what is the range of valid IP addresses for each subne...
  4. Subnetting
    Lo everybody Im trying to get my head around subnetting, aparrently its one of the hardest concepts to understand with networking. Anywho, I beleive subnetting is a way of limiting a number of computers on a particular class network (please correct me if im wrong). What im t...
  5. Subnetting
    My company is in the process of moving from multiple locations into one location. I am thinking of creating 2 subnets. 1 for my servers and another for our workstations. I have never setup multiple subnets so I am not sure how they would be able to communicate to each other. ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: MCSA2003Posted on 2009-10-13 at 20:27:34ID: 25567007

Correction on the IP address I have listed after the first paragraph. It reads 138.43.39.15 and should be 138.43.39.152

 

by: RobWillPosted on 2009-10-13 at 20:59:01ID: 25567133

First couple of issues I see are:
/29 = 255.255.255.248
But more importantly
138.43.39.0/29 =
138.43.39.0 is the network ID
138.43.39.1 to 138.43.39.6 are the 6 usable hosts
and 138.43.39.7 is the broadcast address
I think you are thinking there are 6 IP's per subnet were there are 8, but only 6 usable.

 

by: RobWillPosted on 2009-10-13 at 21:01:25ID: 25567143

Ps- I recommend learning to do this long hand as it helps to understand, but a subnet calculator such as in the following link may be helpful to check your work:
http://jodies.de/ipcalc?host=138.43.39.152&mask1=29&mask2=

 

by: MCSA2003Posted on 2009-10-13 at 21:13:31ID: 25567180

RobWill: Good catch on the subnet being incorrect. I still have a few questions here.

This is my understanding. 2^3=8 then you subtract 2. One for the network ID and the other for the Broadcast. So your saying I should be including 8 ip's in each subnet, but just keep in mind that 2 of the 8 are unusable? So if this is correct then I should be doing:

138.43.39.0 - 138.43.39.7
138.43.39.8 - 138.43.39.15
138.43.39.16 - 138.43.39.23
etc. etc. etc.


 

by: RobWillPosted on 2009-10-13 at 21:22:28ID: 25567220

Correct!
Just keep in mind it is base 2, so everything will be in increments of 2 exponent 'x', i.e. 2, 4, 8, 16, 256

Same applies with  bigger subnets like:
192.168.0.0/24
255.255.255.0 is the subnet mask
192.168.0.0 is the network ID
192.168.0.1 to 192.168..0.254 are usable IP's
192.168.0.255 is the broadcast IP
2^8-2  (i.e. 254 usable IP's and 1 NetID and 1 Broadcast)

 

by: romandainPosted on 2009-10-13 at 23:28:44ID: 25567765

Here is the quick down and dirty on how I teach my Marines how to subnet.

/24  /25  /26  /27  /28  /29  /30  /31  /32
255 128  64  32    16    8     4      2    1
1       2     4    8     16   32    64   128 255

The Top line represents the CIDR notation of the network or how many bits are "turned on" for that network.

R/S

SSgt Lee Chieffalo
Network Engineer USMC

The middle line is how many valid IP's you can have with a network that has that subnet mask.  For example a /27 network has 32 valid IP's in that network.  Remember with IP's you always have to subtract 2 for the network ID & broadcast.

The last row is how many valid networks you can have with that subnet if you use traditional subnetting or basically no VLSM.  For example you can break up a class C network into 8 /27's.

Also all valid starting points for these networks have to be divisible by the number in the middle row.  For example if you wanted to use a /27 somewhere in the middle of your network you would have to start it at a IP that is divisible by 32.  For example valid starting points are 0, 32, 64, 96, 128, 160, 192, & 224.  

If you need to go into supernetting such as Class B net's just replace the top row with /16 - /23 and the middle 2 rows would represent whole class C networks.  

 

by: prvnkumarkPosted on 2009-10-13 at 23:32:05ID: 25567775

Hi,
138.43.39.152/29

steps

1)write down /29 in binary that is 11111111.11111111.11111111.11111000
2)find the increment for /29 or 255.255.255.248 correction it is not 240
3)increment is 8, this is binary 1st starting binary 1 from right side. that is


128 64 32 16   8  4 2 1  this is in fourth octet. so your subneting is in fourth octet.
 1   1  1  1   1  0 0 0

4)now write down the network and subnet.

138.43.39.0
138.43.39.8
138.43.39.16
       .24
       .32
       .40
       .48
       .56
       .64
       .72
       .80
       .88
       .96
       .104
       .112
       .120
       .128
       .136
       .144
      138.43.39.152 ------138.43.39.159  this is your network range.. in this 152 is network id and 159 is broadcast id
        .160                       and in between is usable ip i.e. from 153 to 158.


i hope this is usefull and clear for you...go step by step..practice as much as possible with subnets.

Regards,
Praveen

 

by: red_nectarPosted on 2009-10-14 at 02:33:47ID: 25568547

Forget the bitwise operations.  Here's how I do subnets.  In my head!  Any subnet, any mask in 30 seconds or less.

1.    First - credit where it is due.  My method has been shamelessly stolen from Wendell Odom's CCENT/CCNA ICND1 Official Exam Certification Guide.

2.    The whole secret around subnets lies in:
   a) the subnet mask
   b) knowing your 2x, 4x, 8x, 16x, 32x, 64x and 128x times tables as far as 256
Most people can handle 2x, 4x and (at a pinch) 8x.  32x, 64x and 128x only have 8, 4 or 2 items before you hit 256, so that leaves you your 16x tables to learn.

Here's the deal:

Look at the "interesting" number in the subnet mask.  That is, the number that is NOT 0 or 255.  In your case:
138.43.39.15
255.255.255.240
Your "intesting" octet is octet 4 ie 240.
Subtract this number from 256 - you'll get 16 (256-260=16) in this case.  If the mask was 255.255.255.224 you'd get 256-224=32.  There are only 7 possibilities (excluding 0 and 255).  Learn them. I'll list them later for you.

Back to 138.43.39.15 255.255.255.240

256-240=16.  Odom calls this the "magic number".  I'll stick with his definition.

The key to understanding subnet is this "magic number".  Read the following carefully:

If the "magic number" is 16, then

  • ALL of your subnet numbers will be multiples of 16, starting at 0 
  • All of your broadcast addresses will be 1 less than a multiple of 16. 
  • The first IP address on any subnet is simply the subnet address plus 1 in the last octet 
  • The last IP address on any subnet is simply the broadcast address minus 1 in the last octet. 

Now read that last section again until it sticks.

In your case, where the magic number is 16, the subnet MUST be one of the following:
0
16
32
48
64
80
96
112
128
144
160
176
192
208
224
240
(256)

There you go - that's your 16x tables up to 256. Told you to learn this didn't I?  By the way, your 32x tables is just every 2nd number from the above.

Note that the last entry before 256 is the same as the subnet mask's "interesting octet".  This is ALWAYS the case.

Back to 138.43.39.15 255.255.255.240 again.

Now your "interesting octet" is the 4th octet, which for your IP address is 15.

  • Your subnet number MUST be less than 15, but one of the multiples of 16 listed above.  Clearly 0 is the only multiple of 16 less than 15.  So your subnet is 
  • 138.43.39.0 
  • The next subnet would be 138.43.39.16 - the NEXT multiple of 16. 
  • The first address on your subnet will be 138.43.39.0+1 = 138.43.39.1 
  • The broadcast address will be the NEXT subnet minus 1 ie 138.43.39.16-1 = 138.43.39.15 
  • The last address will be one less than the broadcast address: 138.43.39.15-1 = 138.43.39.14 

So the address you started with is the broacast address for its subnet = 138.43.39.15


Here's another example:

134.27.183.219 255.255.255.248
Magic number=256-248=8
The "interesting octet" is the last octet, so I focus on 219
Recalling my 8x tables around 219
0
8
..
208
216
224
etc
  • I can see that my subnet number must be 216 - the closest multiple of 8 to 219 that is not greater than 219. 
  • The first address then would be 217 
  • The broadcast address would be 223 (1 less than the next multiple of 8) 
  • The last address would be 222. 
Or expressed fully:
  • Subnet: 134.27.183.216 
  • 1st Address: 134.27.183.217 
  • Last Address: 134.27.183.222 
  • Broadcast: 134.27.183.223 
  • Next Subnet: 134.27.183.224 (I list this because I actually figure this out then work backwards for the broadcast and last address) 

This one is a bit harder - the interesting octet is the 3rd octet

22.19.178.234 255.255.224.0
Magic number=256-224=32
The interesting octet is the 3rd octet, so I focus on 178.
Recalling my 32x tables around 178
0
32
..
160
192
224
  • I see 160 is the closest multiple of 32 that is not greater than 178 
  • This makes my subnet 22.19.160.0 
  • The first address 22.19.160.0+1=22.19.160.1 
  • The NEXT subnet ('cause I'm going to work backwards) is 22.19.192.0 
  • So the broadcast address is 22.19.192.0=1=22.19.191.255 
  • And the last address 1 less than the broadcast address: 22.19.191.255-1=22.19.191.254 

Remember there are only 7 possible magic numbers (8 if you count 256-255=1), so they are not hard to learn.  Here they are
Mask Magic number
255    1 (just for completeness)
254    2
252    4 (this is a common one)
248    8
240   16
224   32
192   64
128  128


One more tricky one to finish:
12.34.56.78 255.255.252.0
Magic number=256-248=8
The interesting octet is the 3rd octet, so I focus on 56.
Recalling my 4x tables around 56
0
4
..
48
52
56
60
  • I can see that my subnet number must be 56 - the closest multiple of 4 to 56 that is not greater than 56.  See why it is tricky?  The "interesting octet" value is a multiple of the magic number, so you stop there. 
  • This makes my subnet 12.34.56.0 
  • The first address 12.34.56.0+1=12.34.56.1 
  • The NEXT subnet ('cause I'm going to work backwards) is 12.34.60.0 
  • So the broadcast address is 12.34.60.0=1=12.34.59.255 
  • And the last address 1 less than the broadcast address: 12.34.59.255-1=12.34.59.254 

Finally, if you want to learn this stuff (like for CCNA exam) spend half an hour a night on http://www.subnetttingquestions.com


 

by: red_nectarPosted on 2009-10-14 at 02:39:21ID: 25568565

Darn- where is the "correct" button:

The last example should read: (Corrections underlined)

One more tricky one to finish:
12.34.56.78 255.255.252.0
Magic number=256-252=4
The interesting octet is the 3rd octet, so I focus on 56.
Recalling my 4x tables around 56

 

by: MCSA2003Posted on 2009-10-14 at 03:44:57ID: 31640894

I appreciate everyones help but in the end it was RobWill that helped figure out what I was doing wrong. I was not accounting for the host and brodcast ip addresses when doing the math.

 

by: RobWillPosted on 2009-10-14 at 06:01:02ID: 25569935

Thanks MCSA2003.
Cheers!
--Rob

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...