We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is Why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You've Ever Spent on Your Cisco Career!
  • Full Access to our 581 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)


295 New Members signed up the last 30 days!


100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!

Forum Replies

  1. Hi Gabriel,

    Your example is correct, good job! Also thanks for reporting those errors, just fixed them.


  2. Sure, which exact subnet mask do you refer to?

  3. Hi Lynkaran,

    I'll explain how to do the first example, see if you can solve them with my technique. Let's start with

    First we need to figure out what the subnet mask since /22 doesn't tell us much. You need to write this down in binary and convert it to decimal:

    first 8 bits = 11111111 (255 in decimal)
    next 8 bits = 11111111 (255 in decimal)
    next 8 bits = 11111100 (252 in decimal)
    next 8 bits = 00000000 (0 in decimal)

    So now we know the subnet mask is

    How many hosts do we have per subnet? There are 2 + 8 host bits so 10 host bits in total. You can use this formula for this:

    210 - 2 = 1024.

    You need to remove 2 since one address is the network address and the other one is the broadcast address.

    What subnets do we have? There's a quick way to calculate this. Take number 256 - subnet mask = size of subnet:

    256 - 252 = 4

    Now we can write down the subnets, I'll start with 0:








    ...and so on

    You can see it increases with 4 every time, you now have your network addresses. What about the broadcast address? That's the last address in each subnet.

    For subnet #1 that will be and for subnet #5 it's

    See if you can do the other examples on your own with these steps. All you need is practice, practice, practice.

    Hope this helps.


  4. Hello Apurva.

    That is exactly correct! Keep in mind as well that the first and last addresses in the range are the network and broadcast addresses respectively so you will have 126 addresses available for hosts.

    I hope this has been helpful!


  5. Hi Rene,

    I was trying to figure out a way of "knowing" the amount of bits needed for huge hosts without the need of a calculator, like:

    • 2^X-2= hosts (too complicated).

    This way sorts the problem!

    " /24 – 256 addresses /25 – 128 addresses /26 – 64 addresses /27 – 32 addresses

    You can see that whenever the subnet becomes smaller, we can only use half of the addresses. I can apply the same logic if I move into the other direction: /21 – 2048 addresses /22 – 1024 addresses /23 – 512 addresses /24 – 256 addresses"


16 more replies! Ask a question or join the discussion by visiting our Community Forum