Subnetting

dZothMuellarg zot at crl.com
Mon Feb 12 17:49:01 EST 1996


^
^My subnet mask looks like this 255.255.255.192 which breaks my net into =
^4 sections.  One leg of my network is beginnig to reach capacity while =
^the others have less than 20 hosts.  Is there a way change the =
^subnetting so that I can increase the ip addresses on one leg and =
^decrease the addresses on the other.
^I've tried to come up with a schem but whith my limited experience I've =
^come to believe that it can't be done. =20


This is a methodology problem.

A subnet really means all the address that fit this mask
go here...

The mask is applied to a an IP address lookup.

So if your Network IP is 199.199.199.192 a subnet mask of
255.255.255.192 will match all numbers 199.199.199.192-255.

You get this by anding the ip number you are looking for against you
network IP.

Thus anding 199 and 255 gives you 199.
Anding 198 and 255 gives you 198 which does not fit the network
number (if it is one of the first three numbers).

Looking a bit further 192 is 11000000 in binary 193 is 11000001

11000001
11000000 (and)
11000000 
This assumes the IP number 199.199.199.193 which is gives
199.199.199.192 as the netowrk number.  Thus when a local machine is
given 199.199.199.193 as the dest IP it looks for a route with
199.199.199.192 as the network number.

However 69 is 01000101

01000101
11000000 (and)
01000000 which is 64

so
199.199.199.69 would fit in a network of 199.199.199.64 (and 69 with 64 = 64)

So what you can do is break the lite net down further

Given 11000000 (192) give yiou 4 subnets using 11100000 (224) gives you
8 subnets (1-32, 33-64, 65-96, 97-128....)

You will have to setup the subnets match your networks and add networks
to your routes of course.

Or you can static route everything....



So there is no good way to move IP from on segment to
another.



-- 
Later,
ZOT                                                        zot at crl.com
Home Page:   http://www.crl.com/~zot/home.html
Improv Page: http://www.crl.com/~zot/improv.html






More information about the Ale mailing list