Solved

Subnetting

Posted on 2009-05-06
8
613 Views
Last Modified: 2012-05-06
Can someone please explain to me subnetting principles, and how/why should one use that. Links are welcomed

Is subnetting important for common LANs?

Thank you.
0
Comment
Question by:mrmut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 3

Assisted Solution

by:lukefuno
lukefuno earned 400 total points
ID: 24317259
from what i know, subnetting is basically breaking up a class network into more networks. one may do this because they have too many computers on one network and too much traffic and would also like more security.

when you subnet you steal bits intended for the hosts and add them to the network bits -- so you have more networks and less hosts on each network as a result.

does this help at all?

reference : CCNA Cisco certified network associate study guide (exam 640-802)  
0
 
LVL 3

Accepted Solution

by:
lukefuno earned 400 total points
ID: 24317272
also here is a simple explanation of subnetting from the folks at MS

http://support.microsoft.com/kb/164015

0
 
LVL 14

Assisted Solution

by:theras2000
theras2000 earned 100 total points
ID: 24317497
Subnetting is about splitting networks, not physically, but logically.  So if you have 100 computers plugged into one segment (i.e. a switch), and you wish to logically separate 50 of them, you could use 2 subnets.  All the computers would still be plugged into the same switch and physical network segment, but they can only see 50 computers, instead of all 100 (because now they're on a different logical network).
So why would you want to logically separate groups of computers?  For administrative purposes - keeping things in small manageable groups.
I should imagine that you'd be better off explaining your situation and what you're trying to achieve.  Then we could comment on how and why it could apply to you.
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

Author Comment

by:mrmut
ID: 24318507
Theras2000 - I don't actually have a situation - I am trying to learn what that is, as I've heard people talk about that on the site. :) I probably don't really grasp TCP/IP completely, therefore the problems.


However, answers were good! Thanks to both of you!

0
 

Author Closing Comment

by:mrmut
ID: 31578573
Great! Thanks!
0
 
LVL 14

Expert Comment

by:theras2000
ID: 24319105
OK, well I'll put some legs on it for you, using a basic scenario that exists on most people's home routers etc.  Usually your home ADSL/cable router will have an IP address like 192.168.0.1 with a mask of 255.255.255.0.  The mask is the most important thing in deisgnating a subnet.  This mask shows that a logical network exists labelled 192.168.0.0 and containing 256 possible computers from 0-255.  Actually the very irst and very last are unusable, so really you have 254 possible addresses.  Normally your router takes the first one (192.168.0.1) and your computers can have any of the 253 remaining (from 192.168.0.2 to 192.168.0.254).  This is the most basic and commonly found subnet.  Indeed the mask is called a 'subnet mask' because it is a key ingredient in specifying how big the subnet is.

You could manually create a new subnet, by telling one of your computers to be 192.168.1.10 or something similar, with a mask of 255.255.255.0.  Now this computer exists in a logical network labelled 192.168.1.x, with 256 possible computers (excepting the rules mentioned earlier).  This network 192.168.1.0 can never see the previous network 192.168.0.0, if the mask is 255.255.255.0, because that mask says that computers only see each other if the 1st 3 numbers are the same.  A new computer of IP 192.168.1.20 would be able to see the 192.168.1.10, because they are in the same subnet (assuming the mask is still 255.255.255.0).  You wouldn't do this in a home network, because (a) you'd never need mroe than 256 IPs and (b) your 2nd subnet wouldn't have internet access, because your ADSL router only know how to talk to the 1st subnet.

If you were able to edit the subnet mask to 255.255.0.0, things would be different.  Now any IPs with the same 1st 2 numbers can see each other (anything from 192.168.0.0 to 192.168.255.255).  This new subnet mask has defined the network as 192.168.x.x with 65536 possible computers (from 0.0 to 255.255).  In reality, you wouldn't want this many computers talking to each other.

Lets say that instead of being at home, you're at a business with a few routers available.  They want to have 2 subnets of just 128 computers each, instead of a single subnet of 256 computers.  Using our original router of 192.168.0.1, we could change the mask to 255.255.255.128.  Without explaining the maths, I'll just say that a mask of 128 allows 128 computers per subnet (whereas a 0 allowed 256).  So now, this subnet is officially from 192.168.0.0 to 192.168.0.127 (128 addresses).  We could then use a 2nd router, with an address like 192.168.0.129 and the same mask of 255.255.255.128.  This creates a subnet of 128 addresses from 192.168.0.128 to 192.168.0.255.  You can see here how we started with 256 addresses, and chopped it in half using subnets masks to make 2 subnets.  This is the reality of how companies deal with big blocks of IP addresses.  They cut them up into subnets, to keep things small and manageable.

Just for the sake of precision, I'll define the proper naming conventions.  In any given subnet, the first and last addresses are reserved.  The 1st is for the network name and the last is for broadcasting.  That is why the number of computers is always 2 less than the number of addresses.  So in the regular home network, the network is officially labelled 192.168.0.0 and the broadcast is 192.168.0.255.  This leaves numbers 1-254 available for devices (254 of them).  And for standards sake, the router/gateway is usually specified as the 1st of those devices, hence usually 192.168.0.1.  In the 2nd scenario I mentioned, we definied 2 networks (192.168.0.0 and 192.168.0.128) with broadcasts (192.168.0.127 and 192.168.0.255), leaving available devices (192.168.0.1-192.168.0.126 and 192.168.0.129-192.168.0.254).  I have left out mask notations (where 255.255.255.0 can also be described as /24), but I think this is beyond what you need.
0
 

Author Comment

by:mrmut
ID: 24319407
WOW. 8|

Thank you!
0
 
LVL 3

Expert Comment

by:lukefuno
ID: 24319819
if you want to you an break it down like this:

192.168.0.0 which is defined as a class c network usually for home use
the subnet mask is 255.255.255.0


so you can write it out like this: 192.168.0.0/24
24 means the first 24 bits are for the network ID, and the last 8 bits are for Host ID

if you wanted to break it down like theras2000 said, and you need 2 networks, you capture 1 bits from host and add it to the network portion, thus, giving you a new default subnet mast of 255.255.255.128 for both networks, and the 2 new network ids are 192.168.0.0/25 and 192.168.0.128/25.

you need to know binary number system.

192.168.0.0 = in binary = 11000000.10101000.00000000
255.255.255.0 = in binary = 11111111.11111111.11111111.00000000


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HP ProCurve and tagging 5 123
ip address(es) of current connection? 27 81
using BGP Attributes 2 133
TCP Chat/GPS application security thru firewall 4 56
Article by: rfc1180
The Maximum Segment size (MSS) is an important consideration when troubleshooting connectivity via the Internet/Intranet. As the packets are routed via the Internet/Intranet, the packets must traverse through multiple routers in the path between two…
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question