Re: subnetting C class into /26 /25 /26, why can this be done?

From: Daniel C. Sobral (dcs_at_tcoip.com.br)
Date: 08/27/03

  • Next message: Oldach, Helge: "RE: Gif IPTunnel networkA-to-networkB not work"
    Date: Wed, 27 Aug 2003 16:41:28 -0300
    To: Christoffer Pio <cp@cvt.dk>
    
    

    Christoffer Pio wrote:
    > Is it not possible to subnet a C class into 3 nets, like
    >
    > 0-63
    > 64-191 <-- Offending network (?)
    > 192-255

    No.

    > If so, why is this?

    Because it there is no mask that will fit. In binary, you have:

    0 0000 0000
    63 0011 1111
    64 0100 0000
    127 0111 1111
    128 1000 0000
    191 1011 1111
    192 1100 0000
    255 1111 1111

    Now, how do masks work? Where there are 1's in a mask, the address is
    supposed to never change. Where there are 0's, any value is accepted.

    The problem you have is that between 64 and 191 there is absolutely no
    digits that won't change (in fact, you can see that the 191 is the very
    opposite of 64 in every bit). So any network that includes both 64 and
    191 will necessarily include everything from 0 to 255.

    Mind you /25 and /26 are just a simplification of the way masks are
    almost always used. Usually, the left side of the mask is all 1's up to
    a certain point, and from there to the end there are just 0's. It is
    _possible_ to use masks in a different way, but I have only seen such
    configurations as a result of errors.

    For example, it would be theoretically possible to have a network
    composed of 0-63 and 128-191. Fortunately, I haven't seen anyone do that
    intentionally. :-)

    So /25 means that the first 25 bits of the 32 bits that compose an
    address are 1's, and the remaining are 0's.

    (and anyone picking on my usage of "first", please relate it to how
    people write numbers in oriental languages and arabic -- no sense in
    setting the bar too low :)

    -- 
    Daniel C. Sobral                   (8-DCS)
    Gerencia de Operacoes
    Divisao de Comunicacao de Dados
    Coordenacao de Seguranca
    VIVO Centro Oeste Norte
    Fones: 55-61-313-7654/Cel: 55-61-9618-0904
    E-mail: Daniel.Capo@tco.net.br
             Daniel.Sobral@tcoip.com.br
             dcs@tcoip.com.br
    Outros:
    	dcs@newsguy.com
    	dcs@freebsd.org
    	capo@notorious.bsdconspiracy.net
    We Klingons believe as you do -- the sick should die.  Only the strong
    should live.
    		-- Kras, "Friday's Child", stardate 3497.2
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Oldach, Helge: "RE: Gif IPTunnel networkA-to-networkB not work"

    Relevant Pages

    • Re: subnetting confusion
      ... >> subnet mask is or is not necessary. ... >existing network by simply changing the mask. ... >I have purchased a set of 8 static IPs. ...
      (microsoft.public.windows.server.networking)
    • Re: TCP/IP question,PLEASE!
      ... mask is and how to apply it to IP address. ... a subnet is. ... For hosts to be in the same subnet, they must have the same network address. ... A host address's components: ...
      (microsoft.public.windowsxp.general)
    • RE: CIDR Explanation
      ... The network is 10.2.3.0 and this host is 55 on that network ... In the above example the mask is 255.255.255.0 each number represents on ... If you sub net the above example into two networks (allowing subnet ... which give a /25 CIDR network. ...
      (Security-Basics)
    • Re: Need more IP addresses
      ... My network understanding is a bit sketchy. ... If it really is one subnet, I think you merely need to use a different subnet mask to define a larger range. ... You'll need a DHCP server for each distinct subnet - most routers can provide this facility. ...
      (microsoft.public.windows.server.networking)
    • Re: subnetting confusion
      ... You are correct in your assumption that you can carve out a subnet from you ... existing network by simply changing the mask. ... A mask of 255.255.255.0 means that to be on the same network, ... I have purchased a set of 8 static IPs. ...
      (microsoft.public.windows.server.networking)