day15

Jeremy’s IT Lab lecture video:
Day 15 - Subnetting (3)

Practical Networking’s Subnetting Mastery playlist


Fixed-Length Subnet Masks (FLSM)

PracNet Subnet guide - FLSM

PracNet Subnet Guide - FLSM

Practical Networking’s Subnetting Mastery playlist


PracNet Subnetting - Fixed-Length Subnet Mask (FLSM)

There are two types of questions for FLSM (Fixed-Length Subnet Masks), where you’ll be provided with two key pieces of information and you’ll have to solve for the third (As seen in the photos)

The best and easiest way to solve these questions would be to use the 2N table and the cheat sheet.

Cheat Sheet & N Table Image


Transclude of Cheat-Sheet--and--N-Table-Canvas.canvas

Link to original


Two Question Types

There are two types of questions usually, being:

Question Type 1:

If you start with /y, what size sub-network would you need to create X sub-networks?

  • /y is the given Subnet size.

  • X is the amount of subnets we need to create.

    In this type of question you’d have to look through the sub-networks table for X, and figure out the N in order to ADD it on top of /y

Example 1:

  • Ex: If you start with a /18, what size sub-network would you need to create 100 sub-networks?
    • For this question, you look for an N value which could contain 100 sub-networks. 100 specifically is not possible, so we’ll choose the next possible value which is 128 sub-networks, and the N value for 128 sub-networks is equal to 7.
    • So, in order to get our sub-network size, we’ll add the given /18 and N value of 7 together to get /25 and that’s the answer to the question.
      • Equation: (/18 + 7 = /25)

Example 2:

  • Ex. If you start with a /19, what size sub-network would you need to create 100 sub-networks?
    • For this question, you look for an N value which could contain 100 sub-networks. 100 specifically is not possible, so we’ll choose the next possible value which is 128 sub-networks, and the N value for 128 sub-networks is equal to 7.
    • So, in order to get our sub-network size, we’ll add the given /19 and N value of 7 together to get /26 and that’s the answer to the question.
      • Equation: (/19 + 7 = /26)

Example 3:

  • Ex. If you start with a /20, what size sub-network would you need to create 200 sub-networks?
    • For this question, you look for an N value which could contain 200 sub-networks. 200 specifically is not possible, so we’ll choose the next possible value which is 256 sub-networks, and the N value for 256 sub-networks is equal to 8.
    • So, in order to get our sub-network size, we’ll add the given /20 and N value of 8 together to get /28 and that’s the answer to the question.
      • Equation: (/20 + 8 = /28)

Example 4:

  • Ex. If you start with a /12, what size sub-network would you need to create 15 sub-networks?
    • For this question, you look for an N value which could contain 15 sub-networks. 15 specifically is not possible, so we’ll choose the next possible value which is 16 sub-networks, and the N value for 16 sub-networks is equal to 4.
    • So, in order to get our sub-network size, we’ll add the given /12 and N value of 4 together to get /16 and that’s the answer to the question.
      • Equation: (/12 + 4 = /16)

Example 5:

  • Ex. If you start with a /10, what size sub-network would you need to create 500 sub-networks?
    • For this question, you look for an N value which could contain 500 sub-networks. 500 specifically is not possible, so we’ll choose the next possible value which is 512 sub-networks, and the N value for 500 sub-networks is equal to 9.
    • So, in order to get our sub-network size, we’ll add the given /10 and N value of 9 together to get /19 and that’s the answer to the question.
      • Equation: (/10 + 9 = /19)


Question Type 2:

  • If you start with a /y, how many sub-networks could you create that contain X IP addresses?
  • Also comes as: If you start with a /y, how many sub-networks could you create that were each /X?
  • /y is the given Subnet size.

  • X is the amount of IP addresses.

  • In this one you’ll have to reference the Practical Networking guide cheat sheet to figure out the sub-network size by looking at our X, after we find it, we need to SUBTRACT it, using the formula: subnetworkSize - /y.

    • The result of our subtraction will be the N value, from there we check the sub-network table to find the amount of sub-networks.

( Type 1) Example 1:

  • Ex. If you start with a /20, how many sub-networks could you create that could contain 50 IP addresses?
    • In this question, we need a sub-network size that would be able to fit 50 IP addresses. By looking at the cheat sheet we’ll find that it’s /26 which can contain 64 IP addresses.
    • Next step is to do the subtraction. The equation will be /26 - /20 resulting in 6. Great, that’s our N value.
    • Now, we look at our N Values table for N value: 6 and we find that 26 = 64
    • Therefore, we can have 64 sub-networks that could contain 50 IP addresses each.

( Type 1) Example 2:

  • Ex. If you start with a /21, how many sub-networks could you create that could contain 50 IP addresses?
    • In this question, we need a sub-network size that would be able to fit 50 IP addresses. By looking at the cheat sheet we’ll find that it’s /26 which can contain 64 IP addresses.
    • Next step is to do the subtraction. The equation will be /26 - /21 resulting in 5. Great, that’s our N value.
    • Now, we look at our N Values table for N value: 5 and we find that 25 = 32
    • Therefore, we can have 32 sub-networks that could contain 50 IP addresses each.

( Type 1) Example 3:

  • Ex. If you start with a /22, how many sub-networks could you create that could contain 50 IP addresses?
    • In this question, we need a sub-network size that would be able to fit 50 IP addresses. By looking at the cheat sheet we’ll find that it’s /26 which can contain 64 IP addresses.
    • Next step is to do the subtraction. The equation will be /26 - /22 resulting in 4. Great, that’s our N value.
    • Now, we look at our N Values table for N value: 4 and we find that 24 = 16
    • Therefore, we can have 16 sub-networks that could contain 50 IP addresses each.

( Type 2) Example 4:

  • Ex. If you start with a /22, how many sub-networks could you create that were each /30?
    • In this question, our goal is to figure out the N value, as we’ll use it to find the number of sub-networks we can create.
    • We achieve this by taking our starting size of /22 and subtracting it from /30. This will give us an N value of 8.
      • Equation: (/30 - /22 = 8)
    • Now, we look at our N Values table for N value: 8 and we find that 28 = 256.
    • Therefore, we can make a total of 256 sub-networks.

( Type 2) Example 5:

  • Ex. If you start with a /10, how many sub-networks could you create that were each /16?
    • In this question, our goal is to figure out the N value, as we’ll use it to find the number of sub-networks we can create.
    • We achieve this by taking our starting size of /10 and subtracting it from /16. This will give us an N value of 6.
      • Equation: (/16 - /10 = 6)
    • Now, we look at our N Values table for N value: 6 and we find that 26 = 64.
    • Therefore, we can make a total of 64 sub-networks.
Link to original


Variable-Length Subnet Masks (VLSM)

PracNet Subnet guide - VLSM

PracNet Subnet Guide - VLSM

Practical Networking’s Subnetting Mastery playlist


PracNet Subnetting - VLSM (Variable-Length Subnet Masks)

FLSM (Fixed-Length Subnet Masks)

  • Up until now, we’ve been using FLSM (Fixed-Length Subnet Masks) to subnet our networks.
    • This means that all of the subnets use the same prefix length.
    • (ie. subnetting a class C network into 4 subnets using /26).

VLSM (Variable-Length Subnet Masks)

  • VLSM (Variable-Length Subnet Masks) is where you make subnets of different (variable) sizes, in order to use your network addresses more efficiently.

VLSM Steps (Through PracNet)

  1. Determine required sub-network sizes.
  2. Allocate IP blocks from largest to smallest (IP blocks is referring to the subnets that we’ve got).
PracNet’s Question and Answer
  • PracNet solved R2’s subnet sizes inefficiently on purpose, in order to teach us how to use VLSM.
  • R3’s subnet sizes were solved following steps 1 & 2.
  • The point-to-point connection between R1-R2 & R1-R3 was solved using /31, as it allows for 2 addresses if we don’t allocate a Network Address and Broadcast Address, however, /30 would work as well. (According to Jeremy, it’s recommended to use /30 in the exam.)

VLSM Steps (Through Jeremy’s IT Lab)

Despite the steps being a bit different, it’s still the same concept and VLSM is done the same way.

  1. Assign the largest subnet at the start of the address space.
  2. Assign the second-largest subnet after it.
  3. Repeat the process until all subnets have been assigned.
Jeremy’s Question and Answer

My solution of the question in Inkodo:

  • Additionally, I calculated the following variables in each subnet:
    1. Network Address
    2. Broadcast Address
    3. First Possible Address
    4. Last Possible Address
    5. Number of Usable Hosts
My solution
Link to original