User Tools

Site Tools


networking:subnet_masks:introduction_to_ip_addresses_and_subnetting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
networking:subnet_masks:introduction_to_ip_addresses_and_subnetting [2020/08/19 16:07] 192.168.1.1networking:subnet_masks:introduction_to_ip_addresses_and_subnetting [2020/08/19 16:11] (current) 192.168.1.1
Line 27: Line 27:
   * Calculate 2^6 and you get 64.  This is the number of hosts per subnet.   * Calculate 2^6 and you get 64.  This is the number of hosts per subnet.
   * For the total number of subnets all you do is divide 256/64 and we'll get 4 subnets.   * For the total number of subnets all you do is divide 256/64 and we'll get 4 subnets.
 +
 +----
  
 A table might make this clearer: A table might make this clearer:
Line 38: Line 40:
 |/29|32|8|5|248| |/29|32|8|5|248|
 |/30|64|4|6|252| |/30|64|4|6|252|
 +
 +----
  
 The next steps is to find: The next steps is to find:
Line 46: Line 50:
 Let's take for example 192.168.1.75/27.  Using the chart above we know there are 8 subnets with 32 addresses each.  This IP obviously cannot reside in the .32 to .63 range so it must be in the .64 to .93 range.  Hence the network address for 192.168.1.75/27 is 192.168.1.64 and the broadcast address is 192.168.1.95. Let's take for example 192.168.1.75/27.  Using the chart above we know there are 8 subnets with 32 addresses each.  This IP obviously cannot reside in the .32 to .63 range so it must be in the .64 to .93 range.  Hence the network address for 192.168.1.75/27 is 192.168.1.64 and the broadcast address is 192.168.1.95.
  
-So what's the point of all this madness?  Here's a real world example.  Say you're hired to divide up a 10.14.1.0/24 network into 20 subnets.  Each subnet represents a department in the company.  How would you do this?  From looking at the chart above, you'll need to allocate 32 subnets, which means you need to change the netmask to /29.  Each subnet will have 8 hosts which has only 5 usable addresses (You need one for network address, broadcast, and router).+---- 
 + 
 +===== Summary ===== 
 + 
 +So what's the point of all this madness? 
 + 
 +Here's a real world example.  Say you're hired to divide up a 10.14.1.0/24 network into 20 subnets.  Each subnet represents a department in the company.  How would you do this?  From looking at the chart above, you'll need to allocate 32 subnets, which means you need to change the netmask to /29.  Each subnet will have 8 hosts which has only 5 usable addresses (You need one for network address, broadcast, and router).
  
networking/subnet_masks/introduction_to_ip_addresses_and_subnetting.1597853272.txt.gz · Last modified: 2020/08/19 16:07 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki