Sunday 27 February 2011

Subnetting For Dummies

[simpleaffiliate source="chitika" results="0"][/simpleaffiliate]

Subnetting for Dummies With Scenario's

Below are some scenarios which will help you to learn subnetting more easily







  • Scenario 1 - Given a network address and subnet mask - How many subnets can you have and how many hosts per subnet.




Here we are given the address of: 172.16.0.0 /22




First we list the mask then the address in binary:




11111111 11111111 11111100 00000000 - (Subnet mask)




10101100 00010000 00000000 00000000 - (Address)




To calculate the number of subnets we total up the extra bits we are using in the mask, in this case its 6 (/22 = 8 + 8 + 6)




So as we are using 6 extra bits for the mask we can use the formula:




2 to the power of 6-2 or 2x2x2x2x2x2 = 64-2 =62 subnets




To calculate the number of hosts per subnet we total up the bits available for hosts, in this case its 10 (/22 from 32 total bits = 10)




So as we are using 10 bits for the host we can use the formula:




2 to the power of 10-2 or 2x2x2x2x2x2x2x2x2x2 = 1024-2 1022 hosts per subnet




Point to remember 2 to the power of bits used for either mask or hosts minus 2 will give you either the number of subnets or hosts per subnet




The more bits used for subnets the less bits available for hosts = more subnets - less hosts




 







  • Scenario 2 - Given a network address calculate the customers requirements or subnets and hosts per network




Here we are given the address of: 172.16.0.0 and require 6 departments with 2000 hosts per department




First we list the mask then the address in binary:




11111111 11111111 00000000 00000000 - (Subnet mask)




10101100 00010000 00000000 00000000 - (Address)




As the first two octets are the default for this address type (255.255.0.0.) we go to the 3rd octet and start using bits there.




using 1 bit will give us 2 to the power of 1 or 2x1 =2-2 =0 Not enough




using 2 bits will give us 2 to the power of 2 or 2x2=4-2 =2 Not enough




using 3 bits will give us 2 to the power of 3 or 2x2x2=8-2 = 6 Enough




As we used 3 bits there are 13 bits left (5 from one octet 8 from the other) for hosts so 2 to the power of 13 = 8192-2 =8190 Enough for our hosts




 







  • Scenario 3 - Given a network address and subnet mask list the valid subnets




Here we are given the address of: 172.16.0.0 and subnet mask of 255.255.224.0




First we list the mask then the address in binary:




11111111 11111111 11100000 00000000 - Subnet mask




10101100 00010000 00000000 00000000 - Address




As we are using 3 extra bits for the mask we look at the right most bit in the binary table, in this case its 32 so our networks will increment in numbers of 32, 0 (not used), 32, 64, 96 etc until the 3 bits or 3 1s are full totallying to 224.




An even simplier way to do this is list the mask, say 255.255.255.224




As the fourth octect has been manipulated we subtract 224 from 256 = 32 so our networks will increment in 32's, 0, 32, 64, 96 etc




 







  • Scenario 4




Given a network address and subnet mask identify which subnet the address belongs to.




Here we have the address 192.168.1.44 and subnet mask of 255.255.255.192




First we covert the subnet mask then the address to binary




11111111 11111111 11111111 11000000 (subnet mask)




11000000 10101000 00000001 00101100 (address)




Next we do a logical and, where we compare the subnet mask to the address and where the 1s are the same we list 1, where there is a 1 and a 0 we list as 0, and a 0 and 0 we list 0




So adding our two values we get:




11000000 10101000 00000001 00000000




Coverting our address back to binary we get:




192.168.1.0 which is the subnet our address belongs to


About the Author

Written by: Stuart King

I am a Microsoft and CompTIA certified IT professional. You can view my website at:

www.lanarkshireitservices.co.uk





[simpleaffiliate source="amazon" results="10"]subnetting for dummies[/simpleaffiliate]
[simpleaffiliate source="cj" results="10"]subnetting for dummies[/simpleaffiliate]
[simpleaffiliate source="clickbank" results="10"]subnetting for dummies[/simpleaffiliate]

1 comment:

  1. Download the Microsoft 70-342 Q&A PDF file easily to prepare Advanced Solutions of Microsoft Exchange Server 2013 exam. It is particularly designed for Microsoft 70-342 exam and our Microsoft specialists have created this 70-342 Question Dumps observing the original 70-342 exam.

    ReplyDelete