Can anyone explain to me how the third netmask (126) is arrived at in
the example below cut and pasted below from the
mini-HOWTO "IP Sub-Networking". For the life of me I don't understand it.
Also, I believe the third network address should be "192.168.1.128" and
that the document has a typo.
-----------------------------------------------------------------------
For the sake of this example, let us assume that you have decided to
subnetwork you C class IP network number 192.168.1.0 into 4 subnets
(each of 62 usable interface/host IP numbers). However, two of these
subnets are being combined into a larger single network, giving three
physical networks.
These are :-
______________________________________________________________________
Network Broadcast Netmask Hosts
192.168.1.0 192.168.1.63 255.255.255.192 62
192.168.1.64 192.168.1.127 255.255.255.192 62
182.168.1.128 192.168.1.255 255.255.255.126 124 (see note)
______________________________________________________________________
Note: the reason the last network has only 124 usable network
addresses (not 126 as would be expected from the network mask) is that
it is really a 'super net' of two subnetworks. Hosts on the other two
networks will interpret 192.168.1.192 as the network address of the
'non-existent' subnetwork. Similarly, they will interpret
192.168.1.191 as the broadcast address of the 'non-existent'
subnetwork.
So, if you use 192.168.1.191 or 192 as host addresses on the third
network, then machines on the two smaller networks will not be able to
communicate with them.
------------------------------------------------------------------------