"A. Loonstra" <arnaud@[nospam]sphaero.org> wrote in news:11itm27rr1ghn66
@corp.supernews.com:
> We were in the situation that there were too many computers and not
> enough ipaddresses at school. We asked the network administrator too
> expand the range of addresses and he answered it would not be possible.
> Instead he added a whole new subnet to our network. It's like this...
>
> We had addresses 1.1.1.66 until 1.1.1.127 this had a netmask of
> 255.255.255.192. Now the network administrator added 1.1.1.128 until
> 1.1.1.192 again with a netmask of 255.255.255.192. So I'm thinking just
> change the netmask to 255.255.255.127 if I'm correct so we will have one
> bigger subnet instead of 2 small ones.
No. A subnet mask 255.255.255.128 applied to the address 1.1.1.66 is telling
your TCP stack that the subnet is starting at 1.1.1.0 through 1.1.1.127. i.e
usable addresses 1.1.1.1 through 1.1.1.126. The addresses 1.1.1.1 - 1.1.1.62
are probably already assigned to another subnet. So what the admin did is
correct. You can't have a subnet 1.1.1.64 - 1.1.1.191, you would have to make
this two subnets, each with a 255.255.255.192 mask. A single subnet with a
mask of 255.255.255.128 has to start on a .0 or .128 boundary. You could have
completely renumbered the subnet to 1.1.1.128 - 1.1.1.254 using the
255.255.255.128 mask, provided the higher addreses from 1.1.1.192 - 1.1.1.254
are not already in use.
> Since the ipaddresses are not
> private addresses I'm guessing I'm wrong and thinking too simple and the
> network administrator is right, right. But can someone explain why this
> administrator cannot expand our current range but can add another subnet
> which numbering follows the first subnet.
Subnet masks are binary bit masks e.g 255.255.255.128 =
11111111.11111111.11111111.10000000. The mask is logically anded with the ip
address for the ip router to determine the subnet that the address belongs
to. Networkers would write the above mask as /25 and your 255.255.255.192
mask as /26. The number after / tells you how many binary ones are in the
mask. The more ones the smaller the subnet. e.g:
/8 = a class A subnet mask 255.0.0.0 (16777214 possible addresses).
/16 = a class B subnet mask 255.255.0.0 (65534 possible addresses).
/24 = a class C subnet mask 255.255.255.0 (254 possible addresses).
Subnets are always 2^n addresses but you can't use the first and last address
so the number of usable addresses is 2^ n - 2. A subnet always has to start
on a natural boundary. For example a /28 subnet can't start with a .8 address
or a .24 etc, it has to start on a multiple of 16, so starting at .0, .16,
..32 etc would be ok. A /25 subnet cannot start at .64 which is why your admin
added a second /26 subnet instead.
BTW the use of IANA reserved block 1.0.0.0/8 is a bit unusual. You should
refer you admin to the following RFC:
http://www.faqs.org/rfcs/rfc1918.html
Klazmon.
>
> Arnaud.