RE: 70-293 by PeteJonesMCSESecurityMCSEMessaging
PeteJonesMCSESecurityMCSEMessaging
Sun May 04 20:10:00 CDT 2008
> It was my understanding that most all modern NOSes and routers can use
subnets consisting of all 1s and all 0s.
By that, I take it you mean the 255.255.255.0 type of subnets, which are
commonly used for the 192.168.x.x ip range.
The idea behind this section is to get you to understand how wasteful this
type of subnetting is, and how to squeeze them for maximum efficiency.
Look at the typical home network installation. A router, two computers.
192.168.0.1 for the router, 192.168.0.2 and 192.168.0.3 for the computers. If
you did the default subnet mask of "all or nothing", you would use
255.255.255.0. This means the broadcast address would be 192.168.0.255 and
the ip range of 192.168.0.4-192.168.0.254 is available but unused. So it
would be better to use a subnet mask of 255.255.255.248, which gives you 6 ip
addresses.
Now in the real world, it doesn't matter what you use on a small home
network. But on a large one, it makes sense to route efficiently. That means
having some spare addresses, but not too many, and also limiting the amount
of broadcast traffic on any one segment.
So if a company has Site A with 200 computers, Site B with 100 and Sites C
and D with 50 each, you could
a) have one big network with 400 contiguous ip's
b) split it into 4 networks with 254 ip's each
c) split it into 4 networks, one with 254 ip's, one with 126 ip's and two
with 62 apiece
The simplest solution would be (a), but again, the broadcast traffic from
one computer would go to all 400.
With (b), it is better, limiting the broadcast traffic to stay within the
site it originated from. But the smaller sites will have many unused ip's.
But (c) reduces the size of each site to what is needed, limiting waste.
So in the above scenario:
Site A has 192.168.0.1-254 and 255.255.255.0
Site B has 192.168.1.1-126 and 255.255.255.128
Site C has 192.168.1.129-190 and 255.255.255.192
Site D has 192.168.1.193-254 and 255.255.255.192
as ip addresses and masks for the computers.
Remember, when making an ip range, the first number is the Subnet ID, and
the last is the broadcast address (hence the gaps at 127, 128, 191 and 192.
Also, 0 and 255 are typically ID and broadcast respectively, unless you get
into supernetting)
The reason to calculate the maximum number of subnets, is that once you get
into CIDR and supernetting, you need to make sure the range you use will
allow you to break it into enough subnets to do what you need.