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

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

  • Next message: Petri Helenius: "ipfw parsing bug"
    Date: Thu, 28 Aug 2003 08:49:57 -0300
    To: Olivier Nicole <on@cs.ait.ac.th>
    
    

    Olivier Nicole wrote:
    > Christoffer Pio wrote:
    >
    >>Is it not possible to subnet a C class into 3 nets, like
    >>
    >>0-63
    >>64-191 <-- Offending network (?)
    >>192-255
    >>
    >>If so, why is this?
    >
    >
    > I think you got explanations on the why.
    >
    > Now it should still be possible to subnet the way you want I think.
    >
    > While I would never recommend it, think routing should go with the
    > most significant mask for a given address.
    >
    > So if you subnet:
    >
    > 1) x.x.x.0/26
    > 2) x.x.x.192/26
    > 3) x.x.x.0/24
    >
    > you should be able to do the trick.
    >
    > An address in the range 0-63 will match both mask 1) and 3) but mask
    > 1) is most significant (more bits, higer value) so the packet will be
    > routed to subnet 1).
    >
    > Same thing for a packet in the range 192-255, with subnet 2) and 3),
    > it will be router to subnet 2).
    >
    > And a packet in the range 64-191 will only match the subnet 3) so it
    > will go to the subnet 3).
    >
    > IF I AM NOT WRONG, this should work, but it is definitely nasty.
    >
    > If you absolutely need 2 subnets of 64 addresses and one of 128,
    > doing:
    >
    > 1) x.x.x.0/26
    > 2) x.x.x.64/26
    > 3) x.x.x.128/25
    >
    > is nicer and will result in the ranges 0-64, 64-127 and 128-255.

    Yes, but any host in the 64-191 range will need to be configured with a
    /24 net mask *and* have static routes for 0-63 and 192-255. And I'm not
    even completely sure that will work.

    -- 
    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
    For there are moments when one can neither think nor feel.  And if one can
    neither think nor feel, she thought, where is one?
    		-- Virginia Woolf, "To the Lighthouse"
    	[Quoted in "VMS Internals and Data Structures", V4.4, when
    	 referring to powerfail recovery.]
    _______________________________________________
    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: Petri Helenius: "ipfw parsing bug"

    Relevant Pages

    • Re: how to get a networks IPs?
      ... >sniff a network without knowing with what IP to configure ... host routes, and have not one single pre-existing host on a ... the right subnet for the IP range that could be used... ... ping will be answered by every interface on the LAN that can ...
      (comp.os.linux.networking)
    • problems with logical && (and) statement
      ... I have been working on a writing a script to compare host information from ... am trying to check for is if the host is on the same network in both lists, ... and then I am checking to see if it is the same subnet in both lists. ... print "in the dhcp lease file I found $wkrst with ip addr ...
      (perl.beginners)
    • 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: Linux FreeS/WAN road warrior problem
      ... > to host you will have no difficulties. ... > road warrior client, or if it has a net hanging off of it. ... linux2 is only a single linux client without a subnet behind it. ... >> Evaluating SSL VPNs' Consider NEOTERIS, chosen as leader by top analysts! ...
      (Security-Basics)
    • Re: Client Machine cannot see Active Directory
      ... is the subnet for our remote location. ... > Derek Schauland made this post, ... >> Windows 2000 IP Configuration ... >> w-gburmeisterxp Host 192.168.0.39 ...
      (microsoft.public.win2000.active_directory)